/* RIVOR — sitio institucional. Estilos propios, sin dependencias.
   Diseño de Claude Design (2026-10-28) con los efectos del tema Solvior que tenía el WordPress. */

:root {
  --marsala: #682a42;
  --marsala-oscuro: #4a1d2f;
  --noche: #3e1727;
  --pie: #2a1019;
  --dorado: #c3a26b;
  --dorado-texto: #887047;
  --tinta: #1f1a1c;
  --texto: #3d3539;
  --gris: #5c5458;
  --fondo: #faf8f5;
  --arena: #f1ece5;
  --linea: #e7e1d9;
  --linea-arena: #d8cfc4;
  --rosa: #eadfe3;
  --borde-oscuro: #6b3a4e;
  --ancho: 1240px;
  --titulo: "Barlow", system-ui, sans-serif;
  --cifra: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --cuerpo: "Inter", system-ui, sans-serif;
  --suave: cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--cuerpo); font-size: 16px; line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marsala); }
a:hover { color: var(--marsala-oscuro); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--titulo); }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--marsala); color: #fff; padding: 10px 16px; border-radius: 6px; }
.saltar:focus { left: 16px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.seccion { padding-top: 112px; padding-bottom: 112px; }
.arena { background: var(--arena); }
.noche { background: var(--noche); color: #fff; }
.marsala { background: var(--marsala); color: #fff; }

.antetitulo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--cifra); font-weight: 600; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--dorado-texto); margin-bottom: 16px; }
.noche .antetitulo, .marsala .antetitulo { color: var(--dorado); }
.antetitulo.con-raya::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.titulo-seccion { font-weight: 700; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; color: var(--marsala); }
.noche .titulo-seccion, .marsala .titulo-seccion { color: #fff; }
.bajada { font-size: 18px; color: var(--gris); }
.noche .bajada, .marsala .bajada { color: var(--rosa); }
.encabezado { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.encabezado > :first-child { flex: 1 1 460px; min-width: 0; }
.encabezado > .bajada { flex: 1 1 340px; max-width: 46ch; }

/* ---------- Cabecera: se esconde al bajar y vuelve al subir ---------- */
.cabecera { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 245, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); transition: transform .45s var(--suave), box-shadow .3s; }
.cabecera.escondida { transform: translateY(-100%); }
.cabecera.flotando { box-shadow: 0 10px 30px rgba(42, 16, 25, .08); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.marca img { height: 50px; width: auto; }
.menu { display: flex; align-items: center; gap: 32px; font-family: var(--titulo); font-weight: 500; font-size: 16px; }
.menu > a:not(.boton) { color: var(--tinta); text-decoration: none; padding: 10px 0; position: relative; }
.menu > a:not(.boton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--dorado); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--suave); }
.menu > a:not(.boton):hover::after, .menu > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu > a[aria-current="page"] { color: var(--marsala); font-weight: 600; }
.abrir-menu { display: none; width: 48px; height: 48px; border: 1px solid var(--linea); border-radius: 50%; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.abrir-menu span, .abrir-menu span::before, .abrir-menu span::after { display: block; width: 20px; height: 2px; background: var(--tinta); position: relative; transition: transform .3s, background .3s; }
.abrir-menu span::before, .abrir-menu span::after { content: ""; position: absolute; left: 0; }
.abrir-menu span::before { top: -6px; }
.abrir-menu span::after { top: 6px; }
.abrir-menu[aria-expanded="true"] span { background: transparent; }
.abrir-menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.abrir-menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .abrir-menu { display: inline-flex; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--fondo); border-bottom: 1px solid var(--linea); padding: 8px 24px 24px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--suave), visibility 0s .45s; }
  .menu.abierto { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--suave); }
  .menu > a:not(.boton) { padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 18px; }
  .menu > a:not(.boton)::after { display: none; }
  .menu .boton { margin-top: 16px; align-self: flex-start; }
  .marca img { height: 44px; }
}

