/* ============================================================
   Red Salud · redsalud.club
   Design system + landing styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --bg: #FAFAF6;
  --bg-warm: #F4F1E9;
  --surface: #FFFFFF;
  --ink: #0C1F17;
  --ink-soft: #26362E;
  --muted: #5E6E65;
  --muted-2: #8A968E;

  --forest: #0C3B2E;
  --forest-700: #0F4635;
  --forest-600: #14563F;
  --emerald: #10B981;
  --emerald-600: #059669;
  --emerald-bright: #12D18E;
  --mint-50: #ECFDF5;
  --mint-100: #D6F5E6;
  --mint-200: #B8ECD3;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --gold: #E7B24C;

  --line: rgba(12, 31, 23, 0.09);
  --line-strong: rgba(12, 31, 23, 0.16);

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii + shadow */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(12, 31, 23, 0.06), 0 4px 14px rgba(12, 31, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 31, 23, 0.10);
  --shadow-lg: 0 30px 70px -20px rgba(12, 31, 23, 0.28);
  --shadow-emerald: 0 18px 40px -12px rgba(16, 185, 129, 0.5);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--emerald);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 132px); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  margin-top: 18px;
}
.section-sub {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-wa {
  background: var(--whatsapp);
  color: #04170E;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.7);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.8); }
.btn-primary {
  background: var(--forest);
  color: #F4FBF7;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--forest-600); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--forest); background: rgba(12,59,46,0.04); }
.btn-light {
  background: #F4FBF7;
  color: var(--forest);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 18px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- "Próximamente" pill ---------- */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: #EAF6EF;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md);
}
.soon-pill.sm { padding: 9px 16px; font-size: 0.86rem; box-shadow: var(--shadow-sm); }
.soon-pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(18,209,142,.6);
  animation: pulse 2s infinite;
}
.soon-pill.on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: none;
}
.hero-contact {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-contact a { color: var(--emerald-600); font-weight: 600; }
.hero-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(250, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--emerald-bright), var(--forest));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand span b { font-weight: 600; }
.brand-dot { color: var(--emerald); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--emerald-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* CTA que solo aparece dentro del menú móvil desplegado */
.nav-mobile-cta { display: none; }
.nav-links.open .nav-mobile-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  position: relative;
  transition: transform .3s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 148px;
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-aura {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  z-index: -1;
  background:
    radial-gradient(46% 55% at 78% 18%, rgba(18, 209, 142, 0.34), transparent 62%),
    radial-gradient(40% 48% at 12% 8%, rgba(16, 185, 129, 0.20), transparent 60%),
    radial-gradient(60% 60% at 50% 120%, rgba(12, 59, 46, 0.10), transparent 60%);
  filter: blur(6px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badge .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint-100); color: var(--emerald-600);
  font-weight: 600; font-size: 0.76rem;
  padding: 4px 10px; border-radius: 999px;
}
.hero-badge .pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  margin-top: 26px;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--emerald-600);
}
.hero-lead {
  margin-top: 24px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 42ch;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-trust {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid var(--bg);
  margin-left: -12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1){ background:linear-gradient(135deg,#34D399,#059669);}
.avatars span:nth-child(2){ background:linear-gradient(135deg,#5EEAD4,#0D9488);}
.avatars span:nth-child(3){ background:linear-gradient(135deg,#6EE7B7,#10B981);}
.avatars span:nth-child(4){ background:linear-gradient(135deg,#0C3B2E,#14563F);}
.hero-trust p { font-size: 0.9rem; color: var(--muted); }
.hero-trust b { color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* ---- Phone mockup ---- */
.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
}
.phone {
  position: relative;
  width: min(330px, 82vw);
  aspect-ratio: 330 / 680;
  background: #0A140F;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px rgba(255,255,255,0.04) inset,
    0 2px 6px rgba(255,255,255,0.14) inset;
  transform: rotateY(-11deg) rotateX(4deg) rotate(1.5deg);
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-11deg) rotateX(4deg) rotate(1.5deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) rotate(1deg) translateY(-14px); }
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #0A140F; border-radius: 0 0 16px 16px;
  z-index: 4;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #E5DDD3;
  display: flex;
  flex-direction: column;
}
/* WhatsApp header */
.wa-top {
  display: flex; align-items: center; gap: 11px;
  padding: 40px 15px 12px;
  background: var(--whatsapp-dark);
  color: #fff;
}
.wa-back { font-size: 1.3rem; opacity: .9; }
.wa-ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, var(--emerald-bright), var(--forest));
  display: grid; place-items: center;
}
.wa-ava svg { width: 22px; height: 22px; }
.wa-name { font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.wa-status { font-size: 0.72rem; opacity: .85; display:flex; align-items:center; gap:5px; }
.wa-status::before { content:""; width:6px;height:6px;border-radius:50%;background:#8CE9A6; }
.wa-top .wa-meta { flex: 1; }
.wa-icons { display: flex; gap: 16px; opacity: .9; font-size: 1rem; }

/* chat body */
.wa-body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  background-color: #E5DDD3;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(18,140,126,0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 65%, rgba(18,140,126,0.05) 0 2px, transparent 2px);
  background-size: 34px 34px;
}
.wa-day {
  align-self: center;
  background: #D6ECEC;
  color: #4A6B5E;
  font-size: 0.68rem; font-weight: 500;
  padding: 4px 12px; border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.bubble {
  max-width: 82%;
  padding: 8px 11px 7px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #10281E;
  box-shadow: 0 1px 1px rgba(0,0,0,0.10);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn .5s forwards;
}
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.bubble .t { display:block; font-size:0.6rem; color:#7C9186; text-align:right; margin-top:2px; }
.bubble .t.read { color:#53BDEB; }
.bubble b { font-weight: 700; }
.bubble .emoji { font-size: 0.95rem; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.bubble:nth-child(2){ animation-delay:.2s; }
.bubble:nth-child(3){ animation-delay:.9s; }
.bubble:nth-child(4){ animation-delay:1.7s; }
.bubble:nth-child(5){ animation-delay:2.5s; }
.bubble:nth-child(6){ animation-delay:3.3s; }
.wa-input {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 12px;
  background: #E5DDD3;
}
.wa-input .field {
  flex: 1; background: #fff; border-radius: 20px;
  padding: 9px 14px; font-size: 0.8rem; color: #93A199;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.wa-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center; flex:none;
}
.wa-send svg { width: 18px; height: 18px; }

/* floating cards near phone */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
  font-size: 0.84rem;
  z-index: 5;
  animation: floatCard 6s ease-in-out infinite;
}
.float-card .ic {
  width: 38px; height: 38px; border-radius: 11px; flex:none;
  display: grid; place-items: center;
}
.float-card b { display:block; font-size: 0.9rem; color: var(--ink); }
.float-card span { color: var(--muted); font-size: 0.76rem; }
.float-card.one { top: 12%; left: -8%; animation-delay: .4s; }
.float-card.two { bottom: 13%; right: -10%; animation-delay: 1.6s; }
.float-card.one .ic { background: var(--mint-100); }
.float-card.two .ic { background: #FEF3D7; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- marquee / trusted strip ---- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-warm);
}
.strip-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 60px);
  padding-block: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.strip-inner span { display:inline-flex; align-items:center; gap:9px; }
.strip-inner svg { width:18px; height:18px; color: var(--emerald-600); }

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--mint-200); }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(145deg, var(--emerald-bright), var(--forest));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow-emerald);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.32rem; margin-top: 22px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.step-line {
  display: none;
}

/* ============================================================
   BENTO / FEATURES
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--mint-50); color: var(--emerald-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); margin-top: 9px; font-size: 0.97rem; }

.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-4 { grid-column: span 4; }
.card.row-2 { grid-row: span 2; }

/* feature hero card (dark) */
.card.feature-dark {
  grid-column: span 4;
  grid-row: span 2;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(18,209,142,0.30), transparent 55%),
    linear-gradient(160deg, var(--forest-700), var(--forest));
  color: #EAF6EF;
  display: flex; flex-direction: column; justify-content: space-between;
  border: none;
}
.card.feature-dark h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 16ch; }
.card.feature-dark p { color: rgba(234,246,239,0.75); max-width: 40ch; }
.card.feature-dark .ic { background: rgba(255,255,255,0.12); color: #8CE9A6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #DBF3E6;
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
}

.card.stat { display: flex; flex-direction: column; justify-content: center; }
.card.stat .big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--emerald-600), var(--forest));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* ============================================================
   TOPICS / WHAT YOU RECEIVE
   ============================================================ */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.topic {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.topic:hover { border-color: var(--mint-200); transform: translateY(-3px); }
.topic .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--mint-50);
}
.topic h4 { font-family: var(--font-sans); font-weight: 650; font-size: 1.02rem; }
.topic p { color: var(--muted); font-size: 0.9rem; margin-top: 5px; }

