/* En el móvil nada se puede arrastrar de lado (decisión del usuario); clip no rompe la barra fija */
html,body{overflow-x:clip}
@supports not (overflow:clip){body{overflow-x:hidden}}
/* Inspira Música · web de las apps
   Colores de la marca (propuesta B2): rojo del hilo, lima de la idea, tinta y papel. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --rojo: #B0282E;
  --rojo-oscuro: #8A1E23;
  --lima: #A9C42B;
  --lima-texto: #6F8417;   /* lima legible sobre blanco (4,5:1) */
  --lima-logo: #8FAA1F;
  --tinta: #1D1B1A;
  --texto-2: #55504B;
  --texto-3: #6B655E;
  --papel: #F7F5F0;
  --linea: #ECE8E0;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rojo); }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.envoltura { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; z-index: 10; }

/* Cabecera */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; }
.marca img { width: 48px; height: 48px; }
.marca .inspira { color: var(--lima-logo); }
.menu { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.menu .idioma { color: var(--texto-3); }
.menu .idioma strong { color: var(--tinta); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s ease, background .15s ease; }
.boton:hover { transform: translateY(-1px); }
.boton-rojo { background: var(--rojo); color: #fff; }
.boton-rojo:hover { background: var(--rojo-oscuro); color: #fff; }
.boton-borde { border: 1.5px solid var(--tinta); }
.boton-tinta { background: var(--tinta); color: #fff; min-height: 44px; font-size: 15px; }
.boton-tinta:hover { color: #fff; background: #000; }
.boton-lima { background: var(--lima); color: var(--tinta); }
.boton-lima:hover { color: var(--tinta); background: #BCD63C; }

/* Recorrido: el hilo de la portada baja por la «espina» y une las apps.
   Geometría: columnas 170 + 24 + 40 → la espina está a 214 px del borde del contenido.
   El cabo del hilo acaba al 48,3 % del ancho del dibujo y al 91,6 % de su alto. */
.recorrido { --espina: 214px; --hilo: 380px; }
.fila { display: grid; grid-template-columns: 170px 40px minmax(0, 1fr); column-gap: 24px; }
.espina { position: relative; background: linear-gradient(var(--lima), var(--lima)) center / 3px 100% no-repeat; }
.espina.punto::before { content: ""; position: absolute; left: 50%; top: 30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 6px #fff; }
.momento.ultimo .espina { background-size: 3px 38px; background-position: center top; }
.momento.ultimo .espina::before { background: var(--rojo); }

/* Portada */
.portada { position: relative; min-height: 500px; padding: 64px 0 72px calc(var(--espina) + var(--hilo) * 0.517 + 56px); }
.hilo { position: absolute; left: calc(var(--espina) - var(--hilo) * 0.4833); top: 24px; width: var(--hilo); }
.hilo svg { width: 100%; height: auto; display: block; overflow: visible; }
.hilo .trazo { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cabo { position: absolute; left: calc(var(--espina) - 1.5px); top: calc(24px + var(--hilo) * 0.916); bottom: 0; width: 3px; background: var(--lima); transform-origin: top; }
.antetitulo { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rojo); margin: 0; }
.portada h1 { margin: 22px 0 26px; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6vw, 78px); line-height: 0.95; letter-spacing: -0.04em; }
.portada h1 span { color: var(--rojo); }
.portada p.entradilla { margin: 0 0 30px; font-size: 20px; color: var(--texto-2); max-width: 560px; }
.acciones { display: flex; gap: 14px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .hilo .trazo { stroke-dashoffset: 1; animation: dibujar 3.2s cubic-bezier(.45,.05,.3,1) .2s forwards; }
  .js .cabo, .js .apps-titulo .espina { transform: scaleY(0); transform-origin: top; animation: crecer .9s ease-out 3.1s forwards; }
  .js .apps-titulo .espina { animation-delay: 3.9s; }
  .js .aparece { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .aparece.visto { opacity: 1; transform: none; }
}
@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes crecer { to { transform: scaleY(1); } }

/* Resumen: el cabo del hilo se abre en ramas, una por app */
.resumen { position: relative; padding: 8px 0 32px; }
.resumen-espina { position: absolute; left: calc(var(--espina) - 1.5px); top: 0; height: var(--hasta-ramas, 228px); width: 3px; background: var(--lima); }
.resumen-titulo { margin: 0; padding: 40px 0 0 calc(var(--espina) + 48px); height: 220px; box-sizing: border-box; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.2vw, 50px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.resumen { --hasta-ramas: 228px; }
.resumen-cuerpo { position: relative; }
.resumen-ramas { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 16px; height: 34px; }
.resumen-ramas::before { content: ""; position: absolute; top: 0; left: calc((100% - 64px) / 10); right: calc((100% - 64px) / 10); height: 3px; background: var(--lima); }
.resumen-ramas i { background: linear-gradient(var(--lima), var(--lima)) center top / 3px 100% no-repeat; }
.resumen-momentos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 16px; margin-bottom: 14px; }
.resumen-momentos span { text-align: center; padding: 9px 6px; border-radius: 999px; background: #F3F7E2; color: var(--lima-texto); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.resumen-momentos .doble { grid-column: span 2; }
.resumen-momentos .fin { background: #FBEBEC; color: var(--rojo); }
.resumen-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tarjeta { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 22px; background: var(--papel); border: 2px solid var(--papel); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tarjeta:hover { color: var(--tinta); transform: translateY(-4px); border-color: var(--lima); box-shadow: 0 18px 36px rgba(29, 27, 26, 0.10); }
.tarjeta-momento { display: none; }
.tarjeta-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tarjeta-cabeza img { width: 56px; height: 56px; border-radius: 14px; }
.tarjeta-cabeza .etiqueta { font-size: 11px; padding: 4px 9px; text-align: center; }
.tarjeta-nombre { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.05; }
.tarjeta-frase { font-size: 14px; color: var(--texto-2); line-height: 1.45; }
.tarjeta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; font-size: 13.5px; line-height: 1.4; }
.tarjeta li { position: relative; padding-left: 16px; }
.tarjeta li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--lima); }
.tarjeta-ir { font-size: 13px; font-weight: 600; color: var(--rojo); }
.tarjeta-ss { background: #fff; border-color: var(--lima); box-shadow: 0 18px 40px rgba(29, 27, 26, 0.10); }
.tarjeta-centro { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lima-texto); background: #F3F7E2; padding: 4px 9px; border-radius: 999px; }
.resumen-tutti { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--texto-3); }
.resumen-tutti a { font-weight: 700; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--lima); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 1300px) { .resumen-cuerpo { margin: 0 -60px; } }

/* Detalle */
.apps-titulo .espina { background-size: 3px calc(100% - 30px); background-position: center bottom; }
.app-bloque { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.modos { list-style: none; margin: -4px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modos li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: #F3F7E2; font-size: 14px; font-weight: 600; color: #3F4A10; }
.modos img { width: 24px; height: 24px; border-radius: 6px; }
.modos .modo-solo { padding-left: 14px; }

/* Barra fija para saltar entre apps */
.saltos { position: fixed; left: 50%; bottom: 18px; z-index: 5; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--linea); box-shadow: 0 12px 30px rgba(29, 27, 26, 0.14); transform: translate(-50%, 140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.saltos.visible { transform: translate(-50%, 0); opacity: 1; }
.saltos a { display: block; border-radius: 12px; padding: 2px; opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.saltos a:hover { opacity: 1; transform: translateY(-2px); }
.saltos a[aria-current] { opacity: 1; box-shadow: 0 0 0 2.5px var(--lima); }
.saltos img { width: 40px; height: 40px; border-radius: 10px; }

/* Apps por momentos */
.apps { padding-bottom: 88px; }
.apps-titulo h2 { margin: 0; padding: 32px 0 48px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.2vw, 50px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.momento-nombre { text-align: right; padding-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lima-texto); }
.momento-apps { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.app { display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: 24px; background: var(--papel); transition: background .2s ease, transform .2s ease; }
a.app:hover { background: #F0EDE5; color: var(--tinta); transform: translateX(4px); }
.app img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.app-texto { flex: 1; min-width: 0; }
.app h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app p { margin: 0; color: var(--texto-2); font-size: 16px; }
.etiqueta { font-family: var(--texto); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: var(--tinta); color: #fff; }
.etiqueta-suave { background: #E6E1D6; color: var(--tinta); }
.app-ir { font-size: 14px; font-weight: 600; white-space: nowrap; }
.proximamente { margin: 0; padding: 22px 28px; border: 1.5px dashed #D8D2C6; border-radius: 20px; color: var(--texto-2); font-size: 16px; }
.proximamente strong { color: var(--tinta); }

/* Visor de capturas: pasa solo, se para al pasar el ratón y se elige con los botones */
.visor { margin: 0 0 12px; }
.visor-st { --fondo: #0B1424; } .visor-sb { --fondo: #1E1F26; } .visor-ss { --fondo: #0D1220; } .visor-bos { --fondo: #121214; } .visor-scs { --fondo: #E9EDF2; }
.visor-marco { border-radius: 18px; overflow: hidden; background: var(--fondo); box-shadow: 0 30px 60px rgba(29, 27, 26, 0.16); }
.visor-barra { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.visor-barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.visor-barra b { margin-left: 8px; font-weight: 600; }
.visor-claro .visor-marco { border: 1px solid var(--linea); box-shadow: 0 24px 48px rgba(29, 27, 26, 0.10); }
.visor-claro .visor-barra { background: #DCE2EA; color: #4A5563; }
.visor-claro .visor-barra i { background: rgba(0, 0, 0, 0.14); }
.visor-pantalla { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
/* Captura muy ancha (la barra de Score Bridge): entera, se acerca, la recorre de izquierda a derecha y vuelve */
@media (prefers-reduced-motion: no-preference) {
  .js .visor-pantalla img.barrido.activa { animation: barrido 12s ease-in-out both; }
  .js .visor:not(.reproduciendo) img.barrido { animation-play-state: paused; }
}
@keyframes barrido {
  0%, 14% { transform: none; }
  30% { transform: scale(2.6) translateX(30%); }
  82% { transform: scale(2.6) translateX(-30%); }
  96%, 100% { transform: none; }
}
.visor-pantalla img { position: absolute; left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1.4s ease; }
.visor-pantalla img.activa { opacity: 1; transform: none; }
.visor figcaption { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.visor-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.visor-pasos button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; font: 500 14px var(--texto); color: var(--texto-2); cursor: pointer; text-align: left; }
.visor-pasos button:hover { border-color: #CFC8BB; color: var(--tinta); }
.visor-pasos button[aria-current] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.paso-n { font-weight: 700; font-size: 12px; opacity: .7; }
.progreso { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lima); }
.reproduciendo [aria-current] .progreso { animation: llenar var(--duracion, 5s) linear forwards; }
@keyframes llenar { to { width: 100%; } }
.visor-pausa { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: #fff; cursor: pointer; position: relative; display: none; }
.js .visor-pausa { display: block; }
.visor-pausa::before, .visor-pausa::after { content: ""; position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 1px; background: var(--tinta); }
.visor-pausa::before { left: 16px; } .visor-pausa::after { left: 24px; }
.visor-pausa.parado::before { left: 17px; width: 0; height: 0; top: 14px; border-radius: 0; background: none; border-left: 13px solid var(--tinta); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.visor-pausa.parado::after { display: none; }

/* Tutti */
.tutti { background: var(--tinta); color: #fff; }
.tutti .envoltura { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.tutti .antetitulo { color: #B9D43A; }
.tutti h2 { margin: 18px 0; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.tutti p { margin: 0; color: #CFCAC2; font-size: 18px; }
.tutti-caja { background: #2A2826; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.tutti-iconos { display: flex; gap: 10px; flex-wrap: wrap; }
.tutti-iconos img { width: 56px; height: 56px; border-radius: 14px; }
.tutti-precio { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.tutti-precio small { display: block; font-family: var(--texto); font-weight: 400; font-size: 15px; color: #CFCAC2; margin-top: 6px; }

/* Quién está detrás */
.joan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.joan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.joan h2 { margin: 16px 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.joan p { margin: 0 0 18px; color: var(--texto-2); font-size: 18px; }
.joan a.enlace { font-weight: 600; color: var(--rojo); }

/* Pie */
.pie { border-top: 1px solid var(--linea); }
.pie .envoltura { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; font-size: 14px; color: var(--texto-3); }
.pie nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 40px 96px; }
.legal h1 { font-family: var(--display); font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 24px; }
.legal h2 { font-family: var(--display); font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--texto-2); }
.hueco { background: #FFF4C7; color: var(--tinta); padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* Móvil: la espina pasa a la izquierda y el hilo asoma desde el borde */
@media (max-width: 860px) {
  .resumen { --hasta-ramas: 0px; padding-bottom: 8px; }
  .resumen-espina, .resumen-ramas, .resumen-momentos { display: none; }
  .resumen-titulo { padding: 24px 0 20px; height: auto; }
  .resumen-apps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 4px 20px 18px; }
  .tarjeta { flex: 0 0 78%; scroll-snap-align: start; }
  .tarjeta-momento { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lima-texto); }
  .saltos { bottom: 12px; }
  .saltos img { width: 34px; height: 34px; }

  .envoltura { padding: 0 20px; }
  .recorrido { --espina: 12px; --hilo: 230px; }
  .fila { grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; }
  .apps-titulo > div:first-child, .fila > div:first-child:empty { display: none; }
  .momento .momento-nombre { grid-column: 2; grid-row: 1; text-align: left; padding-top: 26px; }
  .momento .espina { grid-column: 1; grid-row: 1 / span 2; }
  .momento .momento-apps { grid-column: 2; grid-row: 2; padding-top: 12px; }
  .momento.ultimo .espina { background-size: 3px 36px; }
  .espina.punto::before { top: 28px; }
  .portada { min-height: 0; padding: 250px 0 56px 38px; }
  .hilo { top: 0; }
  .cabo { top: calc(var(--hilo) * 0.916); }
  .apps-titulo h2 { padding: 24px 0 8px; }
  .app { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px 16px; align-items: start; padding: 18px; }
  .app img { width: 56px; height: 56px; border-radius: 14px; }
  .app h3 { font-size: 23px; }
  .app-ir { grid-column: 2; }
  .visor-pantalla { aspect-ratio: 4 / 3; }
  .visor-pantalla img { left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .visor-pasos button { font-size: 13px; padding: 0 12px; }
  .menu > a:not(.boton) { display: none; }
  .menu { gap: 16px; }
  .cabecera { padding-top: 18px; padding-bottom: 18px; }
  .tutti .envoltura, .joan { grid-template-columns: minmax(0, 1fr); }
  .proximamente { margin-left: 0; }
}
