/* =====================================================
   AMHAVET — Curso Virtual Ecografía en Yeguas
   ===================================================== */

:root {
  --color-primary:      #C3E3F4;
  --color-secondary:    #66879E;
  --color-bg:           #FFFFFF;
  --color-text:         #111111;
  --color-text-light:   #444444;
  --color-dark:         #0D1F2D;
  --color-accent:       #C9A84C;
  --color-accent-light: #e0bb67;
  --color-border:       rgba(102,135,158,0.25);
  --color-white:        #FFFFFF;

  /* Aliases heredados */
  --primary:    #0D1F2D;
  --secondary:  #66879E;
  --dark:       #0D1F2D;
  --light:      #FFFFFF;
  --gold:       #C9A84C;
  --gold-light: #e0bb67;
  --text:       #111111;
  --muted:      #555e6a;
  --border:     rgba(102,135,158,0.25);
  --white:      #FFFFFF;

  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;

  --nav-h:     72px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(13,31,45,.08);
  --shadow-lg: 0 16px 56px rgba(13,31,45,.18);
  --transition:.24s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-primary); }
::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 3px; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--transition), transform .15s, box-shadow var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.btn.btn-primary {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
  animation: btnPulse 2s ease-in-out infinite;
}
.btn.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.38);
  animation: none;
}

.btn.btn-wa {
  background: #25D366; color: var(--color-white); border-color: #25D366;
}
.btn.btn-wa:hover {
  background: #1db954; border-color: #1db954;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
}
.wa-icon { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }

.btn.btn-ghost {
  background: transparent; color: var(--color-white);
  border-color: rgba(255,255,255,.4);
}
.btn.btn-ghost:hover {
  border-color: var(--color-white); background: rgba(255,255,255,.1);
}

/* ===== ANIMACIONES SCROLL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal.from-left  { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.visible    { opacity: 1; transform: translate(0); }

/* ===== UTILIDADES ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 46px); font-weight: 700; line-height: 1.15;
  color: var(--color-text); margin-bottom: 16px;
}
@media (min-width: 1024px) {
  .temario .section-header h2 {
    white-space: nowrap; font-size: clamp(28px, 2.8vw, 42px);
  }
}
.section-sub { color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: transparent;
  transition: background .35s, box-shadow .35s;
}
#navbar.scrolled {
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(13,31,45,.12);
}
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.8); transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-white); }

/* Links oscuros al hacer scroll (nav blanco) */
#navbar.scrolled .nav-links a { color: var(--color-dark); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--color-secondary); }

.nav-cta {
  background: var(--color-accent) !important; color: #000 !important;
  padding: 10px 20px !important; border-radius: var(--radius) !important;
  letter-spacing: 1px !important;
  animation: btnPulse 2s ease-in-out infinite !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--color-accent-light) !important; animation: none !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav-toggle span {
  display: block; height: 2px; background: var(--color-white);
  border-radius: 2px; transition: .25s;
}
#navbar.scrolled .nav-toggle span { background: var(--color-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO — DOS COLUMNAS ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--color-dark); overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(13,31,45,.85) 0%, rgba(13,31,45,.6) 50%, rgba(13,31,45,.9) 100%);
}
.hero-two-col {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "left right" "bottom right";
  gap: 48px; align-items: start; min-height: 100vh;
}
.hero-left { grid-area: left; color: var(--color-white); }
.hero-right { grid-area: right; align-self: center; }
.hero-bottom {
  grid-area: bottom; color: var(--color-white);
  display: flex; flex-direction: column; gap: 24px; justify-content: flex-end;
}

/* Shimmer en eyebrow */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(90deg,
    #C9A84C 0%, #C9A84C 35%, #fff8e7 50%, #C9A84C 65%, #C9A84C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.hero-left h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 58px); font-weight: 700; line-height: 1.12;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7;
  color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 520px;
}
.hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 36px;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.75); font-family: var(--font-mono);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Formulario compacto en hero */
.hero-form-card {
  background: rgba(13,31,45,.8);
  border: 1px solid rgba(195,227,244,.2);
  border-radius: 16px; padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-form-title {
  font-size: 15px; font-weight: 700; color: var(--color-white);
  text-align: center; margin-bottom: 16px;
}
.hfg { margin-bottom: 10px; }
.hfg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-form input,
.hero-form select {
  width: 100%; height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 0 12px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--color-white); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--transition), background var(--transition);
}
.hero-form input::placeholder { color: rgba(255,255,255,.35); }
.hero-form input:focus,
.hero-form select:focus {
  border-color: var(--color-primary); background: rgba(255,255,255,.13);
}
.hero-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='rgba(255,255,255,0.4)'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  background-size: 14px; padding-right: 28px;
}
.hero-form select option { background: var(--color-dark); color: var(--color-white); }
.hero-form .tel-wrap { display: flex; gap: 6px; }
.hero-form .tel-wrap select { width: 100px; flex-shrink: 0; }
.hero-form .tel-wrap input { flex: 1; }
.hero-form-submit {
  width: 100%; justify-content: center; margin-top: 12px;
  font-size: 11px; padding: 13px;
}
.hero-form-note {
  text-align: center; margin-top: 8px;
  font-size: 11px; color: rgba(255,255,255,.4);
}
.mini-success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; font-weight: bold;
  margin: 0 auto 12px;
}
.hero-form-success { text-align: center; padding: 20px 0; }
.hero-form-success p {
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.8);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ===== GANCHO ===== */
.gancho { background: var(--color-bg); }
.gancho-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.gancho-text h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2;
  color: var(--color-text); margin-bottom: 20px;
}
.gancho-text p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.gancho-text .btn { margin-top: 12px; }

