/* =========================================================
   ENLAZA CONNECT — estilos (v2, línea "cercana por WhatsApp")
   Paleta cálida (crema + coral + verde-azulado), tipografía
   Poppins/Inter, mockup de chat en el hero, pasos numerados
   y FAQ en acordeón. Deliberadamente distinto de un look
   "SaaS corporativo" (sin hero oscuro ni tarjetas flotantes).
   ========================================================= */

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

:root {
  --cream: #fbf6ee;
  --cream-2: #f3e9d8;
  --ink: #2b2620;
  --ink-soft: #55504a;
  --teal: #159a80;
  --teal-dark: #0e7a65;
  --teal-tint: #e2f3ef;
  --coral: #ff7a53;
  --coral-dark: #f05f36;
  --coral-tint: #ffe8de;
  --white: #ffffff;
  --border: #ece1cf;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 48px -24px rgba(43, 38, 32, 0.22);
  --shadow-sm: 0 10px 26px -14px rgba(43, 38, 32, 0.2);
  --container: 1140px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; }
svg { display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--coral-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--coral);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: 2rem; margin: 0 0 14px; }
p.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; }

.icon {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 40px;
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  box-shadow: 0 14px 26px -10px rgba(240, 95, 54, 0.5);
}
.btn-primary .icon { width: 18px; height: 18px; }
.btn-outline { border-color: var(--border); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--coral-dark); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 20px;
}
.navbar .logo img { height: 40px; }
.nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0;
  font-weight: 600; font-size: 0.93rem; color: var(--ink);
}
.nav-links a:hover { color: var(--coral-dark); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 26px; height: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0;
}
.hero .blob.b1 { width: 420px; height: 420px; background: var(--teal-tint); top: -140px; right: -100px; }
.hero .blob.b2 { width: 260px; height: 260px; background: var(--coral-tint); bottom: -80px; left: -60px; }
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.18; margin: 0 0 18px; }
.hero h1 span { color: var(--coral-dark); }
.hero p.lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Mockup de chat estilo WhatsApp */
.chat-mock {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 0 0 16px;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chat-mock .chat-head {
  background: var(--teal);
  color: var(--white);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.95rem;
}
.chat-mock .chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9ffb0; }
.chat-mock .chat-head small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.76rem; }
.chat-mock .chat-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #fbfaf7; }
.bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; max-width: 82%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.bubble.in { background: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--teal-tint); color: var(--teal-dark); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.chat-mock .typing { align-self: flex-start; font-size: 0.78rem; color: var(--ink-soft); padding-left: 4px; }

/* ---------- Tarifas ---------- */
.tarifas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.tarifa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tarifa-card.featured { border-color: var(--coral); box-shadow: var(--shadow); }
.tarifa-icons {
  display: flex; justify-content: center; gap: 10px;
  padding: 22px 0 6px;
  color: var(--teal-dark);
}
.tarifa-icons .icon { width: 26px; height: 26px; }
.tarifa-head {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.tarifa-card.featured .tarifa-head { background: linear-gradient(120deg, var(--coral), var(--coral-dark)); }
.tarifa-body { padding: 22px 24px 8px; }
.tarifa-row { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.tarifa-row:last-child { border-bottom: none; }
.tarifa-row .label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 4px; }
.tarifa-row .price { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.tarifa-row .price small { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }
.tarifa-note {
  background: var(--cream-2);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  padding: 12px;
  margin: 18px 24px 24px;
  border-radius: 10px;
}
.tarifa-card.featured .tarifa-note { color: var(--coral-dark); }
.tarifas-legal { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: 28px; }

/* ---------- Cómo funciona ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--coral);
  color: var(--coral-dark); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; max-width: 260px; margin: 0 auto; }

/* ---------- Secciones generales ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Servicios: tarjetas con "pico" de bocadillo */
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.servicio-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
}
.servicio-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.servicio-icon .icon { width: 26px; height: 26px; color: var(--teal-dark); stroke-width: 1.6; }
.servicio-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.servicio-card p { color: var(--ink-soft); margin-bottom: 18px; font-size: 0.94rem; }

/* Ahorro / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}
.savings-card { padding: 26px; }
.savings-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; color: var(--ink-soft); }
.savings-card .row:last-child { border-bottom: none; }
.savings-card .row strong { color: var(--ink); }
.savings-card .total {
  margin-top: 14px; padding: 14px 12px; border-radius: var(--radius-sm);
  background: var(--coral-tint); display: flex; justify-content: space-between;
  font-weight: 800; color: var(--coral-dark);
}
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--ink-soft); font-size: 0.98rem; }
.checklist .icon { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* Por qué elegirnos: franja clara con tarjetas de color alterno */
.porque-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.porque-item {
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  border: 1px solid var(--border);
}
.porque-item:nth-child(odd) { background: var(--teal-tint); }
.porque-item:nth-child(even) { background: var(--coral-tint); }
.porque-item .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.porque-item:nth-child(odd) .icon { color: var(--teal-dark); }
.porque-item:nth-child(even) .icon { color: var(--coral-dark); }
.porque-item .icon { width: 22px; height: 22px; }
.porque-item h3 { font-size: 1rem; margin: 0 0 6px; }
.porque-item p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* FAQ (acordeón nativo, sin JS) */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--coral);
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 14px 0 0; font-size: 0.95rem; }

