/* ==========================================
   styles.css — TechInstitucional
   Diseño corporativo oscuro, elegante y real.
   Versión 2.0
   ========================================== */

/* ==========================================
   1. VARIABLES Y RESET
   ========================================== */
:root {
  /* Paleta */
  --bg:            #0b0e1a;
  --bg-alt:        #0f1321;
  --bg-surface:    #141929;
  --bg-card:       #161d30;
  --bg-card-hover: #1a2238;
  --border:        rgba(255,255,255,0.07);
  --border-light:  rgba(255,255,255,0.12);

  /* Texto */
  --text:          #dde3ef;
  --text-muted:    #7d8ba3;
  --text-light:    #b0bdd0;
  --heading:       #ffffff;

  /* Acento dorado */
  --gold:          #c9973a;
  --gold-light:    #ddb96a;
  --gold-dim:      rgba(201,151,58,0.12);
  --gold-border:   rgba(201,151,58,0.28);
  --gold-glow:     rgba(201,151,58,0.18);

  /* Acento azul */
  --blue:          #3b82f6;
  --blue-dim:      rgba(59,130,246,0.10);
  --blue-border:   rgba(59,130,246,0.22);

  /* Semánticos */
  --success:       #22c55e;
  --warning-bg:    rgba(245,158,11,0.08);
  --warning-border:rgba(245,158,11,0.22);
  --warning-text:  #c89c55;

  /* Sombras */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.55);
  --shadow-gold:   0 0 40px rgba(201,151,58,0.12);

  /* Espaciado */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   1.5rem;
  --sp-lg:   2.5rem;
  --sp-xl:   4rem;
  --sp-2xl:  6rem;

  /* Tipografía */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Bordes */
  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-full: 9999px;

  /* Transición */
  --t:      0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
ul  { list-style: none; }
a   { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-light); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
strong { color: var(--heading); font-weight: 600; }

/* ==========================================
   2. LAYOUT
   ========================================== */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--sp-2xl); }
.section--alt { background: var(--bg-alt); }
.section--sm  { padding-block: var(--sp-xl); }

/* ==========================================
   3. TIPOGRAFÍA
   ========================================== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--text-light); }

/* ==========================================
   4. BOTONES
   ========================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.015em; white-space: nowrap;
  transition: all var(--t);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a87523 100%);
  color: #0b0e1a; font-weight: 700;
  box-shadow: 0 4px 18px rgba(201,151,58,0.32);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,151,58,0.48);
  color: #0b0e1a;
}

.btn--outline {
  border: 1.5px solid var(--border-light); color: var(--text); background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--nav {
  background: var(--gold-dim); border: 1.5px solid var(--gold-border);
  color: var(--gold); padding: 0.5rem 1.1rem; font-size: 0.88rem;
}
.btn--nav:hover { background: rgba(201,151,58,0.2); color: var(--gold-light); }

.btn--lg { padding: 0.88rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #fff !important;
  padding: 0.6rem 1.3rem; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.9rem;
}
.btn--whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); color: #fff; }

/* TAG PILL — no acumulable */
.tag-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 0.1rem 0.55rem;
  border-radius: var(--r-full);
  vertical-align: middle;
  margin-left: 0.4rem;
  white-space: nowrap;
}

/* ==========================================
   5. ENCABEZADOS DE SECCIÓN
   ========================================== */
.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-xl);
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-sm);
}

.section__title { margin-bottom: var(--sp-sm); }
.section__subtitle { font-size: 1.03rem; color: var(--text-muted); line-height: 1.85; }

/* ==========================================
   6. NAVBAR
   ========================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 1rem;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}

.navbar.scrolled {
  background: rgba(11,14,26,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.4);
  padding-block: 0.7rem;
}

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
}

.navbar__logo {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-size: 1.1rem;
  color: var(--heading); font-weight: 300; letter-spacing: -0.01em;
}
.navbar__logo:hover { color: var(--heading); }
.navbar__logo strong { font-weight: 700; }
.logo-icon { color: var(--gold); font-size: 1.25rem; line-height: 1; }
.navbar__logo-img { height: 34px; width: auto; }

.navbar__links {
  display: flex; align-items: center; gap: 2rem;
}
.navbar__links > a:not(.btn) {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color var(--t);
  position: relative;
}
.navbar__links > a:not(.btn)::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--t);
}
.navbar__links > a:not(.btn):hover { color: var(--heading); }
.navbar__links > a:not(.btn):hover::after { transform: scaleX(1); }

.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 101;
}
.navbar__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all var(--t);
}

/* ==========================================
   7. HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

/* ---- Imagen de fondo del hero ----
   Coloca tu imagen en /img/hero-bg.jpg
   Reemplaza la URL de url() cuando la tengas.
   Mientras tanto se muestra el gradiente como fallback.
*/
.hero__bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Escala muy leve para efecto parallax CSS */
  transform: scale(1.04);
}

