/* =========================================================
   SANTIAGO SANTOYO — ASESOR FINANCIERO
   Hoja de estilos principal
   Paleta oscura: Negro cálido #0F0C0A · Madera oscura #1B140D
                  Dorado #C9A227 · Dorado pastel #E4C888
                  Marfil (texto) #F5EEE1
   Tipografía: Playfair Display (títulos) · Poppins (texto)
   ========================================================= */

/* -------------------- Variables globales -------------------- */
:root {
  --color-black: #08080A;
  --color-wood: #0D0D0F;
  --color-surface: #151517;
  --color-surface-hover: #1E1E21;
  --color-gold: #C9A227;
  --color-gold-bright: #E2B93F;
  --color-gold-soft: #ECDBA8;
  --color-white: #F7F1E6;
  --color-cream: #EFE3CC;
  --color-gray: rgba(201, 162, 39, 0.24);
  --color-muted: #C4B49A;
  --color-muted-2: #93805F;

  --font-title: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --max-width: 1200px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.3);
  --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 22px;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
}
.section-heading p { color: var(--color-muted); font-size: 1.05rem; }

.heading-with-icon { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.heading-with-icon h2 { margin-bottom: 0; }

.mini-icon-btn {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-gray);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}
.mini-icon-btn:hover { background-color: var(--color-gold-bright); border-color: var(--color-gold-bright); transform: scale(1.1); box-shadow: var(--shadow-hover); }
.mini-icon-btn svg { width: 22px; height: 22px; stroke: var(--color-white); fill: none; stroke-width: 1.7; transition: stroke var(--transition-base); }
.mini-icon-btn:hover svg { stroke: var(--color-black); }

section { padding: 120px 0; }
.section-alt { background-color: var(--color-wood); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; font-size: 0.95rem; font-weight: 600; border-radius: 100px;
  transition: all var(--transition-base); white-space: nowrap;
}

.btn-primary { background-color: var(--color-gold); color: var(--color-black); }
.btn-primary:hover { background-color: var(--color-gold-soft); color: var(--color-black); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-gold { background-color: var(--color-gold); color: var(--color-black); }
.btn-gold:hover { background-color: var(--color-gold-soft); color: var(--color-black); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-outline { background-color: transparent; color: var(--color-white); border: 1.5px solid rgba(201, 162, 39, 0.45); }
.btn-outline:hover { border-color: var(--color-gold-bright); color: var(--color-gold-soft); transform: translateY(-3px); }

.btn-whatsapp { background-color: #1e8e5a; color: var(--color-white); }
.btn-whatsapp:hover { background-color: #24a869; transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); color: var(--color-white); }
.btn-instagram:hover { filter: brightness(1.12); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 26px 0; transition: all var(--transition-base); background-color: transparent; }
.navbar.scrolled {
  padding: 14px 0;
  background-color: rgba(15, 12, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--color-gray);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; line-height: 1; }
.logo-mark { height: 46px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo .logo-name { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.5px; color: var(--color-white); }
.logo .logo-tag { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-gold); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; position: relative; padding: 4px 0; color: var(--color-white); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background-color: var(--color-gold); transition: width var(--transition-base); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 12px 26px; font-size: 0.85rem; }

.nav-social { display: flex; align-items: center; gap: 10px; }
.nav-social a {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-gray); transition: all var(--transition-base);
}
.nav-social a:hover { background-color: var(--color-gold-bright); border-color: var(--color-gold-bright); transform: translateY(-2px); }
.nav-social svg { width: 15px; height: 15px; stroke: var(--color-white); fill: none; stroke-width: 1.6; transition: stroke var(--transition-base); }
.nav-social a:hover svg { stroke: var(--color-black); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1100; }
.nav-toggle span { width: 26px; height: 2px; background-color: var(--color-white); transition: all var(--transition-base); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 120px; background-color: var(--color-black); overflow: hidden; }
.hero-bg-chart { position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none; }
.hero-bg-chart svg { width: 100%; height: 100%; }

.chart-line {
  fill: none; stroke: var(--color-gold); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: draw-line 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}
.chart-dot { fill: var(--color-gold); opacity: 0; animation: fade-in-dot 0.6s ease forwards 3.4s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in-dot { to { opacity: 1; } }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hero-logo { display: block; height: clamp(110px, 12vw, 160px); width: auto; margin: 0 auto 24px; }
.hero-content h1 { font-size: clamp(2.8rem, 5.5vw, 4.4rem); margin-bottom: 6px; }
.hero-content .hero-subtitle { font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); font-weight: 600; margin-bottom: 28px; }
.hero-content p.hero-text { font-size: 1.08rem; color: var(--color-muted); max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-image-wrap { position: relative; }
.hero-image-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); border: 1px solid var(--color-gray); aspect-ratio: 4 / 5; }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute; bottom: -28px; left: -28px;
  background-color: var(--color-surface); border: 1px solid var(--color-gray); color: var(--color-white);
  padding: 20px 26px; border-radius: var(--radius-md); box-shadow: var(--shadow-hover); max-width: 230px;
}
.hero-badge-top {
  top: -28px; left: -28px; bottom: auto; right: auto;
  background-color: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.hero-badge strong { display: block; font-family: var(--font-title); font-size: 1.5rem; color: var(--color-gold); }
.hero-badge span { font-size: 0.78rem; color: var(--color-muted); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted-2); z-index: 1;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(to bottom, var(--color-gold), transparent); animation: scroll-pulse 1.8s ease-in-out infinite; }
@keyframes scroll-pulse { 0%, 100% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(1.2); opacity: 1; } }