/* CTA final */
.cta-final {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 26px; }
.cta-final .btn-primary { background: var(--white); color: var(--teal-dark); box-shadow: none; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; margin-bottom: 36px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: 0.92rem; color: var(--ink-soft); }
.footer-col h4 { font-family: var(--font-head); font-size: 0.9rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-col a, .footer-col p { display: block; margin-bottom: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--coral-dark); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.footer-social .icon { width: 16px; height: 16px; color: var(--ink); }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); }
.footer-social a:hover .icon { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.footer-bottom a:hover { color: var(--coral-dark); }

/* ---------- Páginas legales ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 6px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 32px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--coral-dark); font-weight: 700; font-size: 0.92rem; }

/* ---------- Hero pequeño (landings) ---------- */
.hero-small { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-small .container { position: relative; z-index: 1; max-width: 820px; text-align: center; }
.hero-small h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; }
.hero-small h1 span { color: var(--coral-dark); }
.hero-small p.lead { margin: 0 auto 28px; max-width: 640px; }
.hero-small .hero-actions { justify-content: center; }

/* ---------- Formulario (analiza tu factura) ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 640px;
  margin: 0 auto;
}
.form-card label { display: block; font-weight: 600; font-size: 0.9rem; margin: 18px 0 6px; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fdfcfa;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal);
}
.form-card input[type="file"] {
  width: 100%;
  padding: 22px 14px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: #fdfcfa;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-card .consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 0.82rem; color: var(--ink-soft); }
.form-card .consent input { margin-top: 3px; }
.form-card button.btn { width: 100%; justify-content: center; border: none; cursor: pointer; font-size: 1rem; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.post-card .post-tag {
  align-self: flex-start;
  background: var(--teal-tint); color: var(--teal-dark);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.post-card .post-tag.coral { background: var(--coral-tint); color: var(--coral-dark); }
.post-card h3 { font-size: 1.1rem; margin: 0 0 10px; line-height: 1.35; }
.post-card p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.post-card .post-link { font-weight: 700; color: var(--coral-dark); font-size: 0.9rem; margin-top: 14px; }
.post-card .post-link:hover { color: var(--coral); }

/* Artículo */
.article { padding: 56px 0 80px; }
.article .container { max-width: 760px; }
.article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.25; margin: 10px 0 10px; }
.article .article-meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 28px; }
.article h2 { font-size: 1.35rem; margin-top: 40px; }
.article h3 { font-size: 1.1rem; margin-top: 28px; }
.article p, .article li { color: var(--ink-soft); font-size: 1rem; }
.article ul, .article ol { padding-left: 22px; }
.article .article-cta {
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
  padding: 26px;
  margin: 36px 0;
  text-align: center;
}
.article .article-cta p { margin: 0 0 16px; font-weight: 600; color: var(--ink); }

/* Ventajas en landings */
.landing-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .chat-mock { margin-top: 20px; }
  .servicios-grid, .porque-grid, .steps, .tarifas-grid, .blog-grid, .landing-benefits { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { padding: 44px 24px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .navbar.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .servicios-grid, .porque-grid, .steps, .tarifas-grid, .blog-grid, .landing-benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