/* Overlay oscuro encima de la imagen */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(11,14,26,0.92) 45%, rgba(11,14,26,0.55) 100%),
    radial-gradient(ellipse 70% 80% at 80% 40%, rgba(59,130,246,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 15% 60%, rgba(201,151,58,0.07) 0%, transparent 70%);
}

/* Patrón de puntos decorativo sobre la imagen */
.hero__overlay::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  padding-block: var(--sp-xl);
  width: 100%;
}

.hero__content { max-width: 600px; }

.hero__badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim); border: 1px solid var(--gold-border);
  padding: 0.28rem 0.85rem; border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
  animation: fadeInUp 0.6s ease both;
}

.hero__title {
  margin-bottom: var(--sp-md);
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted); max-width: 520px;
  margin-bottom: var(--sp-lg); line-height: 1.85;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: var(--sp-lg);
  animation: fadeInUp 0.6s 0.3s ease both;
}

/* Mini-métricas */
.hero__stats {
  display: flex; align-items: center; gap: 1.5rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero__stat { text-align: center; }
.hero__stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--gold); line-height: 1;
}
.hero__stat span {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero__stat-divider {
  width: 1px; height: 36px; background: var(--border-light);
  flex-shrink: 0;
}

/* Columna visual del hero */
.hero__visual {
  display: flex; justify-content: flex-end; align-items: center;
  animation: fadeInUp 0.7s 0.25s ease both;
}

.hero__mockup-img {
  max-height: 480px; width: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  border-radius: var(--r-md);
}

/* Si la imagen no existe u está rota: ocultar el visual */
.hero__visual.img-missing { display: none; }

/* Flecha scroll */
.hero__scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  display: block; width: 22px; height: 36px;
  border: 2px solid var(--border-light); border-radius: 11px; position: relative;
}
.scroll-dot::after {
  content: ''; position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px;
  background: var(--gold); border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(9px); opacity: 0.25; }
}

/* ==========================================
   8. TRUST BAND
   ========================================== */
.trust-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.1rem;
}
.trust-band__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
}
.trust-item__icon { font-size: 1rem; }

/* ==========================================
   9. BENEFITS GRID
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  opacity: 0; transform: translateY(22px);
  position: relative; overflow: hidden;
}
.benefit-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 var(--t);
}
.benefit-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--t), box-shadow var(--t);
}
.benefit-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  background: var(--bg-card-hover);
}
.benefit-card:hover::before { opacity: 1; }

.benefit-card__icon { font-size: 2.2rem; margin-bottom: var(--sp-sm); display: block; }
.benefit-card__icon-img { width: 48px; height: 48px; margin-bottom: var(--sp-sm); }

.benefit-card h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1.03rem;
  color: var(--heading); margin-bottom: 0.5rem;
}
.benefit-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ==========================================
   10. PLAN CARD
   ========================================== */
.plan-wrapper { max-width: 800px; margin-inline: auto; }

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.plan-card__header {
  background: linear-gradient(135deg, rgba(201,151,58,0.14) 0%, rgba(201,151,58,0.04) 100%);
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* Línea decorativa top */
.plan-card__header::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.plan-card__badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: #0b0e1a;
  padding: 0.25rem 0.85rem; border-radius: var(--r-full);
  margin-bottom: var(--sp-sm);
}

.plan-card__name {
  font-family: var(--font-display); font-size: 1.9rem;
  color: var(--heading); margin-bottom: var(--sp-sm);
}

.plan-card__price {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0.15rem; margin-bottom: 0.3rem;
}
.plan-card__currency {
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 600;
  color: var(--gold); padding-top: 0.6rem;
}
.plan-card__amount {
  font-family: var(--font-display); font-size: 5rem; line-height: 1;
  color: var(--heading);
}
.plan-card__period {
  font-family: var(--font-body); font-size: 1rem; color: var(--text-muted);
  padding-top: 3.3rem;
}

