/* ==========================================================================
   Acher Content Studio · Landing
   Manual de marca v1.0 — referencias/Acher_Manual_de_Marca.pdf
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Broadsheet";
  src: url("../assets/fonts/Broadsheet-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --azul: #00407C;
  --crema: #F5F1E9;
  --tinta: #0E1A2B;
  --celeste: #A9C4E0;
  --arena: #E4D9C4;
  --terracota: #D9693B;
  --terracota-hover: #C2552A;
  --blanco: #FFFFFF;

  --font-display: "Broadsheet", Georgia, "Times New Roman", serif;
  --font-text: "Poppins", Arial, Helvetica, sans-serif;

  --container: 1200px;
  --margin: 80px;
  --gutter: 24px;
  --radius-card: 12px;
  --shadow-card: 0 2px 12px rgba(14, 26, 43, .06);
  --header-h: 88px;
  --ease: 200ms ease;
  --section-pad: clamp(72px, 9vw, 128px);
}
@media (max-width: 1023px) { :root { --margin: 40px; } }
@media (max-width: 767px)  { :root { --margin: 20px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Sobre Azul la Terracota no llega a 3:1: el foco pasa a Crema */
.ticker :focus-visible,
.cta :focus-visible,
.nav.is-open :focus-visible,
.nav-toggle[aria-expanded="true"]:focus-visible { outline-color: var(--crema); }

.container {
  width: min(var(--container), 100% - 2 * var(--margin));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--azul); color: var(--crema);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.h1, .h2, .h3, .step__title, .step__num, .oval {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--azul);
}
.h1 {
  font-size: clamp(2.75rem, 1.2rem + 4.8vw, 5.5rem);   /* 44 → 88px */
  line-height: 1.0;
}
.h2 {
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.5rem);      /* 32 → 56px */
  line-height: 1.1;
  letter-spacing: 0;
}
.h3 {
  font-size: clamp(1.5rem, 1.25rem + .7vw, 2rem);      /* 24 → 32px */
  line-height: 1.1;
  letter-spacing: 0;
}
.kicker {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--azul);
}
.lead {
  font-size: clamp(17px, 1rem + .25vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  max-width: 34em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--terracota); color: var(--crema); }
.btn--primary:hover { background: var(--terracota-hover); }
.btn--secondary { border-color: var(--azul); color: var(--azul); }
.btn--secondary:hover { background: var(--azul); color: var(--crema); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* ---------- Card ---------- */
.card {
  background: var(--blanco);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ---------- Óvalo contenedor (doble trazo, exterior = 50% del interior) ---------- */
.oval {
  --oval-gap: 6px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5em 1.15em .55em;
  border: 3px solid currentColor;
  border-radius: 50%;
  line-height: 1;
  white-space: nowrap;
}
.oval::before {
  content: "";
  position: absolute;
  inset: calc(-1 * (var(--oval-gap) + 3px));
  border: 1.5px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
}
.oval--terracota { color: var(--terracota); background: var(--crema); }
.oval--azul { color: var(--azul); background: var(--blanco); }

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: 100;
  background: var(--crema);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 64, 124, .15); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }

/* Logo: 140px (mínimo del manual) + resguardo 6% del ancho por lado */
.brand {
  position: relative;
  display: block;
  padding: 9px;
  margin-left: -9px;
  flex-shrink: 0;
}
.brand__logo { width: 140px; height: auto; transition: opacity var(--ease); }
.brand__wordmark {
  position: absolute; left: 9px; top: 50%;
  width: 96px; height: auto;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--ease);
}
.is-scrolled .brand__logo { opacity: 0; }
.is-scrolled .brand__wordmark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--azul);
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--terracota), var(--terracota)) left bottom / 0 1.5px no-repeat;
  transition: background-size var(--ease);
}
.nav__list a:hover { background-size: 100% 1.5px; }
.nav__cta { min-height: 46px; padding: 12px 24px; }