.about .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--color-gray); aspect-ratio: 3 / 4; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 24px; }
.about-content p { color: var(--color-muted); margin-bottom: 18px; }
.about-stats { display: flex; gap: 48px; margin-top: 36px; }
.about-stats div strong { display: block; font-family: var(--font-title); font-size: 2rem; color: var(--color-gold); }
.about-stats div span { font-size: 0.8rem; color: var(--color-muted); }

.credential-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 32px;
  padding: 14px;
  max-width: 460px;
  background: linear-gradient(155deg, var(--color-surface), var(--color-black));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
}
.credential-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.credential-card-photo {
  flex-shrink: 0;
  width: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.credential-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credential-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px 4px 0;
}
.credential-card-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background-color: rgba(201, 162, 39, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.credential-card-icon svg { width: 16px; height: 16px; stroke: var(--color-gold); fill: none; stroke-width: 1.8; }
.credential-card strong { display: block; font-size: 0.92rem; color: var(--color-white); margin-bottom: 4px; line-height: 1.35; }
.credential-card span { font-size: 0.76rem; color: var(--color-muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { background-color: var(--color-surface); border: 1px solid var(--color-gray); border-radius: var(--radius-md); padding: 40px 32px; transition: all var(--transition-base); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--color-gold); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background-color: rgba(201, 162, 39, 0.12); border: 1px solid var(--color-gray); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--color-gold); }
.card-icon svg { width: 26px; height: 26px; stroke: var(--color-gold); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--color-muted); font-size: 0.95rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { text-align: center; padding: 36px 24px; background-color: var(--color-surface); border: 1px solid var(--color-gray); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: all var(--transition-base); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--color-gold); }
.why-card .card-icon { margin: 0 auto 20px; background-color: rgba(201, 162, 39, 0.12); }
.why-card h4 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; color: var(--color-white); }
.why-card p { font-size: 0.88rem; color: var(--color-muted); }

.values-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px;
}
.value-pill {
  font-size: 0.82rem; font-weight: 500; color: var(--color-gold-soft);
  padding: 10px 20px; border: 1px solid var(--color-gray); border-radius: 100px;
  background-color: var(--color-surface);
}