.plan-card__tagline {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--sp-lg);
  font-style: italic;
}

.plan-card__body { padding: var(--sp-lg) var(--sp-xl); }

/* Módulos */
.plan-module {
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.plan-module:last-child { border-bottom: none; }

.plan-module__header {
  display: flex; align-items: center; gap: 0.65rem; margin-bottom: var(--sp-sm);
}
.plan-module__icon { font-size: 1.2rem; }
.plan-module__header h4 { font-size: 0.98rem; font-weight: 600; color: var(--heading); }

/* Listas */
.plan-list { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-list--check li {
  font-size: 0.9rem; color: var(--text-muted);
  padding-left: 1.55rem; position: relative; line-height: 1.6;
}
.plan-list--check li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700; font-size: 0.82rem;
}
.plan-list--check li strong { color: var(--text); }

/* Notas */
.plan-note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.8rem 1rem; border-radius: var(--r-md); margin-top: var(--sp-sm);
}
.plan-note span { flex-shrink: 0; font-size: 0.95rem; margin-top: 0.05rem; }
.plan-note p { font-size: 0.83rem; line-height: 1.7; margin: 0; }
.plan-note--info  { background: var(--blue-dim);    border: 1px solid var(--blue-border); }
.plan-note--info p { color: #8cb8e8; }
.plan-note--warning { background: var(--warning-bg); border: 1px solid var(--warning-border); }
.plan-note--warning p { color: var(--warning-text); }

.plan-disclaimer {
  text-align: center; margin-top: var(--sp-md);
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.75;
  max-width: 640px; margin-inline: auto;
}

/* ==========================================
   11. POR QUÉ ELEGIRNOS
   ========================================== */
.why-feature-img {
  margin-bottom: var(--sp-xl); border-radius: var(--r-lg); overflow: hidden;
  max-height: 380px;
}
.why-feature-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.why-card {
  padding: var(--sp-lg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  opacity: 0; transform: translateY(22px);
  position: relative; overflow: hidden;
}
.why-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--t);
}
.why-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card__num {
  font-family: var(--font-display); font-size: 4rem;
  color: rgba(201,151,58,0.1); line-height: 1;
  position: absolute; top: var(--sp-md); right: var(--sp-md);
  pointer-events: none;
}

.why-card h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--heading); margin-bottom: 0.55rem; position: relative;
}
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.78; position: relative; }

/* ==========================================
   12. FAQ
   ========================================== */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.4rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item:hover, .faq-item.open { border-color: var(--border-light); }
.faq-item.open { border-color: var(--gold-border); }

.faq-question {
  width: 100%; text-align: left;
  padding: 1.15rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.94rem; font-weight: 500; color: var(--heading);
  transition: color var(--t);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0; font-size: 1.5rem; color: var(--gold); font-weight: 300;
  transition: transform var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.85;
}
.faq-item.open .faq-answer { max-height: 320px; }

/* ==========================================
   13. CONTACTO
   ========================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.contact-info__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-block: var(--sp-sm) var(--sp-md);
}
.contact-info__desc {
  font-size: 0.98rem; color: var(--text-muted); line-height: 1.82; margin-bottom: var(--sp-lg);
}

/* Imagen de contacto (opcional) */
.contact-img-wrapper {
  margin-bottom: var(--sp-lg);
  border-radius: var(--r-md); overflow: hidden;
  max-height: 200px;
}
.contact-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.contact-illustration { border-radius: var(--r-md); }

.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-details li { display: flex; gap: var(--sp-sm); align-items: flex-start; }
.contact-details__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-details strong {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.15rem;
  font-family: var(--font-body);
}
.contact-details a, .contact-details span { font-size: 0.93rem; color: var(--text-light); }
.contact-details a:hover { color: var(--gold); }

/* Formulario */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex; flex-direction: column; gap: 1.2rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.83rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body); font-size: 0.93rem; color: var(--heading);
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(201,151,58,0.55);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.09);
}
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }

