:root {
  --navy: #0f2747;
  --navy-700: #16365f;
  --blue: #2f6df0;
  --blue-600: #2057d6;
  --gold: #c9a14a;
  --ink: #1a2433;
  --muted: #5b6675;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --line: #e6eaf2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 39, 71, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink); transition: color 0.2s; }
.nav a:hover { color: var(--blue); }
.nav__cta {
  background: var(--navy); color: #fff !important;
  padding: 10px 18px; border-radius: 10px;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--navy-700); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47, 109, 240, 0.3); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--block { width: 100%; }

/* Hero */
/* HERO — dinámico: imagen de fondo, degradado navy, cristal y animación */
.hero {
  position: relative;
  padding: 150px 0 116px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero { background: var(--navy) url("img/hero-poster.jpg") center/cover; }
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(108deg, rgba(15,39,71,.96) 0%, rgba(15,39,71,.85) 42%, rgba(15,39,71,.60) 100%);
}

.hero__inner { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 54px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero__content h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing: -0.015em; line-height: 1.07;
}
.hero__content h1 em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.84); margin: 18px 0 30px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; color: rgba(255,255,255,.82); font-size: 0.95rem; }

.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  color: #fff;
  border-radius: 18px;
  padding: 38px 36px;
  display: grid;
  gap: 24px;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.6);
}
.stat strong { display: block; font-family: "Fraunces", serif; font-size: 2.5rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.stat span { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

/* Animación de entrada escalonada */
.hero__content > * { opacity: 0; transform: translateY(26px); animation: heroUp .85s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__content > *:nth-child(1) { animation-delay: .15s; }
.hero__content > *:nth-child(2) { animation-delay: .29s; }
.hero__content > *:nth-child(3) { animation-delay: .43s; }
.hero__content > *:nth-child(4) { animation-delay: .57s; }
.hero__content > *:nth-child(5) { animation-delay: .71s; }
.hero__card { opacity: 0; transform: translateY(32px) scale(.98); animation: heroUp .95s cubic-bezier(.2,.7,.2,1) .55s forwards; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__card { animation: none; opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); margin-top: 10px; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 56px; }
.grid--center { align-items: center; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin-top: 8px; }

/* Sobre nosotros - foto */
.about__media { position: relative; }
.about__photo {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: block; background: var(--navy);
}
.about__badge {
  position: absolute; left: 22px; bottom: 22px;
  background: #fff; border-radius: 12px;
  padding: 12px 18px; box-shadow: var(--shadow);
  display: grid; line-height: 1.2;
}
.about__badge strong { color: var(--navy); font-size: 1rem; }
.about__badge span { color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.about__quote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 18px; margin: 24px 0;
  font-size: 1.1rem; font-weight: 500; color: var(--ink);
}
.about__quote cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 0.95rem; font-weight: 400; }

/* Quote */
.quote {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 32px;
}
.quote blockquote { font-size: 1.25rem; font-weight: 500; }
.quote cite { display: block; margin-top: 16px; color: var(--muted); font-style: normal; }

/* Steps */
.steps .step { text-align: center; padding: 12px; }
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--blue); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 1.2rem;
}
.step p { color: var(--muted); margin-top: 8px; }

/* CTA / Contact */
.section--cta { background: var(--navy); color: #fff; }
.section--cta h2 { color: #fff; }
.section--cta p { color: rgba(255, 255, 255, 0.8); }
.contact__list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.contact__list a:hover { color: var(--gold); }

.form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 109, 240, 0.15);
}
.field textarea { resize: vertical; }
.form__note { margin-top: 16px; color: #1a7f4b; font-weight: 600; text-align: center; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.check a { color: var(--blue); font-weight: 600; }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

.field__opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq__item[open] { box-shadow: var(--shadow); border-color: #d7def0; }
.faq__item summary {
  list-style: none; cursor: pointer;
  font-weight: 600; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue);
  transition: transform 0.2s; line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; margin: 0; }

/* WhatsApp flotante */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6); }

/* Mapa bloqueado hasta consentimiento */
.map__placeholder {
  height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center;
  background: var(--bg-alt); color: var(--muted); padding: 24px;
}
.map__placeholder p { max-width: 420px; }