/* ============================================================
   FOR WHO
   ============================================================ */
.who {
  background: linear-gradient(170deg, var(--bg-warm), var(--bg));
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.persona {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .3s, box-shadow .3s;
}
.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.persona .emoji {
  font-size: 2rem; width: 60px; height: 60px;
  display: grid; place-items: center; border-radius: 18px;
  background: var(--mint-50); margin-bottom: 18px;
}
.persona h3 { font-size: 1.25rem; }
.persona p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes {
  columns: 3;
  column-gap: 22px;
}
@media (max-width: 900px){ .quotes { columns: 2; } }
@media (max-width: 620px){ .quotes { columns: 1; } }
.quote {
  break-inside: avoid;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.quote .stars { display:block; margin-bottom: 14px; font-size: 0.95rem; }
.quote p { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.55; }
.quote .who-q {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
}
.quote .av {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.9rem;
}
.quote .who-q b { display: block; font-size: 0.92rem; }
.quote .who-q span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   MANIFESTO / PROMISE
   ============================================================ */
.manifesto { max-width: 920px; margin-inline: auto; text-align: center; }
.manifesto .eyebrow { margin-bottom: 24px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.7vw, 2.75rem);
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.manifesto-quote em {
  font-style: italic;
  color: var(--emerald-600);
}
.manifesto-sign {
  margin-top: 28px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 780px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 26px 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-q .plus {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform .3s, background .3s, border-color .3s;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content:""; position: absolute; background: var(--ink); border-radius:2px;
  transition: transform .3s, background .3s;
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; }
.faq-item[aria-expanded="true"] .plus { background: var(--forest); border-color: var(--forest); transform: rotate(90deg); }
.faq-item[aria-expanded="true"] .plus::before,
.faq-item[aria-expanded="true"] .plus::after { background: #fff; }
.faq-item[aria-expanded="true"] .plus::after { transform: scaleY(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq-a p {
  padding: 0 6px 26px;
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
}
.cta-box {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(44px, 7vw, 84px);
  text-align: center;
  color: #EAF6EF;
  background:
    radial-gradient(80% 120% at 85% -10%, rgba(37,211,102,0.36), transparent 55%),
    radial-gradient(70% 100% at 5% 110%, rgba(18,209,142,0.28), transparent 55%),
    linear-gradient(160deg, var(--forest-700), #072319);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-box::after {
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.cta-box h2 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  max-width: 18ch; margin-inline: auto;
  position: relative;
}
.cta-box p {
  margin-top: 20px;
  color: rgba(234,246,239,0.82);
  font-size: 1.12rem;
  max-width: 46ch; margin-inline: auto;
  position: relative;
}
.cta-box .hero-actions { justify-content: center; position: relative; }
.cta-fine { margin-top: 22px; font-size: 0.85rem; color: rgba(234,246,239,0.6); position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #081C14;
  color: rgba(234,246,239,0.72);
  padding-block: clamp(56px, 7vw, 84px) 34px;
}
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer .brand { color: #fff; }
.footer .brand-mark { box-shadow: none; }
.footer-about { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.07);
  display: grid; place-items: center;
}
.footer-social a:hover { background: var(--emerald); }
.footer-social svg { width: 19px; height: 19px; }
.footer h4 {
  font-family: var(--font-sans);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer-col a { display: block; padding: 7px 0; font-size: 0.96rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(234,246,239,0.5);
}
.footer-bottom a { color: rgba(234,246,239,0.7); }
.footer-disclaimer {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(234,246,239,0.6);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  padding-top: 128px;
  padding-bottom: 90px;
}
.legal-head {
  max-width: 760px; margin-inline: auto; text-align: center;
  margin-bottom: 54px;
}
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-head p { margin-top: 16px; color: var(--muted); }
.legal-body {
  max-width: 760px; margin-inline: auto;
}
.legal-body h2 {
  font-size: 1.5rem; margin-top: 44px; margin-bottom: 14px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-family: var(--font-sans); font-weight: 650; font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin-top: 12px; padding-left: 4px; }
.legal-body ul li {
  position: relative; padding-left: 26px; margin-top: 10px;
}
.legal-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
}
.legal-body a { color: var(--emerald-600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  margin-top: 40px; padding: 22px 24px;
  background: var(--mint-50); border: 1px solid var(--mint-200);
  border-radius: var(--r-md);
  font-size: 0.94rem; color: var(--ink-soft);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--emerald-600); font-weight: 600; font-size: 0.95rem;
  margin-bottom: 30px;
}
.back-link:hover { gap: 12px; transition: gap .2s; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 20px; }
  .hero { padding-top: 120px; }
  .hero-lead { max-width: 52ch; }
  .steps-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .card.feature-dark, .card.span-4 { grid-column: span 4; }
  .card.span-3 { grid-column: span 2; }
  .card.span-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-desktop { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 74px; left: var(--gutter); right: var(--gutter);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { width: 100%; padding: 12px 10px; border-radius: 10px; font-size: 1.05rem; }
  .nav-links.open a:hover { background: var(--mint-50); }
  .nav-links.open .btn { width: 100%; margin-top: 6px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.feature-dark, .card.span-4, .card.span-3, .card.span-2 { grid-column: 1 / -1; grid-row: auto; }
  .card.feature-dark { min-height: 320px; }
  .quotes { columns: 1; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Teléfono plano y centrado en móvil (evita recorte por la rotación 3D) */
  .phone {
    width: min(300px, 76vw);
    transform: none;
    animation: floatFlat 7s ease-in-out infinite;
  }

  /* Tira de confianza y badge más compactos en pantallas pequeñas */
  .strip-inner { gap: 12px 18px; font-size: 0.75rem; }
  .hero-badge { font-size: 0.78rem; flex-wrap: wrap; }
}
@keyframes floatFlat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 420px){
  .hero-actions .btn { width: 100%; }
}
