/* ============================================================
   NEXALUD.CL — style.css
   Mobile-first, conversion-focused
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --morado:        #5e2a8c;
  --morado-med:    #7b3ab5;
  --morado-light:  #e9e4f4;
  --morado-ultra:  #f4f3f8;
  --verde:         #15a093;
  --verde-light:   #6ab8b0;
  --verde-ultra:   #eaf6f4;
  --wa:            #25D366;
  --wa-dark:       #1ebe5d;
  --texto:         #2d2d3a;
  --texto-suave:   #575756;
  --texto-claro:   #8b8b9a;
  --borde:         #e2dff0;
  --bg:            #ffffff;
  --bg-alt:        #f4f3f8;
  --radio:         14px;
  --radio-lg:      20px;
  --sombra:        0 4px 24px rgba(94,42,140,0.10);
  --sombra-lg:     0 12px 48px rgba(94,42,140,0.16);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texto);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }

/* ── Tipografía ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  color: var(--texto);
}
h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 700; }
h3 { font-size: clamp(17px, 2.5vw, 22px); font-weight: 600; }
p  { color: var(--texto-suave); font-size: 16px; line-height: 1.7; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-morado { background: var(--morado-ultra); }
.section-verde { background: var(--verde-ultra); }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--morado);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.topbar-logo {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-logo img { height: 32px; }
.topbar-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.topbar-logo-text span { color: var(--verde-light); }
.topbar-cta {
  background: var(--wa);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.topbar-cta:hover { background: var(--wa-dark); }
.topbar-cta svg { width: 16px; height: 16px; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radio);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-wa {
  background: var(--wa);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.45); }
.btn-morado {
  background: var(--morado);
  color: white;
  box-shadow: var(--sombra);
}
.btn-morado:hover { background: var(--morado-med); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--morado);
  border: 2px solid var(--morado);
}
.btn-outline:hover { background: var(--morado); color: white; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radio-lg); }
.btn-full { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--morado) 0%, #3d1a60 100%);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(21,160,147,0.12);
  border-radius: 50%;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.hero-visual {
  margin-left: -20px;
  margin-right: -20px;
  filter: drop-shadow(0 0 50px rgba(255,255,255,0.55)) drop-shadow(0 0 20px rgba(255,255,255,0.35));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  width: fit-content;
}
.hero-badge span { color: var(--verde-light); }
.hero h1 {
  color: white;
  max-width: 580px;
}
.hero h1 em {
  font-style: normal;
  color: var(--verde-light);
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.65;
}
.hero-sub strong { color: white; font-weight: 600; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-micro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-micro svg { width: 14px; height: 14px; color: var(--verde-light); }
.hero-mockup {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  position: relative;
}
.hero-mockup-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}
.hero-mockup-placeholder svg { width: 48px; height: 48px; margin: 0 auto 10px; opacity: 0.4; }

/* ── Decisión (Home: Trabajo solo / equipo) ─────────────── */
.decision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.decision-card {
  background: white;
  border: 2px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 28px 24px;
  transition: all 0.2s;
  display: block;
  text-decoration: none;
}
.decision-card-solo {
  background: #e8e3f5;
  border-color: #c9bff0;
}
.decision-card-solo:hover {
  border-color: var(--morado);
  box-shadow: var(--sombra-lg);
  transform: translateY(-2px);
}
.decision-card-solo .decision-link { color: var(--morado); }

.decision-card-centros {
  background: var(--verde-ultra);
  border-color: #b8e8e4;
}
.decision-card-centros:hover {
  border-color: var(--verde);
  box-shadow: var(--sombra-lg);
  transform: translateY(-2px);
}
.decision-card-centros .decision-link { color: var(--verde); }

.decision-icon {
  margin-bottom: 20px;
}
.decision-icon img {
  height: 52px;
  display: block;
}
.decision-card h3 { margin-bottom: 8px; }
.decision-card p { font-size: 15px; margin-bottom: 18px; }
.decision-link {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.decision-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.decision-card:hover .decision-link svg { transform: translateX(4px); }

/* ── Sección Problema ───────────────────────────────────── */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border-radius: var(--radio);
  border-left: 4px solid var(--morado-light);
}
.pain-item:hover { border-left-color: var(--morado); }
.pain-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.pain-item p { font-size: 15px; color: var(--texto); margin: 0; }