/* Detalle de servicios (3 tarjetas expandidas) */
.service-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px;
}
.service-detail-card {
  background-color: var(--color-surface); border: 1px solid var(--color-gray);
  border-radius: var(--radius-md); padding: 36px 30px; transition: all var(--transition-base);
}
.service-detail-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.service-detail-number {
  display: inline-block; font-family: var(--font-title); font-size: 1.5rem; color: var(--color-gold);
  margin-bottom: 14px;
}
.service-detail-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.service-detail-card p { font-size: 0.92rem; color: var(--color-muted); }

/* ¿Esto es para ti? — con foto de fondo */
.fit-check {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 780px;
  display: flex;
  align-items: center;
}

.fit-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 26% 22%;
}
.fit-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(8, 8, 10, 0.1) 0%,
    rgba(8, 8, 10, 0.55) 38%,
    rgba(8, 8, 10, 0.92) 64%,
    var(--color-black) 100%);
}

.fit-check-inner { position: relative; z-index: 2; width: 100%; }

.fit-panel { margin-left: auto; width: 56%; max-width: 600px; padding: 90px 0; }

.fit-heading.section-heading { text-align: left; margin: 0 0 36px; max-width: none; }
.fit-heading.section-heading h2::after { left: 0; transform: none; }

.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fit-card {
  background-color: rgba(10, 8, 6, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-md); padding: 28px 24px; transition: all var(--transition-base);
}
.fit-card:hover { border-color: var(--color-gold); background-color: rgba(10, 8, 6, 0.72); transform: translateY(-6px); }
.fit-number {
  display: inline-block; font-family: var(--font-title); font-size: 1.3rem; color: var(--color-gold-soft);
  margin-bottom: 12px;
}
.fit-card h4 { font-size: 1.02rem; margin-bottom: 10px; font-family: var(--font-title); }
.fit-card p { font-size: 0.85rem; color: var(--color-cream); }