.form-error { font-size: 0.78rem; color: #f87171; display: none; }
.form-error.visible { display: block; }

.form-group--check label { font-size: 0.83rem; color: var(--text-muted); font-weight: 400; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer; line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 15px; height: 15px; min-width: 15px;
  accent-color: var(--gold); margin-top: 0.15rem; cursor: pointer;
}
.form-checkbox a { font-size: 0.83rem; }

.form-success {
  text-align: center; padding: var(--sp-sm);
  background: rgba(34,197,94,0.09);
  border: 1px solid rgba(34,197,94,0.28);
  border-radius: var(--r-md);
  font-size: 0.92rem; color: #4ade80; font-weight: 500;
}
.form-success[hidden] { display: none; }
.form-success.visible { display: block; }

/* ==========================================
   14. LEGAL
   ========================================== */
.legal-block { max-width: 760px; margin-inline: auto; }
.legal-block h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: var(--sp-md);
}
.legal-block p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.88; margin-bottom: 0.8rem; }
.legal-block strong { color: var(--text-light); font-weight: 600; }
.legal-small { font-size: 0.76rem !important; color: rgba(125,139,163,0.65) !important; }

/* ==========================================
   15. FOOTER
   ========================================== */
.footer {
  background: #07090f;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-2xl);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}
.footer__logo { margin-bottom: var(--sp-sm); }
.footer__brand p {
  font-size: 0.87rem; color: var(--text-muted); line-height: 1.78; max-width: 280px;
}
.footer__links h4, .footer__contact h4 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--sp-sm);
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a { font-size: 0.87rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }

.footer__contact { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__email { font-size: 0.84rem; color: var(--text-muted); word-break: break-all; }
.footer__email:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-md);
}
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(125,139,163,0.55); }

/* ==========================================
   16. WHATSAPP FLOTANTE
   ========================================== */
.whatsapp-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 90;
  background: #25D366; width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--t);
  opacity: 0; /* entrada controlada por JS */
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.whatsapp-float__tooltip {
  position: absolute; right: 62px;
  background: var(--bg-surface); color: var(--text);
  font-family: var(--font-body); font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full); white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translateX(8px);
  transition: all var(--t);
  border: 1px solid var(--border-light);
}
.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1; transform: translateX(0);
}

/* ==========================================
   17. ANIMACIONES
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   18. RESPONSIVE — TABLET (≤1024px)
   ========================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; } /* ocultar mockup lateral en tablet */

  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }

  .contact-wrapper { grid-template-columns: 1fr; gap: var(--sp-xl); }
}

/* ==========================================
   19. RESPONSIVE — MÓVIL (≤768px)
   ========================================== */
@media (max-width: 768px) {

  /* Navbar */
  .navbar__links {
    display: none;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(7,9,15,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; padding: var(--sp-xl);
  }
  .navbar__links.open { display: flex; }
  .navbar__links > a:not(.btn) { font-size: 1.35rem; color: var(--text); }
  .navbar__links > a:not(.btn)::after { display: none; }
  .navbar__links .btn--nav { font-size: 1.1rem; padding: 0.8rem 2rem; }
  .navbar__hamburger { display: flex; }
  .navbar__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar__hamburger.active span:nth-child(2) { opacity: 0; }
  .navbar__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero */
  .hero { padding-top: 80px; min-height: auto; padding-bottom: var(--sp-xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 1rem; }
  .hero__stat strong { font-size: 1.25rem; }
  .hero__scroll-hint { display: none; }

  /* Trust band */
  .trust-band__inner { gap: var(--sp-sm); justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-inline: 1rem; }

  /* Grids */
  .benefits-grid, .why-grid { grid-template-columns: 1fr; }

  /* Plan */
  .plan-card__header, .plan-card__body { padding: var(--sp-lg) var(--sp-md); }
  .plan-card__amount { font-size: 4rem; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: var(--sp-md); }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer__brand p { max-width: 100%; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 0.3rem; }

  /* WhatsApp */
  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; width: 48px; height: 48px; }
  .whatsapp-float__tooltip { display: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .section { padding-block: var(--sp-xl); }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.65rem; }
  .plan-card__amount { font-size: 3.5rem; }
  .plan-card__header { padding: var(--sp-md); }
}

/* ==========================================
   20. ACCESIBILIDAD Y UTILIDADES
   ========================================== */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,151,58,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,151,58,0.5); }

/* Selección */
::selection { background: rgba(201,151,58,0.28); color: var(--heading); }