/* Banner de cookies */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 39, 71, 0.18);
  padding: 18px 20px;
  animation: cookieUp 0.4s ease;
}
@keyframes cookieUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie__text { flex: 1; min-width: 240px; font-size: 0.92rem; color: var(--ink); margin: 0; }
.cookie__text a { color: var(--blue); font-weight: 600; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie__actions .btn { padding: 11px 22px; }

/* Página de Recursos (vídeos) */
.res-hero { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 64px 0 40px; }
.res-hero h1 { margin: 6px 0 14px; }
.res-hero p { color: var(--muted); max-width: 620px; font-size: 1.1rem; }
.res-loading { color: var(--muted); text-align: center; padding: 40px 0; }

.res-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 44px; }
.res-tab {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: 10px 22px; border-radius: 999px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--line);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.res-tab:hover { border-color: var(--gold); }
.res-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.res-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.res-role { font-size: 1rem; color: var(--muted); margin: 0 0 32px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.res-role b { color: var(--navy); }

.vid-section { margin-bottom: 56px; }
.vid-section h2 { font-size: 1.5rem; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.vid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.vid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vid-card:focus-visible { outline: 3px solid rgba(47,109,240,0.4); outline-offset: 2px; }
.vid-card--soon { cursor: default; opacity: 0.85; }
.vid-card--soon:hover { transform: none; box-shadow: none; }

.vid-thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), var(--navy-700));
  display: grid; place-items: center; overflow: hidden;
}
.vid-thumb__img { width: 100%; height: 100%; object-fit: cover; }
.vid-play {
  position: absolute; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--blue);
  display: grid; place-items: center; font-size: 1.2rem; padding-left: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform 0.2s, background 0.2s;
}
.vid-card:hover .vid-play { transform: scale(1.1); background: #fff; }
.vid-soon { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; }
.vid-card__body { padding: 18px 20px 22px; }
.vid-card__body h3 { font-size: 1.05rem; }
.vid-card__body p { color: var(--muted); margin-top: 6px; font-size: 0.92rem; }

.res-cta { text-align: center; }
.res-cta h2 { color: #fff; }
.res-cta p { color: rgba(255,255,255,0.8); margin: 10px auto 24px; max-width: 520px; }

/* Lightbox de vídeo */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8,20,38,0.85); }
.lightbox__content { position: relative; width: min(960px, 100%); }
.lightbox__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__x {
  position: absolute; top: -44px; right: 0; background: none; border: none;
  color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 6px;
}

@media (max-width: 860px) { .vid-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vid-grid { grid-template-columns: 1fr; } }

.res-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section--cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--cta .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* Pantalla de acceso clientes */
.gate { position: fixed; inset: 0; z-index: 9999; background: var(--bg-alt); display: grid; place-items: center; padding: 24px; }
.gate__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px; max-width: 380px; width: 100%; text-align: center; }
.gate__logo { height: 34px; width: auto; margin-bottom: 18px; }
.gate__box h2 { font-size: 1.3rem; }
.gate__box p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.gate input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin: 18px 0 12px; }
.gate input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,109,240,0.15); }
.gate__err { color: #c0392b !important; font-weight: 600; }

/* Página de agenda / Calendly */
.agenda-hero { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 64px 0 32px; text-align: center; }
.agenda-avatar { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 4px solid #fff; box-shadow: var(--shadow); display: block; margin: 0 auto 18px; }
.agenda-hero h1 { margin: 6px 0 14px; }
.agenda-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.agenda-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 0; }
.agenda-points li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 2px 8px rgba(15,39,71,0.05); }
.calendly-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calendly-fallback { text-align: center; color: var(--muted); margin-top: 18px; font-size: 0.95rem; }
.calendly-fallback a { color: var(--blue); font-weight: 600; }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal__inner { max-width: 800px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal h3 { margin: 24px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--blue); }
.legal__updated { font-size: 0.9rem; margin-bottom: 8px; }
.legal__list { margin: 8px 0 0 20px; display: grid; gap: 6px; }
.legal__back { margin-top: 40px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 8px 0 4px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal__table th, .legal__table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal__table th { background: var(--bg-alt); color: var(--ink); }
.legal__table td { color: var(--muted); }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Footer */
.footer { background: #0a1b33; color: rgba(255, 255, 255, 0.75); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.9rem; }
.footer__brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__logo { height: 30px; width: auto; opacity: 0.95; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .hero__inner, .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav--open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
