/* ==========================================================================
   Carlos Meléndez Serrano — Landing page
   Paleta: navy (base) · verde bosque (acento) · dorado (detalle) · carbón · marfil
   ========================================================================== */

:root {
  --navy-950: #0e1524;
  --navy-900: #131b2e;
  --navy-800: #1b2439;
  --navy-700: #26314a;
  --navy-line: rgba(255, 255, 255, 0.12);

  --green-800: #23402f;
  --green-700: #2c4a3e;
  --green-50:  #e9eeea;

  --gold-500: #b08a4d;
  --gold-600: #8b6508;
  --gold-300: #d4b98a;

  --charcoal-900: #22262d;
  --charcoal-600: #5b606a;
  --charcoal-300: #c9ccd1;

  --ivory: #f6f3ee;
  --white: #ffffff;
  --line: #e6e1d8;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 84px;
  --shadow-soft: 0 1px 2px rgba(19, 27, 46, 0.04), 0 8px 24px rgba(19, 27, 46, 0.06);
  --shadow-lift: 0 2px 4px rgba(19, 27, 46, 0.06), 0 18px 40px rgba(19, 27, 46, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn-lg { padding: 22px 36px; font-size: 18px; }
.btn-sm { padding: 12px 20px; font-size: 15px; }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover {
  background: #c09a5c;
  box-shadow: 0 10px 24px rgba(176, 138, 77, 0.28);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* ---------- Encabezados de sección ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-900); color: var(--white); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 1.5px;
  background: var(--gold-500);
}
.eyebrow-gold { color: var(--gold-300); }

.section-title {
  font-size: clamp(34px, 4.6vw, 58px);
  color: var(--navy-900);
  max-width: 22ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-navy .section-title { color: var(--white); }

.lead { font-size: 18px; color: var(--charcoal-600); }
.lead strong { color: var(--charcoal-900); font-weight: 600; }

/* ==========================================================================
   Header / navegación
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 21, 36, 0.96);
  box-shadow: 0 1px 0 var(--navy-line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold-500);
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a:not(.btn) {
  white-space: nowrap;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: color .2s ease;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:not(.btn):hover { color: var(--white); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta-mobile { display: none; }
.header-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 30%, #25304b 0%, var(--navy-900) 60%);
}

/* Foto de Carlos a la derecha, fundida con el navy */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 42%, rgba(19, 27, 46, 0.72) 52%, rgba(19, 27, 46, 0.18) 68%, rgba(19, 27, 46, 0) 82%),
    linear-gradient(0deg, rgba(14, 21, 36, 0.95) 0%, rgba(14, 21, 36, 0.55) 22%, rgba(14, 21, 36, 0) 45%),
    linear-gradient(180deg, rgba(14, 21, 36, 0.55) 0%, rgba(14, 21, 36, 0) 18%);
}

.hero-inner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(12px, 4vh, 48px));
  padding-bottom: clamp(24px, 4.5vh, 48px);
}

.hero-title {
  font-size: clamp(32px, min(3.8vw, 6vh), 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: clamp(16px, 2.8vh, 28px);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-300);
}

.hero-sub {
  max-width: 40ch;
  font-size: clamp(16px, min(1.3vw, 2.3vh), 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: clamp(20px, 3.6vh, 36px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(28px, 6vh, 64px);
}
.hero-actions .btn-lg { padding: clamp(14px, 2vh, 20px) 30px; font-size: 17px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trust-row li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: clamp(12px, 2vh, 18px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.trust-row li:first-child { border-top-color: var(--gold-500); }
.trust-row .icon { color: var(--gold-500); margin-top: 2px; }

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;            /* todas las tarjetas del mismo tamaño */
  gap: 28px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 40px 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease, transform .25s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.testimonial-card[hidden] { display: none; }
.testimonial-card.is-entering { animation: card-in .5s ease both; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.quote-mark {
  display: block;
  height: 36px;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold-500);
}

.testimonial-title {
  font-size: 23px;
  line-height: 1.3;
  color: var(--navy-900);
  margin: 12px 0 16px;
}

.testimonial-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal-600);
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-700);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.read-more:hover { text-decoration-color: currentColor; }
.read-more .icon { width: 16px; height: 16px; }

.author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-card .author {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testimonial-card .read-more { margin-bottom: 28px; }

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.author-name { display: block; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.author-role { display: block; font-size: 15px; color: var(--charcoal-600); }

.testimonial-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.more-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}
.more-circle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: background-color .2s ease, color .2s ease, transform .3s ease;
}
.more-circle .icon { width: 22px; height: 22px; transition: transform .3s ease; }
.more-toggle:hover .more-circle { background: var(--navy-900); color: var(--white); }
.more-toggle:hover .more-circle .icon { transform: translateY(2px); }
.more-toggle[aria-expanded="true"] .more-circle .icon { transform: rotate(180deg); }
.more-toggle[aria-expanded="true"]:hover .more-circle .icon { transform: rotate(180deg) translateY(2px); }

/* ==========================================================================
   Split (problema / bio)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.split-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.split-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-problem {
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(19, 27, 46, 0.05) 70px 71px),
    linear-gradient(160deg, var(--ivory), var(--green-50));
}

.split-content .section-title { margin-bottom: 32px; }

.callout {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--green-50);
  border-left: 4px solid var(--green-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal-900);
}

/* ---------- Bio ---------- */
.split-bio { grid-template-columns: 1fr 1.15fr; }

.media-portrait img { object-position: 50% 20%; }
.media-portrait {
  background: radial-gradient(ellipse at 50% 30%, var(--navy-700), var(--navy-950));
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 96px;
  color: rgba(176, 138, 77, 0.35);
}

.stat-badge {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy-900);
}
.stat-text { font-size: 15px; line-height: 1.5; color: var(--charcoal-600); }

.bio-text p { color: var(--charcoal-600); }
.bio-text strong { color: var(--charcoal-900); font-weight: 600; }
.bio-closing {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-900) !important;
}


