:root {
  --ink: #0D2B2E;
  --ink-soft: rgba(13,43,46,.68);
  --ink-mute: rgba(13,43,46,.45);
  --paper: #FBF8F3;
  --paper-alt: #F3EDE2;
  --coral: #E85D4C;
  --coral-dark: #C8462F;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --llamada: var(--coral);
  --llamada-dark: var(--coral-dark);
  --messenger: #0084FF;
  --messenger-dark: #0066CC;
  --telegram: #26A5E4;
  --telegram-dark: #1E88C7;
  --sand: #E8B04B;
  --linea: rgba(13,43,46,.12);

  --color-fondo: var(--paper);
  --color-acento: var(--coral);
  --color-texto: var(--ink);

  --fuente-display: 'Bricolage Grotesque', sans-serif;
  --fuente-body: 'Inter', sans-serif;
  --fuente-mono: 'IBM Plex Mono', monospace;

  --radio: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--fuente-body); background: var(--color-fondo); color: var(--color-texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.contenedor-angosto { max-width: 760px; }

h1, h2, h3 { font-family: var(--fuente-display); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--fuente-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--coral-dark); font-weight: 600; margin-bottom: 14px;
}
.eyebrow-centrado { text-align: center; }

.titulo-seccion { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 44px; font-weight: 700; }
.titulo-centrado { text-align: center; margin-bottom: 12px; }
.titulo-claro { color: var(--paper); }
.subtitulo-centrado { text-align: center; color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; margin: 0 auto 56px; }
.texto-centrado { text-align: center; }

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,248,243,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.nav-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }

.nav-marca { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.logo-texto {
  font-family: var(--fuente-display); font-weight: 700; font-size: 1.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.logo-imagen {
  display: block; height: clamp(22px, 7vw, var(--logo-alto, 38px));
  width: auto; max-width: 42vw; object-fit: contain; flex-shrink: 0;
}

.btn-nav-wa {
  display: inline-flex; align-items: center; gap: 8px; background: var(--canal-color, var(--whatsapp)); color: #fff;
  padding: 10px 20px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: .88rem;
  flex-shrink: 0; transition: background .2s ease, transform .2s ease;
}
.btn-nav-wa:hover { background: var(--canal-color-dark, var(--whatsapp-dark)); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero { padding: 76px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-texto h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin-bottom: 22px; }
.hero-subtitulo { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 34px; max-width: 480px; }

.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 12px; background: var(--canal-color, var(--whatsapp)); color: #fff;
  padding: 17px 30px; border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 10px 30px rgba(13,43,46,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-cta-wa:hover { background: var(--canal-color-dark, var(--whatsapp-dark)); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(13,43,46,.24); }

.hero-visual { position: relative; height: 420px; }
.ventana-navegador {
  background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--linea);
  box-shadow: 0 20px 50px rgba(13,43,46,.18);
}
.ventana-barra { display: flex; gap: 6px; padding: 10px 14px; background: #EFEAE0; }
.ventana-barra span { width: 9px; height: 9px; border-radius: 50%; background: rgba(13,43,46,.18); }
.ventana-navegador img { display: block; width: 100%; }

.hero-flotante { position: absolute; display: block; }
.hero-flotante-1 { top: 0; right: 0; width: 78%; filter: drop-shadow(0 20px 45px rgba(13,43,46,.22)); }
.hero-flotante-2 { bottom: 0; left: 0; width: 60%; z-index: 2; filter: drop-shadow(0 20px 45px rgba(13,43,46,.28)); }

/* ============ PROBLEMA ============ */
.seccion-problema { padding: 88px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tarjeta-problema {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px 26px;
  border-top: 3px solid var(--coral);
}
.tarjeta-problema h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tarjeta-problema p { color: var(--ink-soft); line-height: 1.55; font-size: .95rem; }

/* ============ CARACTERÍSTICAS ============ */
.seccion-caracteristicas { padding: 88px 0; background: var(--ink); }
.seccion-caracteristicas .titulo-seccion { text-align: center; }
.grid-caract { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.item-caract { display: flex; gap: 16px; }
.check-icono {
  width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: .9rem;
}
.item-caract h3 { color: var(--paper); font-size: 1.05rem; margin-bottom: 6px; }
.item-caract p { color: rgba(251,248,243,.65); font-size: .92rem; line-height: 1.55; }

/* ============ CÓMO FUNCIONA ============ */
.seccion-funciona { padding: 100px 0; }
.tour-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.tour-item:last-child { margin-bottom: 0; }
.tour-invertido { grid-template-columns: 1.2fr 1fr; }
.tour-invertido .tour-texto { order: 2; }
.tour-invertido .tour-imagen { order: 1; }
.tour-numero { font-family: var(--fuente-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--coral-dark); font-weight: 600; margin-bottom: 12px; }
.tour-texto h3 { font-size: 1.6rem; margin-bottom: 14px; }
.tour-texto p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.tour-imagen .ventana-navegador { box-shadow: 0 24px 60px rgba(13,43,46,.16); }
.tour-imagen img { width: 100%; }

/* ============ RESPONSIVO (stack de dispositivos) ============ */
.seccion-responsivo { padding: 100px 0 120px; background: var(--paper-alt); }
.stack-dispositivos {
  position: relative; max-width: 900px; margin: 60px auto 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 0;
  min-height: 460px;
}
.dispositivo { position: relative; text-align: center; }
.etiqueta-dispositivo {
  display: block; margin-top: 14px; font-family: var(--fuente-mono); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute);
}

.dispositivo-escritorio { width: 62%; z-index: 1; }
.dispositivo-escritorio .ventana-navegador { box-shadow: 0 30px 70px rgba(13,43,46,.2); }
.dispositivo-escritorio img { width: 100%; }

.dispositivo-tablet { width: 22%; margin: 0 -2% 40px; z-index: 2; }
.marco-tablet {
  background: var(--ink); border-radius: 18px; padding: 10px 8px; box-shadow: 0 24px 50px rgba(13,43,46,.25);
}
.marco-tablet img { width: 100%; border-radius: 6px; display: block; }

.dispositivo-celular { width: 16%; margin-bottom: 0; z-index: 3; }
.marco-celular {
  background: var(--ink); border-radius: 28px; padding: 10px 6px; box-shadow: 0 24px 50px rgba(13,43,46,.3);
  position: relative;
}
.marco-celular::before {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 4px; border-radius: 4px; background: rgba(251,248,243,.3);
}
.marco-celular img { width: 100%; border-radius: 16px; display: block; }

/* ============ POR QUÉ ============ */
.seccion-porque { padding: 88px 0; background: var(--paper-alt); }
.tarjeta-porque { padding: 10px; }
.tarjeta-porque h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tarjeta-porque p { color: var(--ink-soft); line-height: 1.6; font-size: .95rem; }

/* ============ FAQ ============ */
.seccion-faq { padding: 88px 0; }
.lista-faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 4px 24px; }
.faq-item summary { padding: 18px 0; font-weight: 600; cursor: pointer; font-size: 1.02rem; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 18px; font-size: 1.3rem; color: var(--coral); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 20px; color: var(--ink-soft); line-height: 1.6; }

/* ============ CTA FINAL ============ */
.seccion-cta-final { padding: 100px 0; background: var(--ink); }
.seccion-cta-final h2 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 680px; margin: 0 auto 18px; }
.seccion-cta-final p { color: rgba(251,248,243,.7); font-size: 1.1rem; margin-bottom: 36px; }
.btn-cta-grande { padding: 20px 38px; font-size: 1.1rem; }

/* ============ FOOTER ============ */
.site-footer { padding: 32px 0; text-align: center; }
.site-footer p { color: var(--ink-mute); font-size: .85rem; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-flotante {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--canal-color, var(--whatsapp)); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,43,46,.28); z-index: 60; transition: transform .2s ease, background .2s ease;
}
.wa-flotante:hover { transform: scale(1.08); }

/* --- Canal de contacto (aplica sobre btn-nav-wa, btn-cta-wa, wa-flotante) --- */
.canal-llamada { --canal-color: var(--llamada); --canal-color-dark: var(--llamada-dark); }
.canal-messenger { --canal-color: var(--messenger); --canal-color-dark: var(--messenger-dark); }
.canal-telegram { --canal-color: var(--telegram); --canal-color-dark: var(--telegram-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: auto; margin-top: 20px; }
  .hero-flotante-1, .hero-flotante-2 { position: static; width: 100%; margin-bottom: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-caract { grid-template-columns: 1fr; }
  .tour-item, .tour-invertido { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }
  .tour-invertido .tour-texto, .tour-invertido .tour-imagen { order: unset; }
  .stack-dispositivos { flex-direction: column; align-items: center; gap: 28px; min-height: 0; }
  .dispositivo-escritorio, .dispositivo-tablet, .dispositivo-celular { width: 78%; margin: 0; }
}
@media (max-width: 560px) {
  .logo-texto { font-size: 1rem; }
  .btn-nav-wa-texto { display: none; }
  .btn-nav-wa { padding: 10px 14px; }
  .hero { padding: 44px 0 60px; }
  .seccion-problema, .seccion-caracteristicas, .seccion-funciona, .seccion-responsivo, .seccion-porque, .seccion-faq, .seccion-cta-final { padding: 56px 0; }
}
