/* ==========================================================================
   RENDIX CONSULTORA — Landing page
   Sistema visual: editorial contemporáneo, finanzas premium, cálido y sobrio.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TIPOGRAFÍA DE MARCA (Visby / Canva Sans)
   Archivos reales instalados en /assets/fonts/.
   Visby: sólo se proveyó el peso Bold (700) — se usa para toda la tipografía
   de titulares (H1–H4, frases destacadas). Si más adelante se agregan otros
   pesos (Medium/SemiBold), sumar sus @font-face aquí con el mismo patrón.
   Canva Sans: Regular/Medium/Bold provistos como .otf.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Visby";
  src: url("assets/fonts/Visby-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canva Sans";
  src: url("assets/fonts/CanvaSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canva Sans";
  src: url("assets/fonts/CanvaSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canva Sans";
  src: url("assets/fonts/CanvaSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --navy: #092440;
  --blue: #426a83;
  --ice: #e7f4fa;
  --sage: #577164;

  --white: #ffffff;
  --off-white: #f8fafa;

  --text: #092440;
  --text-soft: #53616d;
  --line: rgba(9, 36, 64, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.18);

  --font-display: "Visby", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-body: "Canva Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1220px;
  --container-narrow: 760px;

  --section-pad: clamp(64px, 9vw, 140px);
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-s: 350ms;
  --dur-m: 650ms;
  --dur-l: 950ms;
}

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Introducción de marca. El archivo original tiene márgenes transparentes;
   dejamos aire alrededor del logo para que no se recorte. */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--white);
  animation: brand-intro-out 2.5s ease-in-out forwards;
}

.brand-intro-logo {
  position: relative;
  width: min(150px, 65vw);
  aspect-ratio: 1;
  overflow: hidden;
}

.brand-intro-logo img,
.logo-link img,
.footer-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.brand-intro-logo img {
  animation: brand-intro-logo-in 1.2s var(--ease) both;
}

@keyframes brand-intro-logo-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes brand-intro-out {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

svg {
  display: block;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFÍA BASE
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 700;
}

p {
  color: var(--text-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sage);
  display: inline-block;
}

.eyebrow.on-dark {
  color: #9fc2b3;
}
.eyebrow.on-dark::before {
  background: #9fc2b3;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.7;
}

.standout {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--navy);
  line-height: 1.45;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-pad);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 76px);
  max-width: 720px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background var(--dur-s) var(--ease),
    color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease),
    border-color var(--dur-s) var(--ease);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sage);
  border-color: var(--sage);
  transform: translateY(-2px);
}

.btn-primary .btn-arrow {
  transition: transform var(--dur-s) var(--ease);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid transparent;
  padding-inline: 4px;
}

.btn-ghost .btn-arrow-down {
  transition: transform var(--dur-s) var(--ease);
}
.btn-ghost:hover .btn-arrow-down,
.btn-ghost:focus-visible .btn-arrow-down {
  transform: translateY(4px);
}

.btn-on-dark {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}
.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  transform: translateY(-2px);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   7. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-m) var(--ease),
    box-shadow var(--dur-m) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(9, 36, 64, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  transition: padding var(--dur-m) var(--ease);
}

.site-header.is-scrolled .header-inner {
  padding-block: 12px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  width: 180px;
  height: 135px;
  transition: width var(--dur-m) var(--ease), height var(--dur-m) var(--ease);
}

.logo-link img {
  display: block;
}

.site-header.is-scrolled .logo-link {
  width: 150px;
  height: 113px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding-block: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--sage);
  transition: right var(--dur-s) var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-cta {
  padding: 12px 24px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--navy);
  z-index: 600;
  padding: 100px 28px 40px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--white);
}
.mobile-nav-close span:first-child {
  transform: rotate(45deg);
}
.mobile-nav-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  padding-block: 14px;
  border-bottom: 1px solid var(--line-on-dark);
}

.mobile-nav a.btn {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
  color: var(--navy);
}

.mobile-nav-meta {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 840px);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  display: block;
}

.hero-copy h1 .line {
  display: block;
  overflow: hidden;
}

.hero-copy h1 .line span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--dur-l) var(--ease);
}

