:root {
  --navy-950: #0a1a30;
  --navy-900: #0f2647;
  --navy-800: #163564;
  --blue-600: #2c6cb0;
  --blue-500: #3b82c9;
  --sky-100: #e8f1fb;
  --paper: #f7f9fc;
  --white: #ffffff;
  --ink: #101826;
  --ink-soft: #4a5568;
  --gold: #c9a227;
  --border: #e2e8f0;
  --shadow: 0 20px 50px -20px rgba(10, 26, 48, 0.35);
  --radius: 16px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* El atributo [hidden] nativo pierde contra reglas de clase con igual especificidad
   (p. ej. .btn { display: inline-block }) porque el estilo de autor siempre gana sobre
   el UA stylesheet. Se fuerza aquí para que hidden siempre oculte, sin importar la clase. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-950);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }

p { margin: 0 0 12px; }

a { color: inherit; }

.section { padding: 72px 0; }

.privacy-content { max-width: 780px; }
.privacy-content h1 { font-size: clamp(2rem, 5vw, 3rem); }
.privacy-content h2 { margin-top: 38px; text-align: left; font-size: 1.45rem; }
.privacy-content p { color: var(--ink-soft); }
.privacy-content a:not(.btn) { color: var(--blue-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 26, 48, 0.92);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
}

.header-cta {
  text-decoration: none;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(201, 162, 39, 0.6); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 201, 0.25), transparent),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: var(--white);
  padding: 96px 0 88px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  color: #cbd9ec;
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

.hero-actions { margin-bottom: 18px; }

.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 14px;
}

.hero-urgent {
  display: inline-block;
  width: fit-content;
  color: #dbe6f4;
  font-size: 0.92rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.hero-urgent:hover { color: var(--white); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e2c458);
  color: var(--navy-950);
  box-shadow: 0 16px 32px -14px rgba(201, 162, 39, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-lg {
  padding: 20px 44px;
  font-size: 1.12rem;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 16px 32px -14px rgba(201, 162, 39, 0.55), 0 0 0 0 rgba(201, 162, 39, 0.5); }
  50% { box-shadow: 0 16px 32px -14px rgba(201, 162, 39, 0.55), 0 0 0 14px rgba(201, 162, 39, 0); }
}

.btn-pulse { animation: ctaPulse 2.2s ease-in-out infinite; }
.btn-pulse:hover { animation-play-state: paused; }

.hero-price-note {
  color: #a9c1de;
  font-size: 0.85rem;
  margin-top: 10px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

.hero-trust {
  color: #8fa8c9;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* ---------- Confidence Strip ---------- */
.confidence-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.confidence-grid div {
  padding: 22px 18px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.confidence-grid div:last-child { border-right: 1px solid var(--border); }

.confidence-grid strong {
  display: block;
  color: var(--navy-950);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.confidence-grid span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ---------- Situations ---------- */
.situations { background: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--sky-100);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.card-icon {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.card p { margin: 0; color: var(--ink); }

.inline-cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Authority ---------- */
.authority {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
}

.authority-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.authority-photo {
  position: relative;
}

.authority-photo::before {
  content: "";
  position: absolute;
  inset: -18px -18px 40px -18px;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 201, 0.35), transparent 70%);
  z-index: 0;
}

.authority-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.eyebrow-light { color: #9fc2e8; }

.authority h2 { color: var(--white); text-align: left; margin-bottom: 18px; }

.credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credentials li {
  position: relative;
  padding-left: 22px;
  color: #dbe6f4;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.authority-note {
  color: #a9c1de;
  max-width: 560px;
}

/* ---------- Trust ---------- */
.trust-section { background: var(--white); }

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.trust-copy h2 {
  text-align: left;
  margin-bottom: 18px;
}

.trust-copy p {
  color: var(--ink-soft);
  max-width: 560px;
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Caja de tamaño fijo: recorta cualquier desborde del embed de Instagram
   (el widget de Instagram puede fallar o inyectar HTML de tamaño impredecible;
   overflow:hidden + aspect-ratio garantizan que la sección nunca se rompa). */
.ig-embed {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--paper);
}

.ig-embed .instagram-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
}

.ig-card,
.ig-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 28px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ig-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Se oculta en cuanto detectamos que el embed real cargó (ver main.js). */
.ig-embed.is-loaded .ig-fallback {
  display: none;
}

.ig-card:hover,
.ig-card:focus-visible,
.ig-fallback:hover,
.ig-fallback:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ig-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

/* ---------- Steps ---------- */
.steps { background: var(--paper); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); }

.price-card {
  max-width: 480px;
  margin: 40px auto 0;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-head);
  color: var(--gold);
  margin-bottom: 10px;
}

.price-currency { font-size: 1.6rem; font-weight: 700; }
.price-amount { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.price-cop { font-size: 1rem; color: #a9c1de; margin-left: 6px; align-self: flex-end; }

.price-desc { color: #cbd9ec; margin-bottom: 22px; }

.price-assurance {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(219, 230, 244, 0.18);
  border-radius: 14px;
  background: rgba(10, 26, 48, 0.25);
  color: #dbe6f4;
  font-size: 0.9rem;
}

.price-assurance strong,
.price-assurance span {
  display: block;
}

.price-assurance strong {
  color: var(--white);
  margin-bottom: 4px;
}

.price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-includes li {
  position: relative;
  padding-left: 26px;
  color: #dbe6f4;
  font-size: 0.95rem;
}

.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.payment-trust {
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.payment-trust p {
  margin-bottom: 12px;
  color: #dbe6f4;
  font-size: 0.9rem;
  font-weight: 700;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.payment-methods span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(219, 230, 244, 0.24);
  border-radius: 999px;
  color: #eff5fb;
  font-size: 0.78rem;
  font-weight: 700;
}

.price-note {
  font-size: 0.78rem;
  color: #7d97b8;
  margin: 16px 0 0;
}

/* ---------- Form ---------- */
.form-section { background: var(--white); }

.form-container {
  max-width: 640px;
}

.form-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--blue-500), var(--gold));
  transition: width 0.25s ease;
}

.form-step { display: none; border: none; padding: 0; margin: 0; }
.form-step.active { display: block; }

.form-step legend {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy-950);
  padding: 0;
  margin-bottom: 18px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover { border-color: var(--blue-500); }

.option input {
  accent-color: var(--blue-600);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.option:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--sky-100);
}

.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.text-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.text-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
}

.text-field input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-field input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}