/* ==========================================================================
   Franja de colaboraciones
   ========================================================================== */
.collab-band {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collab-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.collab-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}
.collab-logos {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px 20px;
  width: 100%;
}
.collab-logos img {
  width: auto;
  opacity: 0.85;
  transition: opacity .2s ease;
}
.collab-logos img:hover { opacity: 1; }
.logo-reuters     { height: 26px; }
.logo-bloomberg   { height: 21px; }
.logo-el-comercio { height: 23px; }
.logo-gestion     { height: 30px; }
.logo-canal-n     { height: 44px; }
.logo-rpp         { height: 40px; }
.logo-andina      { height: 28px; }
.logo-expansion   { height: 24px; }
.logo-radio-nacional { height: 30px; }

/* ==========================================================================
   Propuesta de valor
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.value-card {
  padding: clamp(32px, 4vw, 56px);
  background: var(--navy-800);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  transition: border-color .25s ease, background-color .25s ease;
}
.value-card:hover { border-color: rgba(176, 138, 77, 0.5); background: #1f2940; }

.value-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 36px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-500);
}
.value-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }

.value-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  margin-bottom: 18px;
}
.value-card p {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq-intro .section-title { margin-bottom: 24px; max-width: 14ch; }
.faq-intro .section-title em { font-style: italic; font-weight: 500; color: var(--green-700); }
.faq-intro .lead { max-width: 42ch; margin-bottom: 32px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 {
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy-900);
  transition: color .2s ease;
}
.faq-list summary:hover h3 { color: var(--green-700); }
.faq-sign {
  position: relative;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--gold-600);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer {
  max-width: 62ch;
  padding: 0 56px 28px 0;
  color: var(--charcoal-600);
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--charcoal-900); font-weight: 600; }
.faq-quote {
  padding-left: 20px;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--navy-900);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.final-cta {
  position: relative;
  padding: clamp(80px, 10vw, 136px) 0;
  color: var(--white);
  background: radial-gradient(ellipse at 15% 0%, #25304b 0%, var(--navy-900) 60%);
  overflow: hidden;
}
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.final-title {
  font-size: clamp(34px, 3.8vw, 52px);
  max-width: 16ch;
  margin-bottom: 28px;
}
.final-sub {
  max-width: 44ch;
  font-size: clamp(18px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

/* Calendario de Cal.com */
.cal-card {
  padding: 8px;
  min-height: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.cal-fallback {
  margin: 0;
  padding: 12px 16px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--charcoal-600);
}
.cal-fallback a { color: var(--green-700); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 40px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer-nav a { text-decoration: none; font-size: 16px; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold-300); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.social-links a:hover { color: var(--white); border-color: var(--gold-500); background: rgba(255, 255, 255, 0.04); }
.social-links svg { width: 20px; height: 20px; fill: var(--gold-300); }

.disclaimer {
  max-width: 90ch;
  margin: 32px 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}
.copyright { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   Popup de testimonio
   ========================================================================== */
.modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--charcoal-900);
  box-shadow: 0 30px 80px rgba(14, 21, 36, 0.4);
}
.modal::backdrop {
  background: rgba(14, 21, 36, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal[open] { animation: modal-in .3s ease both; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-inner { position: relative; padding: clamp(32px, 5vw, 56px); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  transition: background-color .2s ease;
}
.modal-close:hover { background: var(--ivory); }

.modal-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--navy-900);
  margin: 12px 0 24px;
  padding-right: 40px;
}
.modal-body p { color: var(--charcoal-600); font-size: 17px; }
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

body.modal-open { overflow: hidden; }

/* ==========================================================================
   Popup guía gratuita (esquina inferior derecha)
   Plegado: pestaña rectangular. Desplegado: formulario.
   ========================================================================== */
.guide-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  box-shadow: 0 24px 60px rgba(14, 21, 36, 0.45);
  font-size: 15px;
  line-height: 1.5;
}
.guide-popup.is-expanded { width: min(400px, calc(100% - 32px)); }
.guide-popup[hidden] { display: none; }
.guide-popup.is-visible { animation: guide-in .45s ease both; }
@keyframes guide-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.guide-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.guide-tab[hidden] { display: none; }
.guide-tab:hover .guide-tab-arrow { transform: translateY(-2px); color: var(--gold-300); }
.guide-tab-cover {
  width: 40px;
  height: auto;
  flex: none;
  border: 1px solid var(--navy-line);
  border-radius: 3px;
}
.guide-tab-text { display: grid; gap: 2px; flex: 1; }
.guide-tab-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.guide-tab-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.guide-tab-arrow { flex: none; color: rgba(255, 255, 255, 0.7); transition: transform .2s ease, color .2s ease; }

