/* ============================================================
   VERTEX — Stylesheet
   Variables · Reset · Layout · Componentes · Secciones · Responsive
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --gold:        #F5A800;
  --gold-dark:   #c47f00;
  --gold-glow:   rgba(245,168,0,0.18);
  --silver:      #C0C0C0;
  --bg:          #111111;
  --bg2:         #1a1a1a;
  --bg3:         #141414;
  --surface:     #1e1e1e;
  --surface2:    #242424;
  --border:      rgba(255,255,255,0.07);
  --text:        #e8e8e8;
  --text-muted:  #888;
  --white:       #ffffff;
  --font-head:   'Rajdhani', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 24px rgba(245,168,0,0.25);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:       72px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ─── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: #111;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── COOKIE BANNER ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface2);
  border-top: 1px solid var(--gold);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner.hidden { display: none; }
.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
}
.cookie-content p { font-size: 0.875rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-link { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gold);
  color: #111;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-dark); }
.btn-cookie-reject {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-cookie-reject:hover { color: var(--text); }

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}

.nav-logo { flex-shrink: 0; }
.logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--silver);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.nav-cta { margin-left: 8px; font-size: 0.9rem; padding: 10px 20px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(17,17,17,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { padding: 12px 16px; font-size: 1.1rem; width: 100%; }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.85) 70%, #111 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245,168,0,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 1.4s ease infinite;
  opacity: 0;
}
.hero-scroll-hint span:nth-child(2) { animation-delay: 0.2s; }
.hero-scroll-hint span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: translateY(-4px); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* Fade in */
.animate-fadein {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.2s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark    { background: var(--bg);  }
.section-darker  { background: var(--bg2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}
.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ─── PILARES ───────────────────────────────────────────────── */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pilar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}
.pilar-card:hover {
  border-color: rgba(245,168,0,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.pilar-icon { width: 56px; height: 56px; margin-bottom: 20px; }

.pilar-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.pilar-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ─── PROGRAMAS ─────────────────────────────────────────────── */
.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.programa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.programa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.programa-card:hover::before { opacity: 1; }
.programa-card:hover {
  border-color: rgba(245,168,0,0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.programa-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 640px) { .programa-card-wide { flex-direction: column; } }

.programa-icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 16px; }
.programa-card-wide .programa-icon { margin-bottom: 0; }

.programa-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
}
.programa-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; position: relative; }
.programa-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,168,0,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  position: relative;
}

.programas-cta { text-align: center; }

/* ─── TIMELINE ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-left  { flex-direction: row; }
.timeline-right { flex-direction: row-reverse; }

.timeline-left  .timeline-content { text-align: right; }
.timeline-right .timeline-content { text-align: left; }

.timeline-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex: 1;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: rgba(245,168,0,0.3);
  box-shadow: var(--shadow-gold);
}
.timeline-content h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

@media (max-width: 640px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-right { flex-direction: column; gap: 16px; padding-left: 48px; }
  .timeline-number { position: absolute; left: 0; top: 0; font-size: 1.5rem; min-width: auto; }
  .timeline-left .timeline-content,
  .timeline-right .timeline-content { text-align: left; }
}

/* ─── SEDE ──────────────────────────────────────────────────── */
.sede-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sede-info h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.sede-info p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.65; }

.sede-features { display: flex; flex-direction: column; gap: 12px; }
.sede-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.sede-features svg { width: 20px; height: 20px; flex-shrink: 0; }

.mapa-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mapa-placeholder svg { width: 48px; height: 48px; }
.mapa-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

.mapa-container iframe { border-radius: var(--radius); }

@media (max-width: 768px) {
  .sede-grid { grid-template-columns: 1fr; }
}

/* ─── EQUIPO ────────────────────────────────────────────────── */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}
.staff-card:hover {
  border-color: rgba(245,168,0,0.3);
  transform: translateY(-2px);
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.staff-avatar span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #111;
}

.staff-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.staff-title {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.staff-bio { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ─── RESULTADOS / STATS ────────────────────────────────────── */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.testimonio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonio-card:hover { border-color: rgba(245,168,0,0.2); }

.testimonio-quote {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonio-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }

.testimonio-autor { border-top: 1px solid var(--border); padding-top: 16px; }
.autor-nombre { display: block; font-weight: 600; color: var(--white); font-size: 0.9rem; }
.autor-cat { font-size: 0.8rem; color: var(--gold); }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(245,168,0,0.35); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--gold); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p { padding: 0 24px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── CONTACTO ──────────────────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Formulario */
.contacto-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--silver); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 18px; height: 18px; animation: spin 0.8s linear infinite; }

/* Info contacto */
.contacto-info { display: flex; flex-direction: column; gap: 32px; }

.wa-block { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: #25D366;
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn-whatsapp svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-texto { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.info-items { display: flex; flex-direction: column; gap: 16px; }
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.info-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.info-item a { transition: color var(--transition); }
.info-item a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-info { order: -1; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--bg3); padding: 64px 0 32px; margin-top: 0; }

.footer-top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { color: var(--gold); border-color: var(--gold); }
.social-link svg { width: 16px; height: 16px; }

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a,
.footer-contact a,
.footer-contact li {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── WHATSAPP WIDGET (flotante derecha) ────────────────────── */
.wa-widget-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.wa-widget-btn:hover {
  background: #1da851;
  transform: scale(1.08);
}
.wa-widget-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
}
.wa-widget-btn svg { width: 30px; height: 30px; fill: white; position: relative; z-index: 1; }

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--surface2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border: 1px solid var(--border);
}
.wa-widget-btn:hover .wa-tooltip { opacity: 1; }

/* ─── CHAT WIDGET (flotante izquierda) ──────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 990;
  font-family: var(--font-body);
}

.chat-toggle-btn {
  width: 58px;
  height: 58px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold), 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.chat-toggle-btn:hover { background: var(--gold-dark); transform: scale(1.08); }
.chat-toggle-btn svg { width: 28px; height: 28px; fill: #111; position: relative; z-index: 1; }
.chat-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  left: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat-panel.hidden {
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  background: linear-gradient(135deg, #1a1a1a, #222);
  border-bottom: 1px solid rgba(245,168,0,0.2);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.9rem;
  color: #111;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.chat-header-status { font-size: 0.75rem; color: #4ade80; }
.chat-close {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}
.chat-close:hover { color: var(--white); }
.chat-close svg { width: 18px; height: 18px; }

/* Formulario intro */
.chat-intro {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-intro p { font-size: 0.8rem; color: var(--text-muted); }
.chat-intro-inputs { display: flex; flex-direction: column; gap: 8px; }
.chat-intro input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.chat-intro input:focus { border-color: var(--gold); }
.chat-intro input::placeholder { color: var(--text-muted); }
.chat-intro-btn {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.chat-intro-btn:hover { background: var(--gold-dark); }

.chat-messages {
  flex: 1;
  height: 280px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.msg-bot {
  background: var(--surface2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg-user {
  background: var(--gold);
  color: #111;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.msg-escalar {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
  font-size: 0.8rem;
  align-self: center;
  text-align: center;
  border-radius: 8px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  font-family: var(--font-body);
}
.chat-input:focus { border-color: var(--gold); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  transition: var(--transition);
}
.chat-send:hover { background: var(--gold-dark); }
.chat-send svg { width: 16px; height: 16px; fill: #111; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── RESPONSIVE GLOBAL ─────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .stats-grid { gap: 40px; }
  .wa-widget-btn { bottom: 20px; right: 20px; }
  .chat-widget { bottom: 20px; left: 20px; }
}
