/* ============================================================
   istmotehuantepec.com — Hoja de Estilos Principal
   Versión: 1.0 | Fuente: Google Fonts (Cormorant Garamond, DM Sans, Space Mono)
   ============================================================ */

/* ── Variables globales ── */
:root {
  --bg:       #ffffff;
  --bg-soft:  #f7f8fa;
  --bg-warm:  #f3f1ed;
  --navy:     #1a1f2e;
  --navy-mid: #2c3348;
  --border:   rgba(0,0,0,0.09);
  --gold:     #a07840;
  --gold-lt:  #c49a58;
  --teal:     #0f8a7a;
  --teal-dim: rgba(15,138,122,0.09);
  --text:     #1a1f2e;
  --muted:    #6b7080;
  --card:     #ffffff;
  --tag-gold: rgba(160,120,64,0.09);
  --tag-teal: rgba(15,138,122,0.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--navy);
}
.nav-logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--gold); text-transform: uppercase;
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em; transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 8px 20px; border-radius: 4px;
  font-weight: 500 !important; font-size: 13px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 80px; overflow: hidden; background: var(--bg);
}
.hero-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 68% 42%, black 15%, transparent 75%);
  pointer-events: none;
}
.hero-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 72% 35%, rgba(15,138,122,0.07) 0%, transparent 68%),
    radial-gradient(ellipse 45% 40% at 12% 82%, rgba(160,120,64,0.08) 0%, transparent 62%);
  pointer-events: none;
}
.hero-line {
  position: absolute; top: -5%; right: 20%;
  width: 1px; height: 125%;
  background: linear-gradient(180deg, transparent, rgba(160,120,64,0.2), transparent);
  transform: rotate(9deg); pointer-events: none;
}

/* ── Mapa SVG en el Hero ── */
.hero-map {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 66%; pointer-events: none; z-index: 0;
}
.hero-map svg { width: 100%; height: 100%; }

/* Animación de ping en puntos PODEBI */
.pm-ring {
  fill: none; stroke: #0f8a7a; stroke-width: 1.2;
  animation: pmping 3s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes pmping {
  0%   { opacity: 0.75; transform: scale(1);   }
  70%  { opacity: 0.1;  transform: scale(2.6); }
  100% { opacity: 0;    transform: scale(2.8); }
}
.pm-ring.g   { stroke: #a07840; }
.pm-ring.d2  { animation-delay: .45s  }
.pm-ring.d3  { animation-delay: .9s   }
.pm-ring.d4  { animation-delay: 1.35s }
.pm-ring.d5  { animation-delay: 1.8s  }
.pm-ring.d6  { animation-delay: 2.25s }
.pm-ring.d7  { animation-delay: .25s  }
.pm-ring.d8  { animation-delay: .7s   }
.pm-ring.d9  { animation-delay: 1.15s }
.pm-ring.d10 { animation-delay: 1.6s  }
.pm-ring.d11 { animation-delay: 2.05s }
.pm-ring.d12 { animation-delay: .55s  }
.pm-ring.d13 { animation-delay: 1.05s }
.pm-ring.d14 { animation-delay: 1.55s }

/* ── Contenido del Hero ── */
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; animation: fadeUp .8s ease forwards;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow-line { width: 36px; height: 1px; background: var(--gold); }
.hero-eyebrow span {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(50px,6.5vw,84px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -.01em; color: var(--navy); margin-bottom: 26px;
}
h1 em { font-style: italic; color: var(--teal); }

.hero-desc {
  font-size: 16px; color: var(--muted);
  max-width: 480px; margin-bottom: 44px;
  font-weight: 300; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── Botones ── */
.btn-primary {
  background: var(--navy); color: #fff;
  padding: 13px 30px; border: none; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .04em; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s; display: inline-block;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--navy);
  padding: 12px 26px; border: 1.5px solid rgba(26,31,46,0.2); border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer;
  text-decoration: none; transition: border-color .2s, background .2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(160,120,64,0.05); }

/* ── Estadísticas del Hero ── */
.hero-stats {
  position: absolute; right: 72px; bottom: 80px;
  display: flex; flex-direction: column; gap: 28px;
  z-index: 2; animation: fadeUp .8s ease .3s both;
}
.stat-item { text-align: right; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 300; color: var(--navy); line-height: 1;
}
.stat-number span { color: var(--gold); font-style: italic; }
.stat-label {
  font-size: 11px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 4px;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker { background: var(--navy); overflow: hidden; padding: 9px 0; }
.ticker-inner { display: flex; width: max-content; animation: ticker 32s linear infinite; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 10px; padding: 0 28px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); white-space: nowrap;
}
.ticker-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: .8;
}

/* ============================================================
   BARRA DE BÚSQUEDA
   ============================================================ */
.search-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 48px;
  position: sticky; top: 65px; z-index: 50;
}
.search-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.search-box { flex: 1; position: relative; }
.search-box input {
  width: 100%; background: #fff;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 12px 18px 12px 44px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-box input:focus { border-color: var(--teal); }
.search-box input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--muted); font-size: 17px;
}
.filter-select {
  background: #fff; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 12px 18px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; cursor: pointer; min-width: 180px;
  transition: border-color .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.filter-select:focus { border-color: var(--teal); }

/* ============================================================
   LAYOUT GENERAL
   ============================================================ */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 42px; padding-top: 76px;
}
.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px,3.8vw,50px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -.01em; color: var(--navy);
}
h2 em { font-style: italic; color: var(--teal); }
.view-all {
  color: var(--gold); text-decoration: none; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid rgba(160,120,64,0.35);
  padding-bottom: 2px; transition: border-color .2s;
  white-space: nowrap; margin-bottom: 8px;
}
.view-all:hover { border-color: var(--gold); }

