/* =========================================================
   NÓMADA · Educación para la vida
   Estilo inspirado en platzi.com: fondo claro, tipografía
   negra y contundente, verde como color de marca, tarjetas
   redondeadas con acento de color por categoría, secciones
   oscuras para CTAs y estadísticas.
   ========================================================= */

:root {
  --green: #8BC53F;
  --green-dark: #5C9427;
  --green-soft: #EAF6D9;
  --black: #0B0C0E;
  --dark: #121417;
  --dark-card: #1C1F24;
  --dark-border: rgba(255,255,255,.1);
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F6F8F3;
  --text: #14161A;
  --muted: #656B72;
  --border: #E6E9E2;
  --border-strong: #D2D7CB;
  --whatsapp: #25D366;

  --font: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ─── Textura de fondo (muy sutil, solo en secciones claras) ─── */
.grid-bg { position: relative; }
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,12,14,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,12,14,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.grid-bg.dark::after {
  background-image:
    linear-gradient(rgba(139,197,63,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,197,63,.07) 1px, transparent 1px);
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: .6;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--black);
  border-bottom: 1px solid var(--dark-border);
  transition: padding .3s, box-shadow .3s;
}
.nav.scrolled { padding: 10px 24px; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.nav-logo { display: flex; align-items: center; height: 100px; }
.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: width .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(139,197,63,.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.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 ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 100px;
  overflow: hidden;
  background: var(--bg);
}
#hero .glow-blob:nth-child(1) { width: 460px; height: 460px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(139,197,63,.28), transparent 70%); }
#hero .glow-blob:nth-child(2) { width: 360px; height: 360px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(139,197,63,.16), transparent 70%); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  border: none;
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  color: var(--green-dark);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--black);
  font-weight: 800;
  font-size: 15px;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139,197,63,.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--black);
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-ghost.on-dark { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  font-size: 15px;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-white:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,255,255,.15); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  padding: 16px 30px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.4); }

/* ─── STATS BAR (sección oscura) ─── */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--black);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 130px;
  max-width: 220px;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--dark-border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}

/* ─── SECTIONS COMMON ─── */
section { padding: 100px 24px; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 3px; border-radius: 2px; background: var(--green); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 520px; }