.nav-toggle {
  display: none;
  position: relative; z-index: 120;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0; background: none;
  color: var(--azul);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 12px;
  width: 24px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--ease), background-color var(--ease);
}
.nav-toggle__bars { top: 23px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] { color: var(--crema); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 40px;
    padding: 96px var(--margin) 48px;
    background: var(--azul);
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease, visibility 0s linear 250ms;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 250ms ease;
  }
  .nav__list { flex-direction: column; gap: 12px; }
  .nav__list a {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--crema);
  }
  .nav__cta { min-height: 52px; padding: 14px 30px; font-size: 16px; }
  html.menu-open { overflow: hidden; }
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 56px;
  align-items: center;
}
.hero__copy { grid-column: 1 / span 8; }
.hero__copy .kicker { margin-bottom: 24px; }
.hero__copy .h1 { margin-bottom: 28px; max-width: 8.4em; text-wrap: balance; }
.hero__copy .lead { margin-bottom: 40px; }
/* Composición de estrellas: paleta de marca, tamaños alternados */
.hero__visual {
  grid-column: 9 / -1;
  position: relative;
  aspect-ratio: 1;
}
.hero__star {
  position: absolute;
  height: auto;
  animation: float 9s ease-in-out infinite alternate;
}
.hero__star--s1 { width: 30%; left: 0;   top: 6%;  animation-duration: 11s; }   /* celeste */
.hero__star--s2 { width: 54%; left: 26%; top: 22%; animation-duration: 13s; }   /* azul, protagonista */
.hero__star--s3 { width: 20%; left: 78%; top: 2%;  animation-duration: 8s; }    /* terracota */
.hero__star--s4 { width: 28%; left: 4%;  top: 66%; animation-duration: 10s; }   /* arena */
.hero__star--s5 { width: 8%;  left: 18%; top: 48%; animation-duration: 7s; }    /* terracota chica */
.hero__star--s6 { width: 16%; left: 70%; top: 78%; animation-duration: 9s; }    /* celeste chica */
.hero__star--s7 { width: 10%; left: 56%; top: 6%;  animation-duration: 12s; }   /* azul chica */
@keyframes float { to { transform: translateY(-10px); } }