/* ============================================================
   PILLS DE CATEGORÍAS
   ============================================================ */
.categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.cat-pill {
  padding: 7px 15px; border-radius: 100px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--muted); font-size: 13px; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: 6px;
}
.cat-pill:hover  { border-color: var(--navy); color: var(--navy); background: rgba(26,31,46,0.04); }
.cat-pill.active { border-color: var(--navy); color: var(--navy); background: rgba(26,31,46,0.05); font-weight: 500; }
.cat-pill-icon { font-size: 13px; }

/* ============================================================
   TARJETAS DE EMPRESAS
   ============================================================ */
.companies-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 18px; margin-bottom: 80px;
}
.company-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 26px; transition: border-color .22s, transform .18s, box-shadow .22s;
  cursor: pointer; position: relative; overflow: hidden;
  display: none; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.company-card.visible { display: flex; flex-direction: column; }
.company-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.company-card:hover {
  border-color: rgba(160,120,64,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}
.company-card:hover::before { opacity: 1; }

.company-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 15px;
}
.company-logo-placeholder {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--bg-soft);
  border: 1.5px solid var(--border); flex-shrink: 0;
}
.company-logo-placeholder img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
}
.company-featured {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(160,120,64,0.3); padding: 3px 8px;
  border-radius: 3px; background: var(--tag-gold);
}
.company-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 500; color: var(--navy);
  margin-bottom: 3px; line-height: 1.2;
}
.company-sector {
  font-size: 11px; color: var(--teal);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 11px;
}
.company-desc { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 16px; }
.company-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  background: var(--tag-gold); border: 1px solid rgba(160,120,64,0.18);
  color: var(--gold); font-size: 11px; padding: 3px 10px;
  border-radius: 3px; letter-spacing: .02em;
}
.tag.teal {
  background: var(--teal-dim); border-color: rgba(15,138,122,0.2); color: var(--teal);
}
.company-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 13px; margin-top: auto;
}
.company-location { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.company-cta {
  font-size: 12px; color: var(--navy); text-decoration: none;
  letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
  transition: gap .18s, color .18s; font-weight: 500;
}
.company-cta:hover { gap: 8px; color: var(--gold); }

/* ============================================================
   SECCIÓN PODEBIs
   ============================================================ */
.podebis-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
}
.podebis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.podebi-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 20px; display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.podebi-card:hover { border-color: rgba(15,138,122,0.35); box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.podebi-num {
  font-family: 'Cormorant Garamond', serif; font-size: 32px;
  font-weight: 300; color: var(--teal); opacity: .3;
  line-height: 1; flex-shrink: 0; width: 40px;
}
.podebi-name {
  font-family: 'Cormorant Garamond', serif; font-size: 17px;
  font-weight: 500; color: var(--navy); margin-bottom: 2px;
}
.podebi-state { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.podebi-operator { font-size: 12px; color: var(--teal); }
.podebi-status { margin-top: 7px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  flex-shrink: 0; animation: pulse 2s ease-in-out infinite;
}
.status-dot.yellow { background: #f59e0b; animation: none; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ============================================================
   SECTORES
   ============================================================ */
.sectors-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1.5px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 80px;
}
.sector-cell { background: var(--bg); padding: 24px 20px; transition: background .18s; cursor: default; }
.sector-cell:hover { background: var(--bg-soft); }
.sector-icon { font-size: 24px; margin-bottom: 9px; }
.sector-name { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 2px; }
.sector-count { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   INCENTIVOS
   ============================================================ */
.incentives-section { padding-bottom: 80px; }
.incentives-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.incentive-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 28px 24px; position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: box-shadow .2s, transform .18s;
}
.incentive-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.09); transform: translateY(-2px); }
.incentive-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.incentive-number {
  font-family: 'Cormorant Garamond', serif; font-size: 52px;
  font-weight: 300; color: var(--navy); line-height: 1; margin-bottom: 7px;
}
.incentive-number span { color: var(--gold); }
.incentive-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 7px; }
.incentive-desc { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ============================================================
   SECCIÓN LISTING / CTA
   ============================================================ */
.listing-section { background: var(--navy); }
.listing-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.listing-text .section-eyebrow { color: var(--gold-lt); }
.listing-text h2 { color: #fff; margin-bottom: 13px; }
.listing-text h2 em { color: var(--gold-lt); }
.listing-text p { color: rgba(255,255,255,0.5); font-size: 15px; line-height: 1.8; margin-bottom: 32px; }

.btn-listing {
  background: var(--gold); color: #fff;
  padding: 13px 30px; border: none; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .04em; cursor: pointer; text-decoration: none;
  transition: background .2s; display: inline-block;
}
.btn-listing:hover { background: var(--gold-lt); }

.plan-grid { display: flex; flex-direction: column; gap: 11px; }
.plan-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  padding: 17px 22px; display: flex; align-items: center;
  justify-content: space-between; transition: border-color .2s, background .2s;
}
.plan-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.09); }
.plan-card.featured { border-color: rgba(160,120,64,0.55); background: rgba(160,120,64,0.09); }
.plan-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.plan-card.featured .plan-name { color: var(--gold-lt); }
.plan-desc { font-size: 12px; color: rgba(255,255,255,0.38); }
.plan-price {
  font-family: 'Cormorant Garamond', serif; font-size: 23px;
  font-weight: 300; color: #fff; text-align: right;
}
.plan-price span {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 10px;
  color: rgba(255,255,255,0.38); letter-spacing: .06em; text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 58px 48px 34px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 46px; margin-bottom: 46px;
}
.footer-brand .nav-logo-main { font-size: 21px; color: #fff; }
.footer-brand .nav-logo-sub  { color: var(--gold-lt); }
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.36);
  line-height: 1.8; margin-top: 13px; max-width: 255px;
}
.footer-col h4 {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 15px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(255,255,255,0.38); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.26); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.26); text-decoration: none; font-size: 12px; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 13px 20px; }
  .nav-links { display: none; }
  .hero { padding: 120px 20px 200px; }
  .hero-stats { right: 20px; bottom: 32px; }
  .hero-map { display: none; }
  .search-section { padding: 18px 20px; position: static; }
  .section-wrap { padding: 0 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .companies-grid { grid-template-columns: 1fr; }
  .podebis-grid { grid-template-columns: 1fr; }
  .sectors-strip { grid-template-columns: repeat(2,1fr); }
  .incentives-grid { grid-template-columns: 1fr; }
  .listing-inner { grid-template-columns: 1fr; gap: 38px; padding: 52px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  footer { padding: 38px 20px 28px; }
}

/* ============================================================
   MODAL DE REGISTRO
   ============================================================ */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,31,46,0.55);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