/* ─── ABOUT ─── */
#about { background: var(--bg-alt); }
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,12,14,.03);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-item:hover { border-color: var(--green); transform: translateX(6px); box-shadow: 0 8px 20px rgba(11,12,14,.06); }
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  border-radius: 12px;
  font-size: 19px;
}
.feature-text h4 { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.feature-text p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 28% 28%, rgba(139,197,63,.25), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(30,111,217,.14), transparent 55%),
    var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-visual img { width: 58%; filter: drop-shadow(0 16px 32px rgba(11,12,14,.12)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ─── MÓDULOS ─── */
#modules { background: var(--bg); }
.modules-header {
  max-width: 1100px;
  margin: 0 auto 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.modules-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,12,14,.03);
  transition: all .3s;
  display: block;
  text-decoration: none;
}
.module-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(11,12,14,.1);
}
.module-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.module-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--green-soft);
}
.module-icon.c1 { background: #EAF6D9; }
.module-icon.c2 { background: #E1EEFC; }
.module-icon.c3 { background: #F1E8FC; }
.module-icon.c4 { background: #FDEBDD; }
.module-icon.c5 { background: #FCE4E4; }
.module-icon.c6 { background: #FDF3D6; }

.module-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.module-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.module-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ─── PROCESO ─── */
#process { background: var(--bg-alt); }
.process-inner { max-width: 1080px; margin: 0 auto; }
.process-header { text-align: center; margin-bottom: 68px; }
.process-header .eyebrow, .process-header .section-desc { justify-content: center; margin-left: auto; margin-right: auto; }
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; text-align: center; padding: 0 16px; }
.step-circle {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.process-step:hover .step-circle { background: var(--green-soft); border-color: var(--green-dark); }
.step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--green);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── TESTIMONIOS ─── */
#testimonials { background: var(--bg); }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .eyebrow { justify-content: center; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 1px 2px rgba(11,12,14,.03);
  transition: all .3s;
}
.testimonial-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,12,14,.08); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px; right: 22px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--green);
  opacity: .18;
  line-height: 1;
}
.stars { color: #F5A623; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--black);
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--black); }
.author-title { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── CTA BAND (sección oscura) ─── */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 88px 24px;
  background: var(--black);
}
.cta-band .glow-blob:nth-child(1) { width: 420px; height: 420px; top: -160px; left: -100px; background: radial-gradient(circle, rgba(139,197,63,.25), transparent 70%); }
.cta-band .glow-blob:nth-child(2) { width: 380px; height: 380px; bottom: -160px; right: -100px; background: radial-gradient(circle, rgba(139,197,63,.16), transparent 70%); }
.cta-band-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-band-title em { font-style: normal; color: var(--green); }
.cta-band-sub { position: relative; font-size: 16px; color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 34px; line-height: 1.7; }
.cta-band-row { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FAQ ─── */
#faq { background: var(--bg-alt); }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 52px; }
.faq-header .eyebrow { justify-content: center; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: var(--green); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  text-align: left;
  transition: background .2s;
}
.faq-item.open .faq-question { background: var(--green-soft); }
.faq-chevron { flex-shrink: 0; color: var(--green-dark); font-size: 20px; font-weight: 700; transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-answer-inner { padding: 4px 22px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ─── CONTACTO ─── */
#contact { background: var(--bg); }
.contact-inner { max-width: 1080px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-info h2 em { font-style: normal; color: var(--green-dark); }
.contact-info > p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(11,12,14,.03);
  transition: all .25s;
}
.contact-link-item:hover { border-color: var(--green); transform: translateX(4px); box-shadow: 0 8px 18px rgba(11,12,14,.06); }
.contact-link-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.contact-link-name { font-weight: 700; margin-bottom: 2px; color: var(--black); }
.contact-link-detail { font-size: 13px; color: var(--muted); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(11,12,14,.03);
}
.contact-form-wrap h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--black); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(139,197,63,.18); background: var(--white); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-select option { background: var(--white); color: var(--text); }
.btn-submit {
  width: 100%;
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: all .25s;
}
.btn-submit:hover { background: var(--green-dark); color: var(--white); box-shadow: 0 8px 22px rgba(139,197,63,.35); }
.btn-submit:disabled { cursor: default; opacity: .85; }

/* ─── FOOTER ─── */
footer { background: var(--black); border-top: 1px solid var(--dark-border); padding: 56px 24px 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand-logo { height: 100px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.45); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all .25s;
}
.social-link:hover { border-color: var(--green); color: var(--green); background: rgba(139,197,63,.1); }

/* ─── WHATSAPP FLOTANTE ─── */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  z-index: 500;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* ─── AGENTE VIRTUAL ─── */
.agente-toggle {
  position: fixed;
  bottom: 96px; right: 26px;
  width: 56px; height: 56px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  box-shadow: 0 6px 24px rgba(11,12,14,.35);
  transition: transform .25s;
}
.agente-toggle:hover { transform: scale(1.08); }

.agente-panel {
  position: fixed;
  bottom: 162px; right: 26px;
  width: 340px;
  max-width: calc(100vw - 40px);
  /* deja siempre ~148px libres arriba (el header/.nav mide ~133px) sin importar el alto de pantalla */
  height: min(440px, calc(100vh - 310px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.agente-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.agente-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  flex-shrink: 0;
}
.agente-close {
  background: none; border: none; color: var(--white);
  font-size: 16px; cursor: pointer; opacity: .7;
}
.agente-close:hover { opacity: 1; }

.agente-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agente-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.agente-msg a { color: var(--green-dark); font-weight: 700; }
.agente-msg-bot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.agente-msg-user {
  background: var(--green);
  color: var(--black);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.agente-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.agente-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
  transition: all .2s;
}
.agente-chip:hover { border-color: var(--green); background: var(--green-soft); }

.agente-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.agente-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
}
.agente-input-row input:focus { border-color: var(--green); }
.agente-input-row button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: var(--black);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.agente-input-row button:hover { background: var(--green-dark); color: var(--white); }

@media (max-width: 480px) {
  .agente-panel { right: 16px; bottom: 150px; }
  .agente-toggle { right: 16px; }
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11,12,14,.98);
    border-bottom: 1px solid var(--dark-border);
    padding: 8px 24px 20px;
  }
  .nav.mobile-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--dark-border); }
  section { padding: 72px 20px; }
  .about-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
}
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .cta-band-row { flex-direction: column; align-items: stretch; }
}
