/* ============================================================
   Cotiza — Landing
   Diseño limpio inspirado en WhatsApp (verde/blanco)
   ============================================================ */

:root {
  --green: #0d9f6e;
  --green-dark: #0b7d57;
  --green-light: #e7f7f0;
  --ink: #0f1d1a;
  --body: #3a4a46;
  --muted: #7b8a86;
  --line: #e6ebe9;
  --bg: #ffffff;
  --bg-alt: #f5f9f7;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(13, 159, 110, 0.10);
  --shadow-sm: 0 2px 10px rgba(15, 29, 26, 0.06);
  --max: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.25rem; color: var(--ink); }
.logo-mark { font-size: 1.35rem; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--body); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--green); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.center { display: inline-block; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 50px; background: linear-gradient(180deg, var(--bg-alt), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 20px; }
.highlight { color: var(--green); }
.lead { font-size: 1.18rem; color: var(--body); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.stars { color: #f5b50a; letter-spacing: 2px; }

/* ---------- Mockup teléfono ---------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px; max-width: 100%; background: #efeae2;
  border-radius: 28px; padding: 10px; box-shadow: var(--shadow);
  border: 8px solid #0f1d1a;
}
.phone-topbar {
  display: flex; align-items: center; gap: 10px; background: var(--green-dark);
  color: #fff; padding: 12px 14px; border-radius: 18px 18px 0 0; margin: -10px -10px 0;
}
.phone-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.phone-contact { display: flex; flex-direction: column; line-height: 1.2; }
.phone-contact small { opacity: .85; font-size: .78rem; }
.phone-chat {
  background: #e5ddd5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23d4cabc'/%3E%3C/svg%3E");
  padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 360px;
}
.bubble {
  position: relative; max-width: 85%; padding: 8px 12px 18px; border-radius: 10px;
  font-size: .88rem; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.bubble.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.bubble.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.bubble.small { font-size: .82rem; }
.bubble-time { position: absolute; right: 10px; bottom: 4px; font-size: .65rem; color: #667781; }
.bubble.typing { color: var(--muted); font-style: italic; }
.doc-chip {
  display: block; margin-top: 8px; background: #f0f2f5; border-radius: 8px;
  padding: 8px 10px; font-weight: 600; font-size: .8rem; color: var(--green-dark);
}
.phone-badge {
  position: absolute; top: 18px; right: -8px; background: #fff; color: var(--green-dark);
  font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* ---------- Métricas ---------- */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 28px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.metric strong { display: block; font-size: 1.8rem; color: var(--green); font-weight: 900; }
.metric span { font-size: .88rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Sectores */
.sectors { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sectors li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 12px 0; color: var(--ink); font-size: 1.02rem; }
.testimonial figcaption { color: var(--muted); font-size: .92rem; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-dark)); padding: 80px 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 1.15rem; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); }
.cta-band .btn-primary:hover { background: #f0fff8; }
.cta-note { display: block; margin-top: 16px; color: rgba(255,255,255,.85); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #c5d2cd; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #8ba097; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #c5d2cd; margin-bottom: 9px; font-size: .92rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .88rem; color: #8ba097; }
.footer-bottom a:hover { color: var(--green); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-phone { margin-top: 20px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps, .features, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .section { padding: 56px 0; }
}