.consent-field a { color: var(--blue-600); font-weight: 600; }

.form-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.form-error {
  text-align: center;
  color: #b3261e;
  font-size: 0.88rem;
  margin-top: 14px;
}

.form-filter-message {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff7e6;
  color: var(--navy-950);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-redirecting {
  text-align: center;
  color: var(--blue-600);
  font-weight: 600;
  margin-top: 20px;
}

.form-alt-contact {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 24px;
}

.form-alt-contact a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

.form-alt-contact a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }

.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-list p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #93a9c4;
  padding: 48px 0 28px;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-contact {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-contact a { text-decoration: none; color: #cfe0f2; font-weight: 500; }
.footer-contact a:hover { color: var(--white); }

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6f88a6;
}

.footer-copy { font-size: 0.8rem; color: #5c7492; }
.footer-privacy { font-size: 0.8rem; margin-bottom: 16px; }
.footer-privacy a { color: #cfe0f2; }

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

/* ---------- Sticky CTA (móvil) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(10, 26, 48, 0.97);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.4);
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1.25;
}

.sticky-cta-text strong { font-size: 0.92rem; }
.sticky-cta-text span { font-size: 0.75rem; color: #a9c1de; }

.sticky-cta .btn {
  padding: 11px 22px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sticky-cta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sticky-cta .btn-sticky-call {
  color: var(--white);
  border-color: rgba(219, 230, 244, 0.35);
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .sticky-cta { display: flex; }
  .hero-secondary-actions { flex-direction: column; align-items: center; }
  .confidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confidence-grid div { border-top: 1px solid var(--border); }
  .authority-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .authority-photo { margin: 0 auto; max-width: 260px; }
  .authority h2 { text-align: center; }
  .credentials li { text-align: left; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-copy h2 { text-align: center; }
  .trust-copy p { margin-left: auto; margin-right: auto; text-align: center; }
  .trust-actions { justify-content: center; }
  .instagram-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
}

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