/* Caja del modal */
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%; max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  animation: modalIn .28s cubic-bezier(.22,.68,0,1.2) forwards;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.94) translateY(16px); }
  to   { opacity:1; transform: scale(1)    translateY(0); }
}

/* Cabecera */
.modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  padding: 32px 36px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-eyebrow {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300;
  color: var(--navy); line-height: 1.15;
}
.modal-header h3 em { font-style: italic; color: var(--teal); }

.modal-close {
  background: var(--bg-soft); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; color: var(--muted);
  cursor: pointer; flex-shrink: 0;
  transition: background .18s, color .18s;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.modal-close:hover { background: var(--border); color: var(--navy); }

/* Pasos */
.modal-steps {
  display: flex; align-items: center;
  padding: 20px 36px 0;
  gap: 0;
}
.modal-step {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-weight: 400;
  transition: color .2s; white-space: nowrap;
}
.modal-step span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; transition: all .2s;
}
.modal-step.active { color: var(--navy); font-weight: 500; }
.modal-step.active span {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.modal-step.done span {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.modal-step-line {
  flex: 1; height: 1px; background: var(--border);
  margin: 0 10px; min-width: 16px;
}

/* Pasos del formulario */
.form-step { padding: 24px 36px 0; }
.form-step.hidden { display: none; }

/* Campos */
.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-field label {
  font-size: 12px; font-weight: 500; color: var(--navy); letter-spacing: .01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; background: var(--bg-soft);
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 10px 13px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color .18s, background .18s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal); background: #fff;
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error { border-color: #e24b4a; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); font-size: 13px; }
.form-field textarea { resize: vertical; min-height: 78px; }

/* Hint del plan */
.plan-select-hint {
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
  padding: 0 0 12px; border-bottom: 1px solid var(--border);
}

/* Grid de planes */
.plan-select-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.plan-option {
  position: relative; cursor: pointer; display: block;
}
.plan-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.plan-option-inner {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 16px; transition: border-color .2s, box-shadow .2s;
  background: var(--bg-soft); height: 100%;
}
.plan-option input:checked ~ .plan-option-inner {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,31,46,0.08);
}
.plan-option.featured .plan-option-inner {
  border-color: rgba(160,120,64,0.4);
}
.plan-option.featured input:checked ~ .plan-option-inner {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,120,64,0.12);
}
.plan-option-badge {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 500;
  padding: 2px 10px; border-radius: 10px;
  white-space: nowrap; letter-spacing: .04em;
}
.plan-option-header { margin-bottom: 12px; }
.plan-option-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 2px;
}
.plan-option-price {
  font-size: 14px; font-weight: 500; color: var(--navy);
}
.plan-option-price span { font-size: 11px; color: var(--muted); font-weight: 400; }
.plan-option-features {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.plan-option-features li { font-size: 11px; color: var(--muted); }
.plan-option-features li:first-child { color: var(--text); font-weight: 500; }

/* Confirmación */
.confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(15,138,122,0.1); color: var(--teal);
  font-size: 24px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
}
.confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300; color: var(--navy);
  text-align: center; margin-bottom: 12px;
}
.confirm-desc {
  font-size: 14px; color: var(--muted); text-align: center;
  line-height: 1.75; max-width: 440px; margin: 0 auto 10px;
}
.confirm-sub {
  font-size: 12px; color: var(--muted); text-align: center; opacity: .7;
}

/* Navegación inferior del modal */
.modal-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 36px 32px; margin-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-nav-info { font-size: 12px; color: var(--muted); }

.btn-modal-next {
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  padding: 11px 28px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .18s, transform .14s;
}
.btn-modal-next:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-modal-next.submit { background: var(--teal); }
.btn-modal-next.submit:hover { background: #0a6e60; }

.btn-modal-back {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 10px 22px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; cursor: pointer; transition: border-color .18s, color .18s;
}
.btn-modal-back:hover { border-color: var(--navy); color: var(--navy); }
.btn-modal-back.hidden,
.btn-modal-next.hidden { visibility: hidden; pointer-events: none; }

/* Responsive modal */
@media (max-width: 700px) {
  .modal { border-radius: 12px 12px 0 0; max-height: 95vh; margin-top: auto; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-header { padding: 24px 20px 16px; }
  .form-step { padding: 20px 20px 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .plan-select-grid { grid-template-columns: 1fr; }
  .modal-nav { padding: 20px 20px 28px; }
  .modal-steps { padding: 16px 20px 0; }
}
