/* ==========================================================================
   Biofert · Landing 2026 — Sistema de estilos
   Paleta oficial de marca + tipografía Inter
   ========================================================================== */

:root {
  --navy-900: #070b2e;
  --navy-800: #0e1555;
  --navy-700: #1e3a5f;
  --navy-600: #24487a;
  --teal: #3aafb8;
  --teal-dark: #2b8f97;
  --green: #22c55e;
  --green-dark: #16a34a;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;

  --wa: #25d366;
  --wa-dark: #1da851;

  --shadow-sm: 0 1px 3px rgba(7, 11, 46, .08);
  --shadow-md: 0 8px 24px rgba(7, 11, 46, .12);
  --shadow-lg: 0 20px 50px rgba(7, 11, 46, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--navy-800); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; }
p  { font-size: 1.05rem; color: var(--gray-700); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.center { text-align: center; }
.center .eyebrow, .center h2, .center p { margin-left: auto; margin-right: auto; }
.section > .container > .center > p { max-width: 640px; }

.highlight { color: var(--teal); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1.05rem;
  padding: 16px 30px; border-radius: 50px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .38); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, .48); }
.btn-outline { background: transparent; color: var(--navy-700); border: 2px solid var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 18px 36px; }
.btn .ico { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--gray-100);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; }
.header .btn { padding: 11px 20px; font-size: .95rem; }
.header .phone { color: var(--navy-700); font-weight: 700; font-size: .95rem; display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(150deg, rgba(7,11,46,.92) 0%, rgba(30,58,95,.86) 55%, rgba(58,175,184,.72) 100%),
              url('../images/bg-1.png') center/cover no-repeat;
  padding: 80px 0 70px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7fe3ea; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 1.2rem; margin-bottom: 28px; max-width: 540px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: #fff; color: var(--navy-800); }
.hero .trust { display: flex; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust b { display: block; font-size: 1.7rem; color: #fff; line-height: 1; }
.hero .trust span { font-size: .82rem; color: rgba(255,255,255,.8); }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card img { width: 100%; height: 340px; object-fit: cover; }
.hero-card .caption { padding: 16px 18px; }
.hero-card .caption strong { color: var(--navy-800); font-size: 1.05rem; }
.hero-card .caption span { font-size: .88rem; color: var(--gray-500); }

/* ---------- Barra de confianza ---------- */
.trustbar { background: var(--navy-800); color: #fff; padding: 18px 0; }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; text-align: center; }
.trustbar .item { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; }
.trustbar .item svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }

/* ---------- Problema (P) ---------- */
.problem { background: var(--gray-50); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.pain-card {
  background: #fff; padding: 30px 26px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100); border-top: 4px solid var(--teal);
}
.pain-card .emoji { font-size: 2rem; margin-bottom: 12px; display: block; }
.pain-card h3 { color: var(--navy-700); margin-bottom: 8px; }
.pain-card p { font-size: .98rem; }

/* ---------- Amplificar (A) ---------- */
.amplify { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; }
.amplify h2 { color: #fff; }
.amplify .lead { color: rgba(255,255,255,.9); max-width: 720px; font-size: 1.15rem; margin: 0 auto 20px; }
.clock {
  max-width: 760px; margin: 32px auto 0; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 28px 30px;
  display: flex; gap: 20px; align-items: flex-start;
}
.clock .icon { font-size: 2.2rem; line-height: 1; }
.clock p { color: rgba(255,255,255,.92); font-size: 1.05rem; margin: 0; }
.clock strong { color: #7fe3ea; }

/* ---------- Solución (S) ---------- */
.solution .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 20px; }
.solution img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.steps { list-style: none; margin-top: 8px; }
.steps li { display: flex; gap: 16px; margin-bottom: 22px; }
.steps .n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-700); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.steps h3 { color: var(--navy-800); margin-bottom: 3px; font-size: 1.1rem; }
.steps p { font-size: .98rem; margin: 0; }

/* ---------- Transformación / Testimonios (T) ---------- */
.transform { background: var(--gray-50); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.tcard { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.tcard .stars { color: #f5b301; font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 2px; }
.tcard p { font-size: 1rem; font-style: italic; color: var(--gray-700); }
.tcard .who { margin-top: 16px; font-weight: 700; color: var(--navy-700); font-style: normal; font-size: .95rem; }
.disclaimer-note { text-align: center; font-size: .82rem; color: var(--gray-500); margin-top: 24px; }

/* ---------- Oferta (O) ---------- */
.offer { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.offer-box {
  max-width: 780px; margin: 0 auto; background: #fff; color: var(--gray-900);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.offer-box .ribbon { background: var(--teal); color: #fff; text-align: center; padding: 12px; font-weight: 700; letter-spacing: .04em; font-size: .95rem; }
.offer-box .body { padding: 40px 40px 44px; text-align: center; }
.offer-box h2 { color: var(--navy-800); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.price .now { font-size: 3.4rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.03em; }
.price .cur { font-size: 1.3rem; font-weight: 700; color: var(--navy-700); }
.price .old { font-size: 1.3rem; color: var(--gray-500); text-decoration: line-through; }
.offer-box .sub { color: var(--gray-500); font-size: .95rem; margin-bottom: 24px; }
.includes { text-align: left; max-width: 460px; margin: 0 auto 28px; }
.includes li { list-style: none; display: flex; gap: 12px; margin-bottom: 13px; align-items: flex-start; font-size: 1.02rem; color: var(--gray-700); }
.includes li svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.scarcity {
  display: inline-flex; align-items: center; gap: 8px; background: #fff4f2; color: #d63d21;
  border: 1px solid #ffd9d0; padding: 9px 18px; border-radius: 50px; font-size: .9rem; font-weight: 700;
  margin-bottom: 22px;
}
.scarcity .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d2e; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 36px auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-size: 1.08rem; font-weight: 700; color: var(--navy-800);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font);
}
.faq-q .plus { font-size: 1.5rem; color: var(--teal); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 20px; font-size: 1rem; }

/* ---------- CTA final (R) ---------- */
.final-cta { background: var(--teal); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.95); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }
.final-cta .btn-wa { box-shadow: 0 12px 30px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 56px 0 28px; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer img.flogo { height: 40px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { display: block; margin-bottom: 9px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer a:hover { color: var(--teal); }
.footer .social { display: flex; gap: 14px; margin-top: 8px; }
.footer .social a { display: inline-flex; }
.footer .social svg { width: 22px; height: 22px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer .legal a { display: inline; color: rgba(255,255,255,.75); text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 0; background: var(--wa); color: #fff;
  border-radius: 50px; box-shadow: 0 8px 24px rgba(37,211,102,.5); overflow: hidden;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.04); }
.wa-float .icon { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.wa-float .icon svg { width: 30px; height: 30px; }
.wa-float .label { padding-right: 22px; font-weight: 700; font-size: .95rem; white-space: nowrap; max-width: 0; overflow: hidden; transition: max-width .3s ease, padding .3s ease; }
.wa-float:hover .label { max-width: 220px; }

/* ---------- Barra CTA móvil fija ---------- */
.mobile-bar { display: none; }

/* ---------- Documentos legales ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--gray-500); font-size: .9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal-page p, .legal-page li { color: var(--gray-700); margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { color: var(--teal-dark); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-700); font-weight: 700; margin-bottom: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 460px; }
  .solution .split { grid-template-columns: 1fr; gap: 28px; }
  .pain-grid, .gallery, .testimonials { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) { .header .phone { display: inline; } }

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .pain-grid, .gallery, .testimonials, .footer .cols { grid-template-columns: 1fr; }
  .header .btn { display: none; }
  .clock { flex-direction: column; gap: 12px; }
  .offer-box .body { padding: 32px 22px 36px; }
  .price .now { font-size: 2.8rem; }
  .wa-float { display: none; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; box-shadow: 0 -4px 20px rgba(7,11,46,.14); padding: 10px 14px;
    gap: 10px; align-items: center;
  }
  .mobile-bar .btn { flex: 1; padding: 14px; font-size: 1rem; }
  body { padding-bottom: 74px; }
  .hero .trust { gap: 18px; }
  .hero .trust b { font-size: 1.4rem; }
}
