/* =============================================================
   Latidos App — Landing Page
   Sistema de diseño alineado con la marca de la app
   Primary: #673AB7 · Fondo: #F7F9FC · Morados y blancos
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary: #673AB7;
  --primary-dark: #512DA8;
  --primary-light: #8E44AD;
  --primary-soft: #EDE7F6;
  --primary-faint: #F5F2FC;
  --bg: #F7F9FC;
  --bg-warm: #F0F2F8;
  --blanco: #FFFFFF;
  --texto: #2C3E50;
  --texto-suave: #7F8C8D;
  --acento-rosa: #E57373;

  --radio: 18px;
  --radio-suave: 14px;
  --sombra: 0 18px 45px rgba(103, 58, 183, 0.12);
  --sombra-hover: 0 22px 55px rgba(103, 58, 183, 0.28);
  --transicion: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texto);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transicion); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ---------- Header & Navegación ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(103, 58, 183, 0.10);
  transition: var(--transicion);
}

header.scrolled {
  background-color: rgba(247, 249, 252, 0.97);
  box-shadow: 0 10px 30px rgba(103, 58, 183, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.18);
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  color: var(--texto);
  font-size: 15.5px;
}

nav ul li a:hover {
  color: var(--primary);
}

.btn-download-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--blanco) !important;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 6px 18px rgba(103, 58, 183, 0.35);
}

.btn-download-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(103, 58, 183, 0.5);
  color: var(--blanco) !important;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  background: var(--primary-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--primary-dark);
  transition: var(--transicion);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =============================================================
   SECCIÓN A: HERO
   ============================================================= */
.hero {
  position: relative;
  padding: 170px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(237, 231, 246, 0.9), transparent 60%),
    radial-gradient(700px 500px at 95% 15%, rgba(142, 68, 173, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(237, 231, 246, 0.95), transparent 65%);
  top: -80px;
  right: -60px;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.12), transparent 70%);
  bottom: -90px;
  left: -70px;
  animation: glowDrift 15s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, 25px) scale(1.12); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanco);
  color: var(--primary-dark);
  border: 1px solid rgba(103, 58, 183, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(103, 58, 183, 0.08);
  margin-bottom: 26px;
}

.hero-copy h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--primary-dark);
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero-copy h1 .highlight {
  position: relative;
  color: var(--primary);
}

.hero-copy h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: linear-gradient(90deg, transparent, rgba(237, 231, 246, 0.95));
  border-radius: 10px;
  z-index: -1;
}

.hero-copy > p {
  font-size: 19px;
  color: var(--texto-suave);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Botones generales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  padding: 15px 30px;
  border-radius: 50px;
  transition: var(--transicion);
}

.btn:focus-visible { outline: 3px solid rgba(103, 58, 183, 0.4); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--blanco);
  box-shadow: 0 12px 28px rgba(103, 58, 183, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(103, 58, 183, 0.55);
}

.btn-icon { width: 20px; height: 20px; }

.btn-ghost {
  background: var(--blanco);
  color: var(--primary-dark);
  border: 1.5px solid rgba(103, 58, 183, 0.35);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-faint);
  transform: translateY(-3px);
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--texto-suave);
}

.trust-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mockup de teléfono */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 302px;
  max-width: 88vw;
  border-radius: 42px;
  background: linear-gradient(160deg, #ffffff, var(--primary-faint));
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(103, 58, 183, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
  position: relative;
  animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(0.5deg); }
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #4527A0;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  background: #ffffff;
  border-radius: 34px;
  overflow: hidden;
  padding-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.phone-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 30px 16px 12px;
}

.phone-mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.phone-topbar span:nth-child(2) {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary-dark);
  flex: 1;
}

.phone-heart { color: var(--acento-rosa); font-size: 18px; }

.feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 14px 20px;
}

.feed-card {
  position: relative;
  background: var(--primary-faint);
  border: 1px solid rgba(103, 58, 183, 0.15);
  border-radius: 16px;
  padding: 16px 16px 14px 24px;
  box-shadow: 0 8px 22px rgba(103, 58, 183, 0.08);
  overflow: hidden;
}

.feed-card-alt {
  background: #F3EFFB;
  transform: rotate(-0.5deg);
}

.feed-card-third {
  background: var(--primary-soft);
  transform: rotate(0.8deg);
}

/* Líneas de libreta decorativas */
.feed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 40px, rgba(229, 115, 115, 0.4) 40px, rgba(229, 115, 115, 0.4) 42px, transparent 42px),
    repeating-linear-gradient(transparent 0 11px, rgba(103, 58, 183, 0.08) 11px 12px);
}

.feed-text {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--texto);
  margin-bottom: 10px;
}

.feed-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--texto-suave);
}

.feed-avatar,
.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--blanco);
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-avatar.alt { background: var(--primary-light); }
.author-avatar.third { background: var(--primary-dark); font-size: 11px; }

