*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #F9FAFB;
  --surface:   #FFFFFF;
  --border:    #E5E7EB;
  --text:      #111827;
  --muted:     #6B7280;
  --accent:    #1D6F5C;
  --accent-lt: #E6F4F0;
  --accent-dk: #155C4C;
  --radius:    12px;
  --max:       960px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* NAV */
nav {
  position: sticky; top: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 100; padding: 16px 24px;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(249,250,251,0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
@media (max-width: 600px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(249,250,251,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-link { display: block; padding: 13px 24px; font-size: 1rem; }
}
.nav-cta {
  font-size: 0.875rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
  border: 1.5px solid var(--accent);
  padding: 7px 16px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* HERO */
.hero {
  padding: 90px 0 80px;
  display: flex; align-items: center; gap: 56px;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-lt);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.8px;
  color: var(--text); margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 480px; margin-bottom: 20px; line-height: 1.65;
}
.hero-checks {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 28px;
}
.hero-check-item { font-size: 0.88rem; color: var(--muted); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; background: var(--accent);
  color: #fff; text-decoration: none;
  border-radius: 9px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--muted);
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

.hero-photo {
  width: 260px; height: 310px; border-radius: 20px;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--border);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.divider { height: 1px; background: var(--border); }

/* SECTION HEADERS */
.sec-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.sec-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 12px;
}
.sec-sub { color: var(--muted); max-width: 520px; margin-bottom: 40px; }

/* PROBLEMA DARK (contenido propio de cada página, estilo compartido) */
.section-problema {
  background: #111827;
  border-radius: 16px;
  padding: 48px 40px;
  margin: 40px -16px 0;
}
.section-problema .sec-title { color: #F9FAFB; }
.section-problema .sec-sub { color: #9CA3AF; }
.section-problema .signal-item { border-bottom-color: rgba(255,255,255,0.08); }
.section-problema .signal-text { color: #D1D5DB; }
.section-problema .signal-text strong { color: #F9FAFB; }
.section-problema .signal-num { opacity: 0.8; }
.section-problema .problema-conclusion {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #9CA3AF;
}
.problema-signals { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.signal-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.signal-item:first-child { padding-top: 0; }
.signal-item:last-child { border-bottom: none; }
.signal-num {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); opacity: 0.5;
  width: 20px; flex-shrink: 0; padding-top: 2px;
}
.signal-text { font-size: 0.93rem; color: #374151; line-height: 1.55; }
.signal-text strong { color: var(--text); }
.problema-conclusion {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px;
  font-size: 0.9rem; color: #374151; line-height: 1.6;
}

/* CTA INTERMEDIO */
.cta-mid {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  padding: 24px 32px; margin-top: 28px;
  background: var(--accent-lt); border-radius: var(--radius);
}
.cta-mid p { font-size: 1rem; font-weight: 500; color: var(--accent-dk); }
@media (max-width: 600px) {
  .cta-mid { flex-direction: column; text-align: center; }
}

/* CÓMO TRABAJO */
.section-tinted {
  background: var(--accent-lt);
  border-radius: 16px;
  padding: 48px 40px;
  margin: 0 -16px;
}
.proceso-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px; padding-bottom: 32px;
  border-bottom: 1px solid #C5DDD9;
}
.proceso-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent-dk); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: #4A7A6D; font-weight: 500; }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.paso { padding: 24px 20px; position: relative; }
.paso::after {
  content: ''; position: absolute;
  right: 0; top: 30px;
  width: 1px; height: 40px;
  background: var(--border);
}
.paso:last-child::after { display: none; }
.paso-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--accent-lt); line-height: 1; margin-bottom: 10px;
  -webkit-text-stroke: 1.5px var(--accent);
}
.paso h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.paso p { font-size: 0.855rem; color: var(--muted); line-height: 1.5; }

/* POR QUÉ */
.porque-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.porque-list { list-style: none; }
.porque-list li {
  display: flex; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: #374151; align-items: flex-start;
}
.porque-list li:first-child { padding-top: 0; }
.porque-list li:last-child { border-bottom: none; }
.check {
  width: 22px; height: 22px; background: var(--accent-lt);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; color: var(--accent);
  font-weight: 700; margin-top: 1px;
}
.no-fit {
  background: #FFFBEB; border: 1px solid #FCD34D;
  border-radius: var(--radius); padding: 24px 28px;
}
.no-fit h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; color: #92400E; }
.no-fit p { font-size: 0.9rem; color: #78350F; line-height: 1.6; }

/* TESTIMONIO */
.testimonio-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.testimonio-quote {
  font-size: 1.05rem; color: var(--text); line-height: 1.6;
  margin-bottom: 24px;
}
.testimonio-author { display: flex; align-items: center; gap: 16px; }
.testimonio-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.testimonio-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.testimonio-biz { font-size: 0.82rem; color: var(--muted); }
.testimonio-biz a { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
  .testimonio-card { padding: 28px 24px; }
  .testimonio-author { flex-wrap: wrap; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
summary {
  padding: 18px 22px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.2rem;
  color: var(--accent); font-weight: 400; transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.faq-group-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 28px 0 10px;
}
.faq-group-label:first-child { margin-top: 0; }

/* CTA FINAL */
.cta-final {
  text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 64px 40px; margin-bottom: 80px;
}
.cta-final .sec-title { margin-bottom: 16px; }
.cta-final .cta-intro { color: var(--muted); max-width: 500px; margin: 0 auto 8px; font-size: 0.95rem; line-height: 1.65; }
.cta-final .cta-main { color: var(--text); max-width: 500px; margin: 0 auto 32px; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.cta-fine { margin-top: 18px; font-size: 0.82rem; color: #9CA3AF; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px; text-align: center;
  font-size: 0.82rem; color: #9CA3AF;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--muted); }
.footer-name { font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer-meta { color: #9CA3AF; }

/* ANIMACIONES DE ENTRADA */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s ease forwards; }
  .fade-up:nth-child(2) { animation-delay: 0.08s; }
  .fade-up:nth-child(3) { animation-delay: 0.16s; }
  .fade-up:nth-child(4) { animation-delay: 0.22s; }
  .fade-up:nth-child(5) { animation-delay: 0.28s; }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

  @keyframes markerSweep { to { background-size: 100% 100%; } }
  .h1-mark {
    background-image: linear-gradient(transparent 52%, rgba(253,211,60,.5) 52%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: markerSweep 0.45s ease 0.82s forwards;
  }

  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
  .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
  .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.22s; }
  .reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
  .reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.33s; }
  .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
}

/* CURSOR */
@media (hover: hover) {
  .cursor-ring {
    width: 18px; height: 18px;
    border: 1px solid rgba(29,111,92,0.5);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s, width 0.2s, height 0.2s;
  }
  .cursor-ring.active { opacity: 1; }
}
@media (hover: none) { .cursor-ring { display: none; } }

/* GRAIN */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9997; opacity: .45;
}

/* FLOATING WHATSAPP */
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 6px 28px rgba(37,211,102,0.35), 0 0 0 10px rgba(37,211,102,0); }
}
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 13px 20px 13px 16px; border-radius: 50px;
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  animation: pulse-wa 2.5s ease infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.wa-float-label { line-height: 1.2; }
.wa-float-label small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.85; }
@media (max-width: 600px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 15px; border-radius: 50%; }
}

/* RESPONSIVE */
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .section-tinted { padding: 32px 24px; margin: 0; }
  .section-problema { padding: 32px 24px; margin: 40px 0 0; }
  .proceso-stats { gap: 20px; }
  .hero { flex-direction: column; gap: 32px; padding: 52px 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero-photo { width: 160px; height: 190px; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .paso::after { display: none; }
  .porque-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .hero-flow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flow-arrow { transform: rotate(90deg); margin-left: 18px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .proceso-steps { grid-template-columns: 1fr; }
}