/* Diferenciadores — misma idea que "¿Esto es para ti?" pero espejada (texto a la izquierda) */
.diff-check {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.diff-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 68% 18%;
}
.diff-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--color-black) 0%,
    rgba(8, 8, 10, 0.92) 36%,
    rgba(8, 8, 10, 0.5) 62%,
    rgba(8, 8, 10, 0.08) 100%);
}
.diff-check-inner { position: relative; z-index: 2; width: 100%; }
.diff-panel { margin-right: auto; width: 54%; max-width: 560px; padding: 90px 0; }
.diff-list { display: flex; flex-direction: column; gap: 18px; }
.diff-card { padding: 22px 24px; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-card .card-icon { margin-bottom: 14px; }

/* Contenido / Redes sociales */
.social-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-bottom: 56px;
}
.social-stat { text-align: center; }
.social-stat strong { display: block; font-family: var(--font-title); font-size: 1.7rem; color: var(--color-gold); margin-bottom: 6px; }
.social-stat span { font-size: 0.82rem; color: var(--color-muted); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card-large { grid-column: span 3; }
.video-card-large .video-thumb { aspect-ratio: 16 / 7; }
.video-thumb {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4 / 5; border: 1px solid var(--color-gray); margin-bottom: 18px;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb::after {
  content: ""; position: absolute; inset: 0; background: rgba(5, 5, 6, 0.35);
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; z-index: 2;
  background-color: var(--color-gold); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover); transition: all var(--transition-base);
}
.video-play:hover { background-color: var(--color-gold-bright); transform: translate(-50%, -50%) scale(1.1); }
.video-play svg { width: 24px; height: 24px; stroke: var(--color-black); fill: none; stroke-width: 2; }
.video-card .media-info { padding: 0; }
.video-card .media-info h4 { font-size: 1.05rem; margin-bottom: 6px; }
.video-card .media-info p { font-size: 0.88rem; color: var(--color-muted); }

.content-social-row { margin-top: 56px; }

.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.media-card { background-color: var(--color-surface); border: 1px solid var(--color-gray); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); transition: all var(--transition-base); }
.media-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--color-gold); }
.media-cover { width: 100%; aspect-ratio: 2 / 3; overflow: hidden; position: relative; background-color: var(--color-black); }
.media-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--transition-base); }
.media-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.15);
}
.media-card:hover .media-cover img { transform: scale(1.05); }
.media-info { padding: 20px 22px 26px; }
.media-info h4 { font-family: var(--font-title); font-size: 1.05rem; margin-bottom: 4px; }
.media-info .media-author { font-size: 0.78rem; color: var(--color-gold-soft); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 10px; display: block; }
.media-info p { font-size: 0.85rem; color: var(--color-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--color-gray); }
.gallery-item-large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%); opacity: 0; transition: opacity var(--transition-base); }
.gallery-item:hover::after { opacity: 1; }
.gallery-tag {
  position: absolute; bottom: 14px; left: 14px; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-white); background-color: rgba(15, 12, 10, 0.65); border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 4px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background-color: rgba(5, 3, 2, 0.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative; width: 100%; max-width: 980px; max-height: 88vh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: 56px 48px; background-color: var(--color-surface);
  border: 1px solid var(--color-gray); color: var(--color-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.98); opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-panel.modal-cinema { background-color: #050506; color: var(--color-white); }
.modal-close {
  position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(245, 238, 225, 0.08); transition: all var(--transition-base);
}
.modal-close:hover { background-color: var(--color-gold-bright); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--color-white); fill: none; stroke-width: 2; }
.modal-close:hover svg { stroke: var(--color-black); }
.modal-header { text-align: center; max-width: 520px; margin: 0 auto 44px; }
.modal-header h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.modal-subtitle { font-size: 0.95rem; color: var(--color-muted); }
.modal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.modal-cinema .media-card { background-color: #0C0C0D; border: 1px solid var(--color-gray); }

body.modal-open { overflow: hidden; }

/* Modal — imagen (cédula profesional) */
.modal-image-panel {
  max-width: 720px;
  padding: 40px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Aura dorada pulsante detrás de la cédula */
.cedula-aura {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(circle at center,
    rgba(226, 185, 63, 0.55) 0%,
    rgba(201, 162, 39, 0.28) 32%,
    rgba(201, 162, 39, 0.08) 55%,
    transparent 72%);
  filter: blur(18px);
  animation: cedula-aura-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cedula-aura-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.cedula-frame {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--color-surface), var(--color-black));
  border: 1px solid rgba(201, 162, 39, 0.5);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.25),
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(201, 162, 39, 0.3);
}

.cedula-frame img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.cedula-verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.14), rgba(226, 185, 63, 0.14));
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.cedula-verified-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.cedula-verified-badge span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-gold-soft);
  white-space: nowrap;
}

/* Modal — reproductor de video */
.modal-video-panel {
  max-width: 780px;
  padding: 20px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-player-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.video-player-wrap video {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  background-color: #000;
}

.testimonials-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background-color: var(--color-surface); border: 1px solid var(--color-gray); color: var(--color-white); padding: 40px 34px; border-radius: var(--radius-md); position: relative; transition: all var(--transition-base); }
.testimonial-card:hover { border-color: var(--color-gold); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.testimonial-card .quote-mark { font-family: var(--font-title); font-size: 3rem; color: var(--color-gold); line-height: 1; margin-bottom: 14px; }
.testimonial-card p.quote-text { font-size: 0.95rem; color: var(--color-cream); margin-bottom: 26px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author .avatar { width: 44px; height: 44px; border-radius: 50%; background-color: var(--color-gold); color: var(--color-black); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--color-white); }
.testimonial-author span { font-size: 0.75rem; color: var(--color-muted-2); }
.provisional-tag { display: inline-block; margin-top: 6px; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--color-gold-soft); border: 1px solid rgba(201, 162, 39, 0.4); padding: 3px 10px; border-radius: 100px; }