.gancho-social {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
}
.sp-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.sp-ig-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.sp-ig-icon svg { width: 20px; height: 20px; fill: white; }
.sp-handle { font-weight: 700; font-size: 14px; color: var(--color-text); }
.sp-sublabel { font-size: 11px; color: var(--muted); margin-top: 2px; }
.comment-card { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.comment-card:last-of-type { border-bottom: none; }
.cc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-secondary); color: white; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.cc-name { font-size: 12px; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.cc-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sp-footer {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--color-border);
  font-size: 13px; font-style: italic; color: var(--muted); text-align: center;
}

/* ===== STATS ===== */
.stats {
  background: var(--color-primary); position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px; pointer-events: none;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; z-index: 1;
}
.stat-item {
  text-align: center; padding: 48px 24px;
  border-right: 1px solid rgba(102,135,158,.25);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  color: var(--color-accent); line-height: 1; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px; color: var(--color-secondary); line-height: 1.5;
  max-width: 160px; margin: 0 auto;
}

/* ===== TEMARIO — TIMELINE ===== */
.temario { background: var(--color-bg); }
.modulos-timeline {
  max-width: 820px; margin: 0 auto;
  position: relative;
}
.modulos-timeline::before {
  content: '';
  position: absolute; left: 34px; top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(195,227,244,.1));
  pointer-events: none;
}
.modulo-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  gap: 0 20px; align-items: flex-start;
  padding: 20px 20px 20px 0;
  border-radius: var(--radius-lg);
  cursor: default; position: relative;
  transition: background var(--transition), transform var(--transition);
}
.modulo-row:hover { background: rgba(195,227,244,.18); transform: translateX(6px); }
.modulo-row--cert {
  background: rgba(201,168,76,.14);
  border: 2px solid rgba(201,168,76,.55);
  box-shadow: 0 4px 24px rgba(201,168,76,.14);
}
.modulo-row--cert:hover { background: rgba(201,168,76,.22); transform: translateX(6px); }
.modulo-row--cert .modulo-info h3 { color: var(--color-accent); }

.modulo-num {
  font-family: var(--font-head);
  font-size: 38px; font-weight: 700;
  color: var(--color-accent); line-height: 1.1;
  text-align: right; padding-right: 0; padding-top: 2px;
  background: var(--color-bg);
  position: relative; z-index: 1;
  min-width: 72px;
}
.modulo-row--cert .modulo-num,
.modulo-num--gold { color: var(--color-accent); background: transparent; }

.modulo-info { padding: 4px 0; }
.modulo-info h3 {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  color: var(--color-text); margin-bottom: 6px; line-height: 1.3;
}
.modulo-info p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.modulo-row-icon {
  width: 40px; height: 40px;
  background: var(--color-primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary); margin-top: 4px; flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.modulo-row:hover .modulo-row-icon { background: var(--color-secondary); color: white; }
.modulo-row-icon--gold { background: rgba(201,168,76,.15); color: var(--color-accent); }
.modulo-row--cert:hover .modulo-row-icon--gold { background: rgba(201,168,76,.3); }
.modulo-row-icon svg { width: 20px; height: 20px; }

.temario-nota {
  text-align: center; margin-top: 40px;
  font-size: 15px; color: var(--muted);
}
.temario-nota strong { color: var(--color-dark); }

/* ===== NOSOTROS ===== */
.nosotros { background: var(--color-bg); position: relative; }
.nosotros::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(195,227,244,.1) 0%, transparent 60%);
  pointer-events: none;
}
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; position: relative;
}
.fotos-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-main { grid-column: 1 / -1; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.fc-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fc-main:hover img { transform: scale(1.04); }
.fc-secondary { display: contents; }
.fc-secondary img {
  border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/3;
  transition: transform .5s ease; overflow: hidden;
}
.fc-secondary img:hover { transform: scale(1.04); }

.nosotros-text h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2;
  color: var(--color-text); margin-bottom: 20px;
}
.nosotros-text p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }

.nosotros-bullets {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0 28px;
}
.nosotros-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--muted); line-height: 1.55;
}
.nosotros-bullets li::before {
  content: '●'; color: var(--color-accent); flex-shrink: 0;
  font-size: 7px; margin-top: 7px;
}

/* ===== REGISTRO ===== */
.registro { background: var(--color-dark); position: relative; overflow: hidden; }
.registro-spotlight { position: absolute; inset: 0; pointer-events: none; z-index: 0; transition: background .08s; }
.registro .container { position: relative; z-index: 1; }
.form-wrapper { max-width: 640px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 36px; }
.form-header .section-label { color: var(--color-primary); }
.form-header h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 700;
  color: var(--color-white); margin-bottom: 14px; line-height: 1.2;
}
.form-header p { color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.65; }

/* Contador cupos */
.cupos-counter { text-align: center; margin-bottom: 32px; }
.cupos-bar-wrap {
  background: rgba(195,227,244,.15); border-radius: 4px; height: 6px;
  max-width: 400px; margin: 0 auto .75rem; overflow: hidden;
}
.cupos-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 4px; width: 0%; transition: width .6s ease;
}
.cupos-texto { color: rgba(195,227,244,.8); font-size: .9rem; }
.cupos-numero {
  font-size: 2.2rem; font-weight: 800; color: var(--color-accent);
  font-family: var(--font-head); display: block; line-height: 1.2; margin-bottom: 4px;
}
.cupos-counter-mini {
  text-align: center; margin-top: 12px;
  font-size: 12px; color: rgba(195,227,244,.6); font-family: var(--font-mono);
}
.cupos-counter-mini span {
  color: var(--color-accent); font-weight: 700;
}

.registro-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 48px 44px; backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.form-group input,
.form-group select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 14px 16px; font-family: var(--font-body); font-size: 15px;
  color: var(--color-white); outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder { color: rgba(255,255,255,.28); }
.form-group input:focus,
.form-group select:focus { border-color: var(--color-primary); background: rgba(255,255,255,.11); }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='rgba(255,255,255,0.4)'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  background-size: 18px; padding-right: 44px;
}
.form-group select option { background: var(--color-dark); color: var(--color-white); }

.tel-wrap { display: flex; gap: 8px; }
.tel-wrap select { width: 135px; flex-shrink: 0; }
.tel-wrap input { flex: 1; }

.field-error { font-size: 12px; color: #fca5a5; display: none; }
.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select { border-color: #f87171; }

.btn-submit {
  width: 100%; justify-content: center;
  font-size: 13px; padding: 18px 32px; margin-top: 8px;
  position: relative; overflow: hidden;
}
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; animation: none !important; }

@keyframes spin { to { stroke-dashoffset: -60; } }
.spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  animation: spin .8s linear infinite; stroke-dasharray: 60; stroke-dashoffset: 15;
}

.form-privacy {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6;
}

.form-success, .form-error-msg {
  text-align: center; padding: 48px 24px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px; margin-top: 24px;
}
.form-success { color: var(--color-white); }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #22c55e;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.form-success p { color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.7; }
.form-success a { color: var(--color-accent); }
.form-error-msg p { color: #fca5a5; font-size: 15px; line-height: 1.65; }
.form-error-msg a { color: var(--color-accent); text-decoration: underline; }

/* ===== FOOTER ===== */
#footer { background: var(--color-primary); }
.footer-inner { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.8fr; gap: 48px; }

.footer-logo-badge {
  display: inline-block;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 16px;
  transition: opacity .2s ease;
  cursor: pointer;
}
.footer-logo-badge:hover { opacity: 0.85; }
.footer-logo-img { height: 52px; width: auto; display: block; }

.footer-brand p { font-size: 14px; color: var(--color-secondary); line-height: 1.75; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(102,135,158,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary);
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
}
.footer-social a:hover { transform: translateY(-3px) scale(1.12); }
.footer-social a[aria-label*="Instagram"]:hover {
  border-color: transparent;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}
.footer-social a[aria-label*="WhatsApp"]:hover {
  border-color: #25D366; background: #25D366; color: white;
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-nav h4, .footer-contact h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 14px; color: var(--color-dark);
  display: inline-block; position: relative; padding-bottom: 2px;
  transition: color .2s ease, transform .2s ease;
}
.footer-nav a:hover { color: var(--color-accent); transform: translateX(4px); }
.footer-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1.5px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.footer-nav a:hover::after { transform: scaleX(1); }

.footer-contact p { font-size: 14px; color: var(--color-secondary); margin-bottom: 14px; }
.footer-wa-btn { margin-bottom: 20px; }
.footer-contact address {
  font-style: normal; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--color-secondary);
}
.footer-contact address a { color: var(--color-dark); transition: color var(--transition); }
.footer-contact address a:hover { color: var(--color-accent); }