/* ── Sección Solución / Flujo ───────────────────────────── */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  position: relative;
}
.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step-num {
  width: 40px; height: 40px;
  background: var(--morado);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-step-line {
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  bottom: 0;
  background: var(--morado-light);
}
.flow-step:last-child .flow-step-line { display: none; }
.flow-step-content h3 { margin-bottom: 6px; font-size: 17px; }
.flow-step-content p { font-size: 15px; margin: 0; }

/* ── Bloque destacado (voz / diferencial) ───────────────── */
.highlight-block {
  background: var(--morado-ultra);
  border: 1.5px solid var(--morado-light);
  border-left: 5px solid var(--morado);
  border-radius: var(--radio-lg);
  padding: 24px 22px;
  margin: 28px 0;
}
.highlight-block .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--morado);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.highlight-block .cmd {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 8px;
}
.highlight-block .result {
  font-size: 15px;
  color: var(--verde);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-block .result svg { width: 18px; height: 18px; }

/* ── Cards de beneficios ────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.benefit-card {
  background: white;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  padding: 20px 18px;
}
.benefit-icon { font-size: 28px; margin-bottom: 10px; }
.benefit-card h3 { font-size: 15px; margin-bottom: 6px; }
.benefit-card p { font-size: 14px; }

/* ── Anclaje precio ─────────────────────────────────────── */
.price-anchor {
  background: var(--verde-ultra);
  border: 1.5px solid #b8e8e4;
  border-radius: var(--radio-lg);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
}
.price-anchor-icon { font-size: 32px; flex-shrink: 0; }
.price-anchor h3 { font-size: 16px; margin-bottom: 6px; color: var(--texto); }
.price-anchor p { font-size: 14px; }
.price-anchor .price-tag {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--morado);
  margin-top: 8px;
}
.price-anchor .price-tag span { font-size: 14px; font-weight: 500; color: var(--texto-suave); }

/* ── Mockup placeholder ─────────────────────────────────── */
.mockup-wrap {
  background: var(--morado-ultra);
  border: 2px dashed var(--morado-light);
  border-radius: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--texto-suave);
  font-size: 14px;
  margin: 28px 0;
  text-align: center;
  padding: 32px;
}
.mockup-wrap svg { width: 48px; height: 48px; color: var(--morado-light); }
.mockup-wrap.real { display: block; border: none; background: transparent !important; min-height: auto; padding: 0 !important; margin-bottom: 0; }
.mockup-wrap.real img { border-radius: 0; box-shadow: none; }
@media (min-width: 900px) {
  .mockup-wrap.real { display: flex; align-items: flex-end; justify-content: center; margin-bottom: 0; }
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--morado) 0%, #3d1a60 100%);
  padding: 56px 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.72); max-width: 420px; margin: 0 auto 28px; }
.cta-section .btn-wa { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }

/* ── Ruta centros (bloque en SOLO) ──────────────────────── */
/* ── Bloque cruce hover ─────────────────────────────────── */
.centros-bloque {
  background: white;
  border: 2px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 24px 20px;
  transition: all 0.2s;
}
.centros-bloque-solo .btn-outline  { color: var(--morado); border-color: var(--morado); background: transparent; }
.centros-bloque-solo .btn-outline:hover  { background: var(--morado); color: white; border-color: var(--morado); }

.centros-bloque-centros .btn-outline { color: var(--verde); border-color: var(--verde); background: transparent; }
.centros-bloque-centros .btn-outline:hover { background: var(--verde); color: white; border-color: var(--verde); }
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.centros-bloque h3 { font-size: 17px; }
.centros-bloque p { font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--texto);
  color: rgba(255,255,255,0.55);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
}
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: white; }
.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--verde-light); }