@media (max-width: 1023px) {
  .hero__copy, .hero__visual { grid-column: 1 / -1; }
  .hero__visual { width: min(100%, 440px); margin-inline: auto; }
}
@media (max-width: 767px) {
  .hero__visual { width: min(100%, 320px); }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   3. Franja / marquee
   ========================================================================== */
.ticker {
  background: var(--azul);
  color: var(--crema);
  overflow: hidden;
  padding: 22px 0;
}
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; }
.ticker__group li {
  padding-inline: clamp(24px, 3vw, 44px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group .ticker__star {
  width: 16px; height: 16px;
  padding: 0;
  background: url("../assets/logos/acher_estrella_terracota.svg") center / contain no-repeat;
}
.ticker.is-animated .ticker__track { animation: ticker 40s linear infinite; }
.ticker.is-animated:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sin JS o con movimiento reducido: franja estática centrada */
.ticker:not(.is-animated) .ticker__track { width: auto; justify-content: center; }
.ticker:not(.is-animated) .ticker__group { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
.ticker:not(.is-animated) .ticker__group li:last-child { display: none; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--celeste { background: var(--celeste); }
.section--arena { background: var(--arena); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head .kicker { margin-bottom: 16px; }

/* ---------- 4. Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.service { padding: 36px 32px 40px; }
.service__num {
  display: block;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--terracota);
}
.service .h3 { margin: 6px 0 22px 9px; }
.service .oval { padding: .42em 1em .5em; }
.service p { font-size: 16px; }
@media (max-width: 1023px) {
  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
  .service__num { grid-row: span 2; margin: 8px 0 0; }
}

/* ---------- 5. Clientes: banda de logos en loop ---------- */
.clients { padding-bottom: clamp(56px, 7vw, 96px); }
.clients .section__head { margin-bottom: clamp(24px, 3vw, 40px); }
.logo-band {
  overflow: hidden;
  border-block: 1px solid rgba(0, 64, 124, .2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-band__track { display: flex; width: max-content; }
.logo-band.is-animated .logo-band__track { animation: ticker 45s linear infinite; }
.logo-band.is-animated:hover .logo-band__track { animation-play-state: paused; }
.logo-band__group { display: flex; align-items: center; flex-shrink: 0; }
.logo-band__group li {
  display: grid; place-items: center;
  height: clamp(96px, 10vw, 128px);
  padding-inline: clamp(24px, 3.5vw, 56px);
}
.logo-band__group img {
  width: auto; height: 40px;
  max-width: 200px;
  object-fit: contain;
}
.logo-band__group img.logo--tall { height: 54px; }
/* Sin JS o con movimiento reducido: logos estáticos en varias filas */
.logo-band:not(.is-animated) { -webkit-mask-image: none; mask-image: none; }
.logo-band:not(.is-animated) .logo-band__track { width: auto; justify-content: center; }
.logo-band:not(.is-animated) .logo-band__group { flex-wrap: wrap; justify-content: center; }

/* ---------- Resultado: antes / después (dentro de Proceso) ---------- */
.result {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 28px;
  align-items: center;
  margin-top: clamp(64px, 8vw, 104px);
}
.result__head { grid-column: 1 / span 4; }
.result .compare { grid-column: 5 / -1; }
@media (max-width: 1023px) {
  .result__head, .result .compare { grid-column: 1 / -1; }
}
.result__head .kicker { margin-bottom: 12px; }
.compare {
  display: grid;
  grid-template-columns: minmax(0, 260px) auto minmax(0, 260px);
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 48px);
}
.compare__col { display: grid; gap: 16px; justify-items: center; }
.compare__arrow { width: 28px; }
.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: min(100%, 300px);
}
.feed span {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
}
/* Antes: grises sin criterio */
/* Antes: feed caótico, cada pieza distinta y sin criterio */
.feed--before { gap: 4px 2px; }
.feed--before span { overflow: hidden; }
.feed--before span::before,
.feed--before span::after { content: ""; position: absolute; }
/* 1 · titular torcido gigante */
.feed--before span:nth-child(1) { background: #CFCFCF; }
.feed--before span:nth-child(1)::before { left: -10%; top: 30%; width: 120%; height: 18%; background: #5E5E5E; transform: rotate(-14deg); }
.feed--before span:nth-child(1)::after { left: 50%; top: 66%; width: 40%; height: 5%; background: #8F8F8F; }
/* 2 · círculo enorme recortado */
.feed--before span:nth-child(2) { background: #7A7A7A; }
.feed--before span:nth-child(2)::before { right: -45%; top: -30%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: #BDBDBD; }
/* 3 · muro de texto */
.feed--before span:nth-child(3) { background: #EEEEEE; }
.feed--before span:nth-child(3)::before { inset: 10% 8%; background: repeating-linear-gradient(#9C9C9C 0 2px, transparent 2px 6px); }
/* 4 · marco grueso y foto corrida */
.feed--before span:nth-child(4) { background: #A3A3A3; box-shadow: inset 0 0 0 7px #E2E2E2; }
.feed--before span:nth-child(4)::before { left: 30%; top: 40%; width: 80%; height: 70%; background: #6A6A6A; }
/* 5 · degradé sucio */
.feed--before span:nth-child(5) { background: linear-gradient(160deg, #E6E6E6, #555555); }
.feed--before span:nth-child(5)::before { left: 14%; bottom: 12%; width: 26%; height: 4%; background: #FFFFFF; }
/* 6 · lunares */
.feed--before span:nth-child(6) { background: #D8D8D8 radial-gradient(#8A8A8A 22%, transparent 24%) 0 0 / 14px 14px; }
/* 7 · triángulo descentrado */
.feed--before span:nth-child(7) { background: #6E6E6E; }
.feed--before span:nth-child(7)::before { left: 8%; top: 22%; width: 70%; height: 60%; background: #C9C9C9; clip-path: polygon(0 100%, 30% 0, 100% 70%); }
/* 8 · pieza que se sale de la grilla */
.feed--before span:nth-child(8) { background: #BFBFBF; transform: rotate(4deg) scale(.88) translate(6%, 4%); }
.feed--before span:nth-child(8)::before { left: 46%; top: 0; width: 9%; height: 100%; background: #F4F4F4; }
/* 9 · casi vacía, con un detalle perdido */
.feed--before span:nth-child(9) { background: #F3F3F3; outline: 1px dashed #A0A0A0; outline-offset: -6px; }
.feed--before span:nth-child(9)::before { right: 10%; bottom: 9%; width: 12%; aspect-ratio: 1; background: #9B9B9B; transform: rotate(30deg); }
/* Después: damero con la paleta */
.t-azul { background: var(--azul); }
.t-crema { background: var(--crema); }
.t-celeste { background: var(--celeste); }
.t-arena { background: var(--arena); }
.t-terracota { background: var(--terracota); }
.t-star {
  width: 30%; aspect-ratio: 1;
  background: url("../assets/logos/acher_estrella_crema.svg") center / contain no-repeat;
}
.t-star--azul { background-image: url("../assets/logos/acher_estrella_azul.svg"); }
.t-lines {
  width: 62%;
  display: grid; gap: 5px;
}
.t-lines::before, .t-lines::after {
  content: ""; height: 5px; border-radius: 3px;
  background: var(--azul);
}
.t-lines::after { width: 60%; opacity: .5; }
.t-azul .t-lines::before, .t-azul .t-lines::after { background: var(--crema); }

@media (max-width: 767px) {
  .compare { gap: 10px; padding: 20px 14px; }
  .compare__arrow { width: 18px; }
  .feed { gap: 2px; }
}

/* ---------- 6. Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  counter-reset: step;
}
.step__num {
  display: block;
  font-size: clamp(64px, 3rem + 2.4vw, 96px);
  line-height: 1;
  margin-bottom: 20px;
}
.step__title {
  position: relative;
  padding-top: 24px;
  margin-bottom: 10px;
  font-size: clamp(24px, 1.3rem + .4vw, 28px);
  line-height: 1.15;
  letter-spacing: 0;
  border-top: 1.5px solid rgba(0, 64, 124, .25);
}
.step__title::before {
  content: "";
  position: absolute; left: 0; top: -9px;
  width: 16px; height: 16px;
  background: var(--crema) url("../assets/logos/acher_estrella_terracota.svg") center / contain no-repeat;
  box-shadow: 0 0 0 6px var(--crema);
}
.step p { font-size: 16px; max-width: 24em; }
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    padding-bottom: 36px;
    position: relative;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute; left: 22px; top: 78px; bottom: 12px;
    width: 1.5px;
    background: rgba(0, 64, 124, .25);
  }
  .step__num { grid-row: span 2; font-size: 64px; margin: 0; text-align: center; }
  .step__title { border-top: 0; padding-top: 10px; }
  .step__title::before { display: none; }
}

/* ---------- 7. Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 56px;
  align-items: center;
}
.about__media { grid-column: 1 / span 5; }
.about__copy { grid-column: 7 / -1; }
.about__copy .kicker { margin-bottom: 16px; }
.about__copy .h2 { margin-bottom: 24px; }
.about__copy p + p { margin-top: 16px; }

.oval-frame {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 10px;
  border: 3px solid var(--azul);
  border-radius: 50%;
}
.oval-frame::before {
  content: "";
  position: absolute; inset: -10px;
  border: 1.5px solid var(--azul);
  border-radius: 50%;
}
.oval-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 1023px) {
  .about__media, .about__copy { grid-column: 1 / -1; }
  .oval-frame { width: min(100% - 40px, 300px); }
}

/* ---------- 8. CTA ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--azul);
  color: var(--crema);
  padding-block: clamp(96px, 12vw, 160px);
  text-align: center;
}
/* Patrón estrella: grilla regular 100% / 60%, 6 columnas por ancho, Celeste al 15% */
.cta::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: url("../assets/img/patron-estrellas.svg") 0 0 / calc(100% / 3) auto repeat;
  opacity: .15;
}
.cta__inner { display: grid; justify-items: center; }
.cta .h2 { color: var(--crema); max-width: 13em; margin-bottom: 20px; }
.cta .lead { margin: 0 auto 40px; }
.cta__alt { margin-top: 24px; font-size: 16px; }
.cta__alt a { font-weight: 500; text-underline-offset: 4px; }
.cta__alt a:hover { text-decoration-thickness: 2px; }

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--tinta);
  color: var(--crema);
  padding-block: 56px;
  font-size: 15px;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px 48px;
}
.site-footer__logo { width: 160px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer__links a { text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { font-weight: 300; opacity: .8; }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px);
  z-index: 90;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-card);
  background: var(--terracota);
  color: var(--crema);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms, background-color var(--ease);
}
.to-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 300ms ease, transform 300ms ease, background-color var(--ease);
}
.to-top:hover { background: var(--terracota-hover); }

/* ---------- Estela de estrellas que sigue al cursor ---------- */
.star-trail {
  position: fixed; left: 0; top: 0;
  z-index: 95;
  pointer-events: none;
  will-change: transform, opacity;
  animation: trail 900ms ease-out forwards;
}
@keyframes trail {
  from { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
  to   { opacity: 0; transform: translate(var(--x), calc(var(--y) + 18px)) scale(.3); }
}

/* ==========================================================================
   Aparición al entrar en pantalla (solo con JS)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