.footer-bottom { background: #A8CBE0; padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--color-dark); }
.footer-year { display: inline; transition: color .2s ease; cursor: default; }
.footer-year:hover { color: var(--color-accent); }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(13,31,45,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease; padding: 24px;
}
.popup-overlay.visible { opacity: 1; pointer-events: auto; }
.popup-box {
  background: var(--color-white); border-radius: 20px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  transform: scale(.94) translateY(16px); transition: transform .35s ease;
}
.popup-overlay.visible .popup-box { transform: scale(1) translateY(0); }
.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-secondary);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.popup-close:hover { background: var(--color-secondary); color: var(--color-white); }
.popup-body { padding: 44px 40px 36px; text-align: center; }
.popup-emoji { font-size: 40px; margin-bottom: 16px; }
.popup-box h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--color-text); margin-bottom: 14px; }
.popup-box p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.popup-sub { font-size: 14px !important; }
.popup-cta { display: inline-flex; justify-content: center; width: 100%; margin-top: 20px; }
.popup-later { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); transition: color var(--transition); text-align: center; width: 100%; }
.popup-later:hover { color: var(--color-text); }

/* ===== WA FLOTANTE ===== */
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes waLblIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 14px 20px 14px 16px; border-radius: 50px; text-decoration: none;
  animation: waPulse 2.5s ease-in-out infinite;
  transition: background var(--transition), transform var(--transition);
}
.wa-float:hover { background: #1db954; animation: none; transform: translateY(-3px); }
.wa-float .wa-icon { width: 24px; height: 24px; fill: white; flex-shrink: 0; }
.wa-float-lbl {
  font-size: 13px; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
  animation: waLblIn .5s .9s both;
}

/* ===== COMMENTS SCROLL ===== */
@keyframes scrollComments {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.comments-scroll-wrap {
  overflow: hidden; height: 360px; position: relative; margin: 4px 0;
}
.comments-scroll-wrap::before,
.comments-scroll-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; height: 56px; z-index: 2; pointer-events: none;
}
.comments-scroll-wrap::before { top: 0; background: linear-gradient(to bottom, #ffffff, transparent); }
.comments-scroll-wrap::after  { bottom: 0; background: linear-gradient(to top, #ffffff, transparent); }
.comments-track {
  display: flex; flex-direction: column;
  animation: scrollComments 32s linear infinite;
}
.comments-track:hover { animation-play-state: paused; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-two-col { grid-template-columns: 1fr 360px; gap: 32px; }
  .gancho-grid { gap: 48px; }
  .nosotros-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
}
@media (max-width: 900px) {
  .gancho-grid { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-fotos { order: 2; }
  .nosotros-text { order: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(102,135,158,.2); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(102,135,158,.2); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero-two-col {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "bottom";
    padding-top: calc(var(--nav-h) + 16px); padding-bottom: 48px;
    min-height: auto; gap: 24px;
  }
  .hero-left { text-align: center; }
  .hero-bottom { text-align: center; }
  .hero-bottom .hero-meta { justify-content: center; }
  .hero-bottom .hero-actions { justify-content: center; }
  .hero-right { max-width: 480px; margin: 0 auto; width: 100%; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--color-dark); padding: 32px 24px; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.8) !important; }
  .nav-links a:hover { color: var(--color-white) !important; }
  .nav-cta { margin-top: 16px; text-align: center; border-radius: var(--radius) !important; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .registro-form { padding: 32px 24px; }
  .fotos-collage { grid-template-columns: 1fr 1fr; }
  .fc-main { grid-column: 1 / -1; }
  .modulos-timeline::before { display: none; }
  .modulo-row { grid-template-columns: 56px 1fr 40px; }
  .nosotros-text { text-align: center; }
  .nosotros-bullets { text-align: left; }
  .nosotros-text > .btn { margin: 0 auto; }
  .comments-scroll-wrap::before { background: linear-gradient(to bottom, var(--color-white), transparent); }
  .comments-scroll-wrap::after  { background: linear-gradient(to top, var(--color-white), transparent); }
}
@media (max-width: 640px) {
  .temario .section-header h2 { white-space: normal; }
  .hfg-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-left h1 { letter-spacing: -.5px; }
  .hero-bottom .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-bottom .hero-actions .btn { justify-content: center; }
  .hero-bottom .hero-meta { flex-direction: column; align-items: center; gap: 8px; }
  .wa-float { padding: 14px; border-radius: 50%; }
  .wa-float-lbl { display: none; }
  .popup-body { padding: 36px 24px 28px; }
  .tel-wrap { flex-direction: column; }
  .tel-wrap select { width: 100%; }
}