.guide-panel { position: relative; padding: 28px 24px 22px; animation: guide-in .3s ease both; }
.guide-panel[hidden] { display: none; }

.guide-close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.guide-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.guide-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding-right: 24px; }
.guide-cover {
  width: 72px;
  height: auto;
  flex: none;
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.guide-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.guide-title { font-size: 21px; line-height: 1.25; color: var(--white); margin: 0 0 6px; }
.guide-title:focus { outline: none; }
.guide-sub { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
#guide-step-done .guide-sub { margin-bottom: 18px; }

.guide-form { display: grid; gap: 12px; }
.guide-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-field { display: grid; gap: 4px; }
.guide-field span { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.guide-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 16px; /* evita el zoom automático en iOS */
  transition: border-color .2s ease, background-color .2s ease;
}
.guide-field input:focus { outline: none; border-color: var(--gold-500); background: rgba(255, 255, 255, 0.1); }
.guide-field input[aria-invalid="true"] { border-color: #e08a7a; }

.guide-optin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}
.guide-optin input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gold-500);
  cursor: pointer;
}
.guide-optin input[aria-invalid="true"] { outline: 2px solid #e08a7a; outline-offset: 2px; }

.guide-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.guide-error { margin: 0; font-size: 13px; color: #f0a596; }
.guide-submit { width: 100%; margin-top: 4px; }
.guide-submit[disabled] { opacity: .7; cursor: progress; }
.guide-legal { margin: 0; font-size: 12px; text-align: center; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   Animaciones de entrada (solo con JS activo)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav ul { gap: 24px; }
  .main-nav li:first-child { display: none; }
  .header-cta { white-space: nowrap; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .brand-mark { width: 40px; height: 40px; font-size: 15px; }
  .brand-name { font-size: 21px; }

  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 24px var(--gutter) 32px;
    background: var(--navy-950);
    border-top: 1px solid var(--navy-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--navy-950); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li:first-child { display: list-item; }
  .main-nav a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--navy-line);
  }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 24px; padding: 16px 20px; }

  .trust-row { grid-template-columns: 1fr; gap: 16px; }
  .trust-row li { padding-top: 16px; }
  .final-cta-inner { grid-template-columns: 1fr; }

  .faq-inner { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .faq-intro .section-title { max-width: 20ch; }
  .faq-answer { padding-right: 0; }

  .collab-inner { gap: 24px; }
  .collab-label { margin: 0; }
  .collab-logos { justify-content: center; gap: 24px 32px; }

  .hero { align-items: flex-end; }
  .hero-photo { width: 100%; height: 66svh; bottom: auto; object-position: 50% 12%; }
  .hero-fade {
    background:
      linear-gradient(180deg, rgba(14, 21, 36, 0.6) 0, rgba(14, 21, 36, 0) 14svh),
      linear-gradient(180deg, rgba(19, 27, 46, 0) 22svh, rgba(19, 27, 46, 0.8) 42svh, var(--navy-900) 60svh);
  }
  .hero-inner { padding-top: 44svh; }
  .hero-title { max-width: 16ch; }

  .split, .split-bio { grid-template-columns: 1fr; }
  .split-media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .media-portrait { aspect-ratio: 4 / 5; max-width: 520px; }

  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .hero-inner { padding-top: 40svh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cal-card { margin: 0 calc(var(--gutter) * -0.5); padding: 4px; }
  .btn-lg { padding: 18px 24px; font-size: 17px; }

  .testimonial-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .testimonial-card { padding: 32px 24px 24px; }

  .callout { padding: 22px 22px; font-size: 17px; }
  .stat-badge { left: 16px; right: 16px; bottom: 16px; gap: 16px; padding: 18px 20px; }
  .stat-number { font-size: 40px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .modal-footer .btn { width: 100%; }

  .guide-popup { right: 16px; bottom: 16px; }
  .guide-popup.is-expanded { left: 16px; width: auto; }
  .guide-panel { padding: 24px 18px 18px; }
  .guide-cover { width: 56px; }
  .guide-title { font-size: 19px; }
}