.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.container.contact-centered { display: block; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-centered .contact-info > p { margin-left: auto; margin-right: auto; }
.contact-centered .contact-channels { text-align: left; }
.contact-centered .social-row { justify-content: center; }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.contact-info > p { color: var(--color-muted); margin-bottom: 36px; max-width: 440px; }
.contact-channels { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.contact-channel { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background-color: var(--color-surface); border: 1px solid var(--color-gray); border-radius: var(--radius-md); transition: all var(--transition-base); }
.contact-channel:hover { border-color: var(--color-gold); transform: translateX(6px); }
.contact-channel .card-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.contact-channel .card-icon svg { width: 20px; height: 20px; }
.contact-channel strong { display: block; font-size: 0.92rem; color: var(--color-white); }
.contact-channel span { font-size: 0.8rem; color: var(--color-muted); }

.social-row { display: flex; gap: 14px; }
.social-row a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--color-gray); display: flex; align-items: center; justify-content: center; transition: all var(--transition-base); }
.social-row a:hover { background-color: var(--color-gold-bright); border-color: var(--color-gold-bright); transform: translateY(-4px); }
.social-row svg { width: 18px; height: 18px; stroke: var(--color-white); fill: none; stroke-width: 1.6; transition: stroke var(--transition-base); }
.social-row a:hover svg { stroke: var(--color-black); }

.whatsapp-cta { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background-color: #1e8e5a; color: var(--color-white); padding: 26px 30px; border-radius: var(--radius-md); }
.whatsapp-cta .whatsapp-text strong { display: block; font-family: var(--font-title); font-size: 1.2rem; }
.whatsapp-cta .whatsapp-text span { font-size: 0.82rem; color: #d9f2e6; }
.whatsapp-cta .btn { background-color: var(--color-white); color: #1e8e5a; flex-shrink: 0; }
.whatsapp-cta .btn:hover { background-color: var(--color-black); color: var(--color-white); }

.footer { background-color: #050506; color: var(--color-white); padding: 80px 0 30px; border-top: 1px solid var(--color-gray); }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(245, 238, 225, 0.1); }
.footer .logo .logo-name { color: var(--color-white); }
.footer-about p { color: var(--color-muted); font-size: 0.9rem; margin-top: 18px; max-width: 280px; }
.footer h5 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 22px; color: var(--color-gold); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--color-cream); font-size: 0.9rem; transition: color var(--transition-base); }
.footer-links a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(245, 238, 225, 0.2); display: flex; align-items: center; justify-content: center; transition: all var(--transition-base); }
.footer-social a:hover { background-color: var(--color-gold-bright); border-color: var(--color-gold-bright); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--color-white); fill: none; stroke-width: 1.6; transition: stroke var(--transition-base); }
.footer-social a:hover svg { stroke: var(--color-black); }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--color-muted-2); }
.footer-bottom a { color: var(--color-muted); }
.footer-bottom a:hover { color: var(--color-gold); }

.float-whatsapp {
  position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px; border-radius: 50%;
  background-color: #1e8e5a; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 142, 90, 0.4); z-index: 900;
  transition: transform var(--transition-base); animation: pulse-whatsapp 2.4s ease-in-out infinite;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; fill: var(--color-white); }
@keyframes pulse-whatsapp { 0%, 100% { box-shadow: 0 8px 24px rgba(30, 142, 90, 0.4); } 50% { box-shadow: 0 8px 24px rgba(30, 142, 90, 0.7), 0 0 0 8px rgba(30, 142, 90, 0.08); } }

.back-to-top {
  position: fixed; bottom: 28px; right: 100px; width: 46px; height: 46px; border-radius: 50%;
  background-color: var(--color-surface); border: 1px solid var(--color-gray);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--color-gold-bright); border-color: var(--color-gold-bright); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--color-white); fill: none; stroke-width: 2; }
.back-to-top:hover svg { stroke: var(--color-black); }