/* ---------- Botón: círculo que se expande, flecha que gira, texto que rueda ---------- */
.boton { display: inline-flex; align-items: center; padding: 5px; border-radius: 50px; background: var(--marsala); color: #fff; text-decoration: none; font-family: var(--titulo); font-weight: 600; font-size: 17px; line-height: 1; position: relative; isolation: isolate; transition: color .4s; }
.boton .relleno { position: absolute; z-index: -1; left: 5px; top: 5px; bottom: 5px; width: 46px; border-radius: 50px; background: var(--dorado); transition: width .45s var(--suave); }
.boton:hover .relleno, .boton:focus-visible .relleno { width: calc(100% - 10px); }
.boton .circulo { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; }
.boton .circulo svg { width: 20px; height: 20px; transition: transform .45s var(--suave); }
.boton:hover .circulo svg.fl { transform: translateX(3px) rotate(-45deg); }
.boton .texto { display: inline-block; height: 20px; line-height: 20px; overflow: hidden; padding: 0 24px 0 10px; }
.boton .texto span { display: block; transition: transform .5s var(--suave); }
.boton .texto span::after { content: attr(data-texto); display: block; padding-top: 6px; }
.boton:hover .texto span { transform: translateY(-26px); }
.boton:hover { color: var(--pie); }
.boton.chico { font-size: 16px; }
.boton.chico .circulo { width: 40px; height: 40px; flex-basis: 40px; }
.boton.chico .relleno { width: 40px; }
.boton.chico .circulo svg { width: 18px; height: 18px; }
.boton.dorado { background: var(--dorado); color: var(--pie); }
.boton.dorado .relleno { background: #fff; }
.boton.claro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #8a5a6d; }
.boton.claro .relleno { background: var(--marsala); }
.boton.claro:hover { color: #fff; }
.botones { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; }
.portada .tilde { position: absolute; z-index: 0; right: -4%; top: -6%; width: min(60vw, 820px); opacity: .12; pointer-events: none; }
.portada .tilde path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: trazo 2.2s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.portada .arriba { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: center; }
.portada .principal { flex: 999 1 600px; min-width: 0; }
.portada h1 { font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.015em; max-width: 13ch; }
.portada .bajada { margin-top: 32px; font-size: 20px; max-width: 54ch; }
.portada .botones { margin-top: 44px; }
.portada.interior .arriba { padding-top: 88px; padding-bottom: 96px; }
.portada.interior h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 15ch; }
.portada.interior .bajada { font-size: 21px; margin-top: 28px; }
.migas { font-size: 15px; color: #d9c9cf; margin-bottom: 28px; }
.migas a { color: #d9c9cf; }
.migas .actual { color: var(--dorado); }

.ficha { flex: 1 1 360px; min-width: 0; background: var(--marsala-oscuro); border: 1px solid var(--borde-oscuro); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.ficha .rotulo { font-family: var(--cifra); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--dorado); margin-bottom: 6px; }
.ficha .caso { font-family: var(--titulo); font-weight: 600; font-size: 22px; margin-bottom: 22px; }
.ficha ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ficha li { display: flex; align-items: center; gap: 14px; background: var(--noche); border-radius: 12px; padding: 14px 16px; }
.ficha .marca-ok { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--dorado); display: inline-flex; align-items: center; justify-content: center; }
.ficha .que { flex: 1 1 auto; font-size: 15px; color: var(--rosa); }
.ficha .estado { font-family: var(--cifra); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado); }
.ficha .aclaracion { margin-top: 20px; font-size: 13px; color: #b9a3ac; }

.cifras { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--borde-oscuro); padding-bottom: 72px; }
.portada.interior .cifras { margin-top: -24px; }
.cifra { padding: 28px 24px 0 0; }
.cifra .numero { font-family: var(--cifra); font-weight: 600; font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--dorado); display: flex; align-items: flex-start; white-space: nowrap; }
.cifra .que { margin-top: 10px; font-size: 15px; color: var(--rosa); max-width: 26ch; }

/* Odómetro */
.odometro { display: inline-flex; }
.odometro .digito { display: inline-block; height: 1em; overflow: hidden; }
.odometro .rueda { display: block; transition: transform 2.2s var(--suave); }
.odometro .rueda span { display: block; height: 1em; line-height: 1; }

/* Cinta que corre */
.cinta { background: var(--dorado); color: var(--pie); overflow: hidden; padding: 18px 0; }
.cinta .pista { display: flex; width: max-content; animation: cinta 38s linear infinite; font-family: var(--titulo); font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.cinta .pista span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.cinta:hover .pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Frase que se pinta al bajar (el «text invert» del tema) */
.pinta { font-family: var(--titulo); font-weight: 600; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; letter-spacing: -.01em; color: var(--marsala); max-width: 26ch; }
.js .pinta { background: linear-gradient(to right, var(--marsala) 50%, #d9cdd2 50%); background-size: 200% 100%; background-position-x: calc(100% - var(--pintado, 0) * 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pinta.chica { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; max-width: none; }

/* Pilares */
.pilares { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pilar { background: var(--arena); border-radius: 16px; padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--suave), background .4s, box-shadow .5s; }
.pilar:hover { transform: translateY(-8px); background: #fff; box-shadow: 0 24px 44px rgba(42, 16, 25, .08); }
.pilar .arriba-pilar { display: flex; justify-content: space-between; align-items: center; }
.pilar .ico { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .7s var(--suave), background .4s; }
.pilar:hover .ico { transform: rotateY(180deg); background: var(--marsala); }
.pilar .ico svg { width: 26px; height: 26px; stroke: var(--dorado); }
.pilar .num { font-family: var(--cifra); font-weight: 600; font-size: 18px; color: var(--dorado-texto); }
.pilar h3 { margin-top: 8px; font-weight: 600; font-size: 24px; line-height: 1.2; }
.pilar p { font-size: 16px; color: var(--gris); }

/* Servicios en filas */
.filas { border-top: 1px solid var(--linea-arena); }
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 40px 28px; border-bottom: 1px solid var(--linea-arena); text-decoration: none; color: var(--tinta); position: relative; isolation: isolate; overflow: hidden; }
.fila::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--marsala); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--suave); }
.fila:hover::before, .fila:focus-visible::before { transform: scaleX(1); }
.fila .num { flex: 0 0 64px; font-family: var(--cifra); font-weight: 600; font-size: 28px; color: var(--dorado-texto); transition: color .45s; }
.fila .nombre { flex: 1 1 360px; min-width: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; transition: color .45s; }
.fila .resumen { flex: 1 1 340px; min-width: 0; font-size: 16px; color: var(--gris); transition: color .45s; }
.fila .ir { flex: 0 0 56px; height: 56px; border-radius: 50%; border: 1px solid var(--marsala); display: inline-flex; align-items: center; justify-content: center; transition: transform .5s var(--suave), background .4s, border-color .4s; }
.fila .ir svg { width: 22px; height: 22px; stroke: var(--marsala); transition: stroke .4s; }
.fila:hover { color: #fff; }
.fila:hover .num { color: var(--dorado); }
.fila:hover .resumen { color: var(--rosa); }
.fila:hover .ir { transform: rotate(-45deg); background: var(--dorado); border-color: var(--dorado); }
.fila:hover .ir svg { stroke: var(--pie); }

/* Pruebas del corredor */
.grilla { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prueba { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; transition: transform .5s var(--suave), box-shadow .5s; }
.prueba:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(42, 16, 25, .08); }
.prueba .cifra-grande { font-family: var(--cifra); font-weight: 700; font-size: 60px; line-height: 1; color: var(--marsala); }
.prueba .raya { display: block; width: 56px; height: 3px; background: var(--dorado); transform-origin: left; transition: transform 1s var(--suave) .4s; }
.js .prueba:not(.visto) .raya { transform: scaleX(0); }
.prueba p { margin-top: 6px; font-size: 16px; color: var(--texto); }

/* Mercosur */
.mercosur .contenedor { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: center; }
.mercosur .foto { flex: 1 1 380px; min-width: 0; border-radius: 18px; aspect-ratio: 4 / 4.4; overflow: hidden; }
.mercosur .foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.mercosur .texto { flex: 999 1 460px; min-width: 0; }
.mercosur h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; max-width: 14ch; }
.mercosur .bajada { margin-top: 24px; font-size: 19px; max-width: 50ch; }
.firma { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.firma .iniciales { width: 52px; height: 52px; border-radius: 50%; background: var(--dorado); color: var(--pie); display: inline-flex; align-items: center; justify-content: center; font-family: var(--titulo); font-weight: 700; font-size: 18px; }
.firma strong { display: block; font-family: var(--titulo); font-weight: 600; font-size: 18px; }
.firma .cargo { display: block; font-size: 15px; color: var(--rosa); }
.brillo { position: relative; overflow: hidden; isolation: isolate; }
.brillo::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: -140%; width: 100%; background-image: linear-gradient(to right, transparent 50%, rgba(255, 255, 255, .32) 100%); transform: skewX(-25deg); pointer-events: none; }
.brillo:is(:hover, :focus-within)::before { animation: brillo 1s ease forwards; }
@keyframes brillo { 0% { transform: skewX(-25deg) translateX(0); } 100% { transform: skewX(-25deg) translateX(250%); } }

/* Capítulos (inicio) */
.capitulos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.capitulo { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid var(--linea); border-radius: 14px; text-decoration: none; color: var(--tinta); background: #fff; transition: background .35s, color .35s, border-color .35s, transform .5s var(--suave); }
.capitulo .anios { font-family: var(--cifra); font-weight: 600; font-size: 26px; line-height: 1; }
.capitulo .que { font-size: 15px; }
.capitulo:hover { background: var(--marsala); border-color: var(--marsala); color: #fff; transform: translateY(-4px); }
.enlace-flecha { font-family: var(--titulo); font-weight: 600; font-size: 17px; }

/* Contacto */
.contacto .contenedor { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.contacto .llamado { flex: 999 1 520px; min-width: 0; }
.contacto h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; max-width: 14ch; }
.contacto .bajada { margin-top: 24px; font-size: 19px; max-width: 46ch; }
.contacto .botones { margin-top: 40px; }
.contacto .datos { flex: 1 1 360px; min-width: 0; border-top: 1px solid var(--borde-oscuro); }
.contacto .dato { padding: 24px 0; border-bottom: 1px solid var(--borde-oscuro); }
.contacto .dato .rotulo { font-family: var(--cifra); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--dorado); margin-bottom: 8px; }
.contacto .dato p { font-size: 18px; }
.contacto .dato p + p { margin-top: 4px; }
.contacto .dato a { color: #fff; }

/* Páginas de servicio */
.dos-columnas { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.dos-columnas .ancha { flex: 999 1 560px; min-width: 0; }
.dos-columnas .ancha p:not(.pinta) { margin-top: 24px; font-size: 18px; color: var(--texto); }
.recuadro { flex: 1 1 360px; min-width: 0; align-self: flex-start; background: var(--noche); color: #fff; border-radius: 18px; padding: 36px 32px; }
.recuadro .rotulo { font-family: var(--cifra); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--dorado); margin-bottom: 22px; }
.recuadro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.recuadro li { display: flex; gap: 14px; font-size: 16px; color: var(--rosa); }
.recuadro .ok { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--dorado); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.tarjeta { background: #fff; border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--suave), box-shadow .5s; }
.tarjeta:hover { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(42, 16, 25, .09); }
.tarjeta .num-grande { font-family: var(--cifra); font-weight: 700; font-size: 56px; line-height: 1; color: #e3d6c3; transition: color .4s; }
.tarjeta:hover .num-grande { color: var(--dorado); }
.tarjeta h3 { font-weight: 600; font-size: 24px; }
.tarjeta p { font-size: 16px; color: var(--gris); }
.destacado { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; background: var(--marsala); color: #fff; border-radius: 16px; padding: 36px 40px; }
.destacado .grande { flex: 0 0 auto; font-family: var(--cifra); font-weight: 700; font-size: 72px; line-height: 1; color: var(--dorado); }
.destacado .explica { flex: 1 1 420px; font-size: 18px; color: var(--rosa); }
.angosta { max-width: 920px; }
.preguntas { border-top: 1px solid var(--linea); margin-top: 36px; }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--titulo); font-weight: 600; font-size: 21px; line-height: 1.3; transition: color .3s; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta .signo { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); display: inline-flex; align-items: center; justify-content: center; transition: transform .45s var(--suave), background .3s, border-color .3s; }
.pregunta .signo svg { width: 16px; height: 16px; stroke: var(--marsala); transition: stroke .3s; }
.pregunta[open] summary { color: var(--marsala); }
.pregunta[open] .signo { transform: rotate(45deg); background: var(--marsala); border-color: var(--marsala); }
.pregunta[open] .signo svg { stroke: #fff; }
.pregunta .respuesta { overflow: hidden; }
.pregunta .respuesta p { padding-bottom: 26px; font-size: 16px; color: var(--gris); max-width: 72ch; }
.banda .contenedor { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; padding-top: 96px; padding-bottom: 96px; }
.banda h2 { flex: 999 1 520px; font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; max-width: 18ch; }
.banda .logo-banda { height: 110px; width: auto; }
.otros { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.otro { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 16px; padding: 36px 32px; text-decoration: none; color: var(--tinta); position: relative; isolation: isolate; overflow: hidden; }
.otro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--marsala); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--suave); }
.otro .num { font-family: var(--cifra); font-weight: 600; font-size: 20px; color: var(--dorado-texto); transition: color .45s; }
.otro .nombre { font-family: var(--titulo); font-weight: 600; font-size: 28px; line-height: 1.15; transition: color .45s; }
.otro .resumen { font-size: 16px; color: var(--gris); transition: color .45s; }
.otro:hover::before { transform: scaleY(1); }
.otro:hover { color: #fff; }
.otro:hover .num { color: var(--dorado); }
.otro:hover .resumen { color: var(--rosa); }

/* Historia */
.historia { max-width: 1100px; }
.linea-tiempo { position: relative; padding-left: 40px; }
.linea-tiempo::before, .linea-tiempo::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: #ddd2c4; }
.linea-tiempo::after { background: var(--dorado); transform-origin: top; transform: scaleY(var(--avance, 1)); }
.js .linea-tiempo::after { transform: scaleY(var(--avance, 0)); }
.linea-tiempo ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 56px; }
.hito { position: relative; display: flex; flex-wrap: wrap; gap: 12px 48px; }
.hito .punto { position: absolute; left: -38px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--marsala); border: 4px solid var(--arena); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.hito:hover .punto { transform: scale(1.35); background: var(--dorado); }
.hito .anios { flex: 0 0 170px; font-family: var(--cifra); font-weight: 700; font-size: 40px; line-height: 1; color: var(--marsala); transition: color .3s; }
.hito:hover .anios { color: var(--dorado-texto); }
.hito .cuerpo { flex: 1 1 460px; min-width: 0; }
.hito .capitulo-n { font-family: var(--cifra); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--dorado-texto); margin-bottom: 6px; }
.hito h3 { font-weight: 600; font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.hito p { font-size: 17px; color: var(--gris); }

.legal { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--marsala); margin-bottom: 16px; }
.legal p { font-size: 17px; color: var(--texto); margin-top: 18px; }
.legal p:first-of-type { color: var(--gris); font-size: 15px; }

/* ---------- Pie ---------- */
.pie { background: var(--pie); color: #d9c9cf; }
.pie a { color: #d9c9cf; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie .contenedor.cols { display: flex; flex-wrap: wrap; gap: 40px 72px; justify-content: space-between; padding-top: 72px; padding-bottom: 36px; }
.pie .col { flex: 1 1 200px; min-width: 0; }
.pie .col.marca-pie { flex-basis: 300px; }
.pie .col.marca-pie img { height: 64px; width: auto; }
.pie .col.marca-pie p { margin-top: 22px; font-size: 15px; max-width: 36ch; }
.pie h2 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { font-size: 15px; margin-bottom: 8px; }
.pie .contenedor.abajo { border-top: 1px solid #4a2a36; padding-top: 20px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; }

.arriba-boton { position: fixed; right: 20px; bottom: 0; z-index: 99; width: 44px; height: 120px; border-radius: 25px; border: 1px solid var(--linea); background: rgba(250, 248, 245, .92); color: var(--marsala); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .6s, bottom .6s, visibility .6s, background .3s, color .3s; font-family: var(--cifra); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.arriba-boton span { writing-mode: vertical-rl; transform: rotate(180deg); }
.arriba-boton.visible { opacity: 1; visibility: visible; bottom: 40px; }
.arriba-boton:hover { background: var(--marsala); color: #fff; border-color: var(--marsala); }

/* ---------- Aparecer (solo con JavaScript) ---------- */
.js [data-aparece] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--suave), transform 1s var(--suave); transition-delay: var(--demora, 0s); }
.js [data-aparece="derecha"] { transform: translateX(24px); }
.js [data-aparece].visto { opacity: 1; transform: none; }
.js [data-letras] .letra { display: inline-block; opacity: 0; transform: translateX(20px); transition: opacity 1s var(--suave), transform 1s var(--suave); }
.js [data-letras] .palabra { display: inline-block; white-space: nowrap; }
.js [data-letras].visto .letra { opacity: 1; transform: none; }
.js .ficha li { opacity: 0; transform: translateX(24px); transition: opacity .9s var(--suave), transform .9s var(--suave); }
.js .ficha .marca-ok { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .ficha.visto li { opacity: 1; transform: none; }
.js .ficha.visto .marca-ok { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-aparece], .js [data-letras] .letra, .js .ficha li { opacity: 1; transform: none; }
  .js .ficha .marca-ok { transform: none; }
  .js .pinta { --pintado: 1; }
  .portada .tilde path { stroke-dashoffset: 0; }
}
@media (max-width: 600px) {
  .seccion { padding-top: 80px; padding-bottom: 80px; }
  .portada .arriba { padding-top: 64px; }
  .fila { padding: 28px 8px; }
  .fila .num { flex-basis: 40px; }
  .arriba-boton { right: 12px; }
  .destacado { padding: 28px; }
}