.hero-copy h1 .accent {
  color: var(--blue);
}

.hero-copy .hero-text {
  margin-top: 28px;
  font-size: clamp(1.03rem, 1.2vw, 1.15rem);
  max-width: 560px;
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 32%;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}

.hero-media.is-revealed {
  clip-path: inset(0 0 0 0);
}
.hero-media.is-revealed img {
  transform: scale(1);
}

.hero-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--white) 30%,
    rgba(255, 255, 255, 0.92) 40%,
    rgba(255, 255, 255, 0.55) 54%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0) 82%
  );
}

/* --------------------------------------------------------------------------
   9. FRANJA DE CONFIANZA
   -------------------------------------------------------------------------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 60px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  padding-inline: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. IDENTIFICACIÓN (asimétrica)
   -------------------------------------------------------------------------- */
.identify-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.identify-media {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.identify-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identify-copy h2 {
  max-width: 560px;
}

.identify-copy .lede {
  margin-top: 26px;
}

.identify-copy .standout {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   11. SERVICIOS
   -------------------------------------------------------------------------- */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 30px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(26px, 3.6vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left var(--dur-m) var(--ease);
}

.service-row .num {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--dur-s) var(--ease);
}

.service-icon {
  color: var(--sage);
  flex-shrink: 0;
  transition: transform var(--dur-m) var(--ease);
}

.service-row:hover .service-icon,
.service-row:focus-within .service-icon {
  transform: translateY(-2px);
}

.num-text {
  color: inherit;
  transition: color var(--dur-s) var(--ease);
}

.service-row h3 {
  transition: transform var(--dur-s) var(--ease);
}

.service-row p {
  font-size: 0.96rem;
  margin: 0;
}

.service-row .arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
  justify-self: end;
}

.service-row:hover .num,
.service-row:focus-within .num {
  color: var(--sage);
}

.service-row:hover h3,
.service-row:focus-within h3 {
  transform: translateX(6px);
}

.service-row:hover .arrow,
.service-row:focus-within .arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 1px;
  background: var(--sage);
  transition: width var(--dur-m) var(--ease);
}

.service-row:hover::before,
.service-row:focus-within::before {
  width: 100%;
}

/* --------------------------------------------------------------------------
   12. PROCESO (dark)
   -------------------------------------------------------------------------- */
.process {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.process > .container {
  position: relative;
  z-index: 1;
}

.process-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(9, 36, 64, 0.94) 0%,
    rgba(9, 36, 64, 0.88) 45%,
    rgba(66, 106, 131, 0.72) 100%
  );
}

.process h2,
.process h3 {
  color: var(--white);
}

.process .lede {
  color: rgba(255, 255, 255, 0.72);
}

.process-head {
  max-width: 680px;
  margin-bottom: clamp(50px, 7vw, 90px);
}

.process-body {
  max-width: 640px;
}

.process-steps {
  position: relative;
}

.process-line {
  position: absolute;
  left: 20px;
  top: 14px;
  bottom: 14px;
  width: 1px;
}

.process-line svg {
  height: 100%;
  width: 1px;
  overflow: visible;
}

.process-line path {
  stroke: var(--blue);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 1.4s var(--ease), stroke 0.6s var(--ease);
}

.process-body.is-active .process-line path {
  stroke-dashoffset: 0;
}

.step {
  position: relative;
  padding-left: 60px;
  padding-block: clamp(20px, 3vw, 34px);
}

.step:first-child {
  padding-top: 0;
}

.step-marker {
  position: absolute;
  left: 0;
  top: clamp(20px, 3vw, 34px);
  width: 41px;
  height: 41px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: var(--navy);
  transition: border-color var(--dur-m) var(--ease), color var(--dur-m) var(--ease);
}

.step:first-child .step-marker {
  top: 0;
}

.step.is-active .step-marker {
  border-color: var(--sage);
  color: var(--sage);
  animation: step-marker-arrive 650ms var(--ease) backwards;
}