.feed-likes {
  font-size: 11px;
  font-weight: 800;
  color: var(--acento-rosa);
  background: rgba(229, 115, 115, 0.1);
  padding: 3px 9px;
  border-radius: 30px;
}

/* Badge flotante del contador */
.phone-float-badge {
  position: absolute;
  bottom: -14px;
  left: -18px;
  background: var(--blanco);
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(103, 58, 183, 0.2);
  animation: badgePop 9s ease-in-out infinite;
}

@keyframes badgePop {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

.badge-heart {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2b8a0, var(--acento-rosa));
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.phone-float-badge strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.phone-float-badge small {
  font-size: 12px;
  color: var(--texto-suave);
  font-weight: 600;
}

/* =============================================================
   SECCIÓN B: EL PROBLEMA QUE RESUELVE
   ============================================================= */
.problem {
  padding: 110px 24px;
  background: var(--blanco);
  border-radius: 46px 46px 0 0;
  margin-top: -6px;
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.section-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.12);
}

.problem-copy h2,
.section-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 18px;
}

.problem-copy p {
  color: var(--texto-suave);
  font-size: 17.5px;
  max-width: 540px;
}

.problem-copy p strong { color: var(--primary); }

/* Contador estadístico */
.problem-stat {
  text-align: center;
  background: linear-gradient(180deg, #ffffff, var(--primary-faint));
  border: 1px solid rgba(103, 58, 183, 0.15);
  border-radius: 26px;
  padding: 46px 34px;
  box-shadow: var(--sombra);
}

.stat-ring {
  width: 190px;
  height: 190px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--prog, 65%) * 1%), rgba(103, 58, 183, 0.12) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-ring::before {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--blanco);
}

.stat-number {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  position: relative;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--texto-suave);
  margin-top: 6px;
}

.stat-note {
  font-size: 14.5px;
  color: var(--texto-suave);
  margin-bottom: 18px;
}

.stat-heartbar {
  height: 8px;
  border-radius: 10px;
  background: rgba(103, 58, 183, 0.15);
  overflow: hidden;
}

.heartbar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary-soft), var(--primary));
  transition: width 2s ease-out;
}

/* =============================================================
   SECCIÓN C: BENEFICIOS
   ============================================================= */
.benefits {
  padding: 110px 24px;
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-head h2 { margin-bottom: 14px; }
.section-head p {
  color: var(--texto-suave);
  font-size: 17px;
}

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

.benefit-card {
  background: linear-gradient(180deg, #ffffff, var(--primary-faint));
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 24px;
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transicion);
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 231, 246, 0.8), transparent 70%);
  transition: var(--transicion);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(103, 58, 183, 0.4);
}

.benefit-card:hover::after { transform: scale(1.35); }

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-faint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(103, 58, 183, 0.18);
}

.benefit-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20.5px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.benefit-card p {
  color: var(--texto-suave);
  font-size: 15.5px;
  position: relative;
  z-index: 1;
}

/* =============================================================
   SECCIÓN D: CÓMO FUNCIONA
   ============================================================= */
.how {
  padding: 110px 24px;
  background:
    radial-gradient(700px 400px at 85% 90%, rgba(237, 231, 246, 0.8), transparent 60%),
    var(--bg);
  border-radius: 46px 46px 0 0;
  margin-top: -6px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.step {
  background: var(--blanco);
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transicion);
}

.step:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--blanco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(103, 58, 183, 0.4);
}

.step-icon {
  font-size: 40px;
  margin: 20px 0 14px;
}

.step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step p {
  color: var(--texto-suave);
  font-size: 15px;
}

/* =============================================================
   SECCIÓN E: FRASES / TESTIMONIOS
   ============================================================= */
.quotes {
  padding: 110px 24px;
  background: var(--blanco);
  border-radius: 46px 46px 0 0;
  margin-top: -6px;
}

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

.quote-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, var(--primary-faint));
  border: 1px solid rgba(103, 58, 183, 0.15);
  border-radius: 22px;
  padding: 34px 30px 28px;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  overflow: hidden;
}

.quote-card:nth-child(2) { transform: rotate(0.6deg); }
.quote-card:nth-child(3) { transform: rotate(-0.6deg); }

.quote-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--sombra-hover);
}

.quote-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 44px, rgba(229, 115, 115, 0.35) 44px, rgba(229, 115, 115, 0.35) 46px, transparent 46px),
    linear-gradient(180deg, rgba(103, 58, 183, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  opacity: 0.7;
}

.quote-card blockquote {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--texto);
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.quote-card blockquote::before {
  content: '“';
  font-size: 46px;
  color: var(--primary);
  font-weight: 900;
  line-height: 0.6;
  vertical-align: -0.35em;
  margin-right: 4px;
}

.quote-author {
  position: relative;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary-dark);
  border-top: 1.5px solid rgba(103, 58, 183, 0.25);
  padding-top: 14px;
}