/* ── WhatsApp flotante ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--wa);
  color: white;
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 999;
  transition: all 0.2s;
  text-decoration: none;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float-text { display: none; }

/* ── Section titles ─────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--morado);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 3px;
  background: var(--morado);
  border-radius: 2px;
}

/* ── Professionals usado por list ───────────────────────── */
.prof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.prof-chip {
  background: white;
  border: 1.5px solid var(--borde);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-suave);
}

/* ── Testimonial placeholder ────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.testimonial-card {
  background: white;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 22px 20px;
}
.testimonial-card .quote { font-size: 15px; color: var(--texto); line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.testimonial-card .author { font-size: 13px; font-weight: 600; color: var(--texto-suave); }

/* ── Hamburguesa ────────────────────────────────────────── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
}
.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); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--morado);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  z-index: 99;
}
.nav-menu.open { max-height: 200px; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: rgba(255,255,255,0.85);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
  text-decoration: none;
}
.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-menu a .nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.nav-badge-solo    { background: #e8e3f5; color: var(--morado); }
.nav-badge-centros { background: var(--verde-ultra); color: var(--verde); }

.topbar { position: relative; }

/* Menú verde para CENTROS */
.topbar-verde .nav-menu { background: #0e7066; border-top-color: rgba(255,255,255,0.12); }

/* ── Responsive: tablet+ ────────────────────────────────── */
@media (min-width: 640px) {
  .wa-float-text { display: inline; }
  .decision-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 0; }
  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
  }
  .hero-text { flex: 1; padding-bottom: 56px; }
  .hero-visual { flex: 0 0 460px; margin-left: 0; margin-right: -40px; margin-bottom: 0; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Animaciones suaves ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero-sub, .hero-actions { animation: fadeUp 0.5s ease both; }
.hero h1         { animation-delay: 0.05s; }
.hero-sub        { animation-delay: 0.15s; }
.hero-actions    { animation-delay: 0.25s; }

/* ── Mockups responsive (pc/mobile) ────────────────────── */
.mockup-pc     { display: block !important; }
.mockup-mobile { display: none !important;  }
@media (max-width: 768px) {
  .mockup-pc     { display: none !important;  }
  .mockup-mobile { display: block !important; margin: 0 auto; }
}

/* ── Layout sección voz ─────────────────────────────────── */
.voz-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.voz-text { flex: 1; }
.voz-text .highlight-block { max-width: 100%; }
.voz-mockup {
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -60px;
}

/* ── Glow en mockups ────────────────────────────────────── */
/* Fondo oscuro → glow blanco */
.mockup-glow-dark {
  filter: drop-shadow(0 0 50px rgba(255,255,255,0.55)) drop-shadow(0 0 20px rgba(255,255,255,0.35));
}
/* Fondo claro → glow gris */
.mockup-glow-light {
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.12)) drop-shadow(0 0 16px rgba(0,0,0,0.08));
}
/* Voz: fondo claro → glow gris */
.voz-mockup { filter: drop-shadow(0 0 40px rgba(0,0,0,0.15)) drop-shadow(0 0 16px rgba(0,0,0,0.10)); }
/* Perfil público y dashboard: fondo claro → glow gris */
.mockup-wrap.real { filter: drop-shadow(0 0 40px rgba(0,0,0,0.12)) drop-shadow(0 0 16px rgba(0,0,0,0.08)); }

/* ── Footer Nexalabs ────────────────────────────────────── */
.footer-nexalabs {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.5;
  color: inherit;
}
.footer-nexalabs img {
  height: 18px;
  width: auto;
  max-width: 18px;
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 900px) {
  .voz-inner {
    flex-direction: row !important;
    align-items: flex-end;
    gap: 48px;
  }
  .voz-text { flex: 1 1 auto; min-width: 0; }
  .voz-text .highlight-block { max-width: 440px; }
  .voz-mockup {
    flex: 0 0 480px;
    width: 480px;
    margin-left: 0;
    margin-right: -40px;
    margin-bottom: -56px;
  }
}