@keyframes step-marker-arrive {
  0% { opacity: 0.55; transform: translateY(6px) scale(0.88); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.step p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 460px;
}

.step .standout {
  color: var(--white);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 440px;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   13. BENEFICIOS
   -------------------------------------------------------------------------- */
.benefits-grid-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.benefits-media {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
}

.benefits-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-head {
  max-width: 640px;
}

.benefits-grid {
  margin-top: clamp(32px, 5vw, 50px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.benefit {
  padding: clamp(22px, 2.4vw, 30px) clamp(14px, 1.8vw, 22px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit:nth-child(2n) {
  border-right: 0;
}

.benefit-icon {
  color: var(--sage);
  display: block;
  margin-bottom: 14px;
}

.benefit .idx {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.benefit h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.benefit p {
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   14. BLOQUE EDITORIAL
   -------------------------------------------------------------------------- */
.editorial {
  background: var(--ice);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.editorial-copy h2 {
  max-width: 560px;
}

.editorial-copy p.lede {
  margin-top: 28px;
  color: var(--text-soft);
}

.editorial-media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   15. CONFIANZA
   -------------------------------------------------------------------------- */
.confidence-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.confidence-item {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.confidence-icon {
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}

.confidence-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.confidence-item p {
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   16. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-final {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-final .container {
  max-width: 760px;
}

.cta-final .eyebrow {
  justify-content: center;
}

.cta-final h2 {
  color: var(--white);
}

.cta-final p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

.cta-final .btn {
  margin-top: 40px;
}

.cta-final .cta-meta {
  margin-top: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-logo {
  position: relative;
  overflow: hidden;
  width: 180px;
  height: 135px;
  margin-bottom: 18px;
}

.footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur-s) var(--ease);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--sage);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--sage);
  background: rgba(87, 113, 100, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   18. ANIMACIONES DE REVELADO (scroll)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  opacity: 0;
  transform: translateY(30px) scale(1.02);
  transition: opacity var(--dur-l) var(--ease), transform var(--dur-l) var(--ease);
}
.reveal-image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-mask .line span {
  transform: translateY(110%);
}
.reveal-mask.is-visible .line span {
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }

/* Una sola entrada breve para los íconos, sincronizada con el revelado. */
.service-row.is-visible .service-icon,
.stagger.is-visible .benefit-icon,
.stagger.is-visible .confidence-icon {
  animation: icon-arrive 650ms var(--ease) backwards;
}
.stagger.is-visible > *:nth-child(2) svg { animation-delay: 90ms; }
.stagger.is-visible > *:nth-child(3) svg { animation-delay: 180ms; }
.stagger.is-visible > *:nth-child(4) svg { animation-delay: 270ms; }
.stagger.is-visible > *:nth-child(5) svg { animation-delay: 360ms; }

@keyframes icon-arrive {
  0% { opacity: 0.45; transform: translateY(5px) rotate(-5deg) scale(0.92); }
  65% { opacity: 1; transform: translateY(-2px) rotate(2deg) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --container: 1080px;
  }
}

@media (max-width: 992px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    order: -1;
    margin-bottom: 32px;
  }
  .hero-media-scrim {
    display: none;
  }
  .hero-copy {
    max-width: none;
  }
  .identify-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .identify-media,
  .editorial-media {
    aspect-ratio: 16 / 10;
  }
  .services-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .benefits-grid-wrap {
    grid-template-columns: 1fr;
  }
  .benefits-media {
    aspect-ratio: 16 / 10;
  }
  .confidence-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .logo-link {
    width: 150px;
    height: 113px;
  }
  .site-header.is-scrolled .logo-link {
    width: 130px;
    height: 98px;
  }
  .main-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .trust-item {
    border-left: 0;
    padding-left: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .trust-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .service-row {
    grid-template-columns: 64px 1fr;
    row-gap: 8px;
  }
  .service-row p {
    grid-column: 2 / 3;
  }
  .service-row .arrow {
    display: none;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit {
    border-right: 0;
  }
  .confidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding-block: clamp(56px, 14vw, 80px);
  }
  h1 {
    font-size: clamp(2.15rem, 9vw, 2.6rem);
  }
  .container {
    padding-inline: 20px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   20. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brand-intro {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-image,
  .stagger > *,
  .hero-copy h1 .line span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero-media {
    clip-path: inset(0 0 0 0) !important;
  }
  .process-line path {
    stroke-dashoffset: 0 !important;
  }
}