.quote-role {
  font-weight: 600;
  color: var(--texto-suave);
}

/* =============================================================
   SECCIÓN F: CTA FINAL
   ============================================================= */
.cta {
  position: relative;
  padding: 110px 24px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
  border-radius: 46px 46px 0 0;
  margin-top: -6px;
  overflow: hidden;
}

.cta-heart {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.cta-heart-1 { width: 360px; height: 360px; top: -130px; right: -90px; }
.cta-heart-2 { width: 300px; height: 300px; bottom: -130px; left: -80px; }

.cta-inner {
  text-align: center;
  color: var(--blanco);
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(30, 10, 60, 0.3);
}

.cta-inner p {
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

/* Badges de tienda */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--blanco);
  border-radius: 15px;
  padding: 12px 26px;
  transition: var(--transicion);
  box-shadow: 0 12px 28px rgba(30, 10, 60, 0.3);
}

.store-badge.b-apple {
  background: #3D3223;
}

.store-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.store-ico { width: 27px; height: 27px; }

.store-badge .store-ico {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.store-badge.b-apple .store-ico { color: var(--blanco); }

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-text small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.store-text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--texto);
}

.b-apple .store-text small { color: rgba(255, 255, 255, 0.7); }
.b-apple .store-text strong { color: var(--blanco); }

.cta-note {
  font-size: 14.5px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* =============================================================
   SECCIÓN G: FOOTER
   ============================================================= */
footer {
  background: linear-gradient(180deg, var(--primary-dark), #3E2A6B);
  color: rgba(255, 255, 255, 0.85);
  padding: 66px 24px 30px;
  font-size: 15px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3,
.footer-links h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--blanco);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-logo { margin-bottom: 16px; }
.footer-logo .brand-name { color: var(--blanco); }
.footer-logo .logo-img { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }

.footer-brand p {
  opacity: 0.75;
  max-width: 320px;
  line-height: 1.7;
}

.footer-links ul li { margin-bottom: 11px; }

.footer-links ul li a {
  opacity: 0.75;
  transition: var(--transicion);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--primary-soft);
  padding-left: 5px;
}

.footer-contact ul li a { word-break: break-all; }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-bottom p { opacity: 0.7; font-size: 14px; }

.foot-heart {
  color: #f2a58d;
  animation: heartbeat 1.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25); }
}

/* =============================================================
   ANIMACIONES AL SCROLL (fade-in)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   CLASES LEGALES (terminos.html y privacidad.html)
   ============================================================= */
.legal-header {
  padding: 150px 24px 50px;
  background: linear-gradient(180deg, rgba(237, 231, 246, 0.8), transparent);
  text-align: center;
}

.legal-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--texto-suave);
  font-size: 15.5px;
  font-weight: 600;
}

.legal-content-section {
  padding: 30px 24px 90px;
}

.legal-card {
  background: var(--blanco);
  padding: 46px;
  border-radius: 22px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(103, 58, 183, 0.15);
  max-width: 880px;
  margin: 0 auto;
}

.legal-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 30px 0 14px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.legal-card h2:first-of-type { margin-top: 0; }

.legal-card p {
  color: var(--texto);
  margin-bottom: 18px;
  line-height: 1.75;
}

.legal-card ul {
  margin-bottom: 20px;
  padding-left: 22px;
}

.legal-card ul li {
  color: var(--texto);
  margin-bottom: 10px;
  line-height: 1.65;
  list-style: disc;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 28px;
  padding-left: 14px;
}

.btn-back:hover {
  color: var(--primary-dark);
  padding-left: 18px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 991px) {
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 70px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-phone { order: 2; }
  .problem-grid { grid-template-columns: 1fr; gap: 50px; }
  .problem-copy { text-align: center; }
  .problem-copy p { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .problem { border-radius: 38px 38px 0 0; }
  .how, .quotes, .cta { border-radius: 38px 38px 0 0; }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 360px);
    background: linear-gradient(180deg, #ffffff, var(--primary-faint));
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    box-shadow: -20px 0 60px rgba(103, 58, 183, 0.25);
    z-index: 1001;
    border-radius: 26px 0 0 26px;
  }

  nav ul.active { display: flex; }

  nav ul li a { font-size: 20px; font-weight: 700; }

  .menu-toggle { display: flex; position: relative; z-index: 1002; }

  body.nav-open { overflow: hidden; }

  .hero { padding-top: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .legal-card { padding: 28px 22px; }

  .hero-copy h1 .highlight::after { height: 8px; bottom: 2px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .store-badge { padding: 13px 20px; gap: 10px; }
  .store-text strong { font-size: 15px; }
  .benefits-grid, .quotes-grid, .steps { gap: 18px; }
}