@media (max-width: 1024px) {
  .card-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .modal-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-panel { padding: 44px 30px; }
  .testimonials-wrap { grid-template-columns: 1fr; }
  .hero .container, .about .container, .contact .container { grid-template-columns: 1fr; }
  .about-image { max-width: 420px; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card-large { grid-column: span 2; }
  .social-stats { gap: 36px; }

  .fit-check { display: block; min-height: auto; }
  .fit-photo-bg { position: relative; inset: auto; height: 320px; background-position: center 20%; }
  .fit-photo-bg::after {
    background: linear-gradient(to bottom, rgba(8, 8, 10, 0.05) 0%, rgba(8, 8, 10, 0.7) 75%, var(--color-black) 100%);
  }
  .fit-check-inner { position: relative; margin-top: -80px; }
  .fit-panel { width: 100%; max-width: none; margin-left: 0; padding: 0 0 90px; }
  .fit-heading.section-heading { text-align: center; margin: 0 auto 36px; max-width: 640px; }
  .fit-heading.section-heading h2::after { left: 50%; transform: translateX(-50%); }

  .diff-check { display: block; min-height: auto; }
  .diff-photo-bg { position: relative; inset: auto; height: 300px; background-position: center 18%; }
  .diff-photo-bg::after {
    background: linear-gradient(to bottom, rgba(8, 8, 10, 0.05) 0%, rgba(8, 8, 10, 0.7) 75%, var(--color-black) 100%);
  }
  .diff-check-inner { position: relative; margin-top: -70px; }
  .diff-panel { width: 100%; max-width: none; margin-right: 0; padding: 0 0 80px; }
  .diff-list { flex-direction: column; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta .btn, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; position: fixed; top: 0; right: 0; width: 78%; max-width: 320px; height: 100vh;
    background-color: var(--color-wood); border-left: 1px solid var(--color-gray);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px; padding: 60px 40px; z-index: 1050;
  }
  .nav-links.mobile-open a { color: var(--color-white); font-size: 1.1rem; }
  .hero-badge { left: 16px; bottom: -22px; padding: 16px 20px; }
  .hero-badge-top { top: -18px; left: -14px; bottom: auto; padding: 14px 18px; max-width: 190px; }
  .section-heading { margin-bottom: 40px; }
  .card-grid, .why-grid, .media-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card, .why-card { padding: 24px 18px; }
  .card h3 { font-size: 1.05rem; }
  .card p, .why-card p { font-size: 0.85rem; }
  .card-icon { width: 46px; height: 46px; margin-bottom: 16px; }
  .media-info { padding: 14px 14px 18px; }
  .media-info h4 { font-size: 0.92rem; }
  .media-info p { font-size: 0.78rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item-large { grid-column: span 1; grid-row: span 1; }
  .modal-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .modal-panel { padding: 36px 20px; max-height: 92vh; }
  .modal-close { top: 14px; right: 14px; }
  .contact .container { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .whatsapp-cta { flex-direction: column; text-align: center; }
  .back-to-top { right: 96px; width: 42px; height: 42px; }
  .float-whatsapp { width: 54px; height: 54px; right: 20px; bottom: 20px; }
  .back-to-top { right: 84px; bottom: 22px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .video-card-large { grid-column: span 2; }
  .video-card-large .video-thumb { aspect-ratio: 16 / 9; }
  .credential-card { max-width: none; }
  .social-stats { gap: 28px; }
  .service-detail-grid, .fit-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-detail-card, .fit-card { padding: 26px 22px; }
  .fit-card {
    background-color: var(--color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--color-gray);
  }
  .fit-card p { color: var(--color-muted); }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .section-heading { margin-bottom: 32px; }
  .heading-with-icon { flex-direction: column; gap: 12px; }
  .mini-icon-btn { width: 44px; height: 44px; }
  .mini-icon-btn svg { width: 19px; height: 19px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .about-stats { gap: 28px; }
  .card-grid, .why-grid, .media-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card, .why-card { padding: 20px 14px; }
  .card-icon, .why-card .card-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
  .card-icon svg { width: 20px; height: 20px; }
  .card h3 { font-size: 0.98rem; margin-bottom: 8px; }
  .card p, .why-card p { font-size: 0.8rem; }
  .why-card h4 { font-size: 0.92rem; }
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-card-large { grid-column: span 1; }
  .fit-photo-bg { height: 240px; }
  .fit-check-inner { margin-top: -50px; }
}
