﻿/* ============================================================
   FerInformatico â€” Frontend styles
   Identidad: verde esmeralda + coral cÃ¡lido sobre crema.
   EstÃ©tica elegante y afable: titulares serif, formas suaves,
   luz orgÃ¡nica y detalles premium. DiseÃ±ado para convertir.
   ============================================================ */

:root {
  /* Brand â€” azul pastel */
  --brand: #4a82c4;
  --brand-2: #7aa5d9;
  --brand-3: #35639b;
  --brand-soft: #e3eefb;
  --brand-soft-2: #d2e3f7;
  --brand-glow: rgba(74, 130, 196, .25);

  /* Acento â€” coral cÃ¡lido */
  --accent: #e56b4f;
  --accent-2: #f2947c;
  --accent-soft: #fdeee8;

  /* Dorado suave (detalles, estrellas) */
  --gold: #d9a441;
  --gold-soft: #faf3e0;

  /* Neutros cÃ¡lidos */
  --black: #26313c;
  --ink: #333f4a;
  --muted: #6b7683;
  --bg: #faf7f1;
  --bg-soft: #f2efe6;
  --bg-soft-2: #e7eef4;
  --border: #e6e0d1;
  --dark: #1f3249;

  /* Funcionales */
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb457;
  --success: #16a34a;
  --danger: #dc2626;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(35, 48, 43, .05), 0 4px 14px rgba(35, 48, 43, .06);
  --shadow-md: 0 12px 32px rgba(35, 48, 43, .1);
  --shadow-lg: 0 28px 64px rgba(35, 48, 43, .15);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", "Book Antiqua", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .14s ease; }
a:hover { color: var(--brand-3); text-decoration: underline; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--black); line-height: 1.22; margin: 0 0 .75rem; font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
ul, ol { padding-left: 1.3rem; }
::selection { background: var(--brand); color: #fff; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.section-dark {
  background: linear-gradient(160deg, var(--dark) 0%, #24384f 100%);
  color: #c9d4ce;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 12% 0%, rgba(122,165,217,.2), transparent 60%),
    radial-gradient(440px 280px at 96% 100%, rgba(229,107,79,.14), transparent 60%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .container { position: relative; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.65rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-3) 100%);
  color: #fff; box-shadow: 0 12px 26px var(--brand-glow);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 16px 34px var(--brand-glow); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 12px 26px rgba(37, 211, 102, .34); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 12px 26px rgba(229,107,79,.32); }
.btn-accent:hover { filter: brightness(1.05); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-3); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2a4035; color: #fff; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.06rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn svg { flex: 0 0 auto; }
.icon-wa { background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .45rem; font-weight: 900; font-size: 1.42rem; letter-spacing: -.02em; }
.logo .logo-text { display: inline-flex; }
.logo span.fer {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo span.info { color: var(--black); }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; padding: .25rem 0; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(720px 420px at 90% 0%, rgba(122,165,217,.18), transparent 60%),
    radial-gradient(560px 340px at 2% 100%, rgba(229,107,79,.14), transparent 60%),
    linear-gradient(180deg, #f2f0e6 0%, #fbf8f3 60%, #ffffff 100%);
  padding: 4.4rem 0 4rem;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(3px);
}
.hero::before {
  width: 360px; height: 360px; right: -130px; top: -130px;
  background: radial-gradient(circle, rgba(122,165,217,.3), transparent 70%);
}
.hero::after {
  width: 280px; height: 280px; left: -100px; bottom: -110px;
  background: radial-gradient(circle, rgba(229,107,79,.26), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.05rem;
  background: var(--gold-soft); color: #8a6a1f; border: 1px solid #ecdcae;
  border-radius: 999px; font-weight: 800; font-size: .82rem; margin-bottom: 1.15rem;
  box-shadow: 0 6px 16px rgba(217,164,65,.18);
}
.hero-badge svg { color: var(--gold); }
.hero h1 {
  background: linear-gradient(115deg, var(--brand-3) 0%, var(--brand) 45%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-meta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1.3rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-meta svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: .3rem; color: var(--brand); }

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 44% 56% 55% 45% / 50% 42% 58% 50%;
  background: linear-gradient(135deg, rgba(122,165,217,.16), rgba(229,107,79,.13));
  animation: blobfloat 9s ease-in-out infinite;
}
@keyframes blobfloat { 0%,100% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(0,-14px) rotate(4deg) scale(1.04); } }
.hero-card {
  width: 100%; max-width: 430px; background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: 1.8rem;
  backdrop-filter: blur(16px); position: relative;
}
.hero-card .hc-top { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--border); margin-bottom: 1.15rem; }
.hc-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 8px 20px var(--brand-glow);
}
.hc-name { font-weight: 800; font-size: .98rem; }
.hc-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--success); font-size: .8rem; font-weight: 700; }
.hc-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hc-chat { display: flex; flex-direction: column; gap: .7rem; }
.bubble { max-width: 85%; padding: .8rem 1.05rem; border-radius: 16px; font-size: .9rem; }
.bubble.in { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.bubble.out {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; border-bottom-right-radius: 5px; align-self: flex-end;
  box-shadow: 0 8px 18px var(--brand-glow);
}
.hc-actions { margin-top: 1.35rem; }

/* Hero photo (Fer) */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-photo {
  position: relative; width: 100%; max-width: 470px; margin: 0 auto;
  border-radius: 30px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg); transform: rotate(-1.4deg);
}
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(31, 50, 73, .38));
  pointer-events: none;
}
.hero-photo-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .93); color: var(--ink); border-radius: 999px;
  padding: .42rem .85rem; font-size: .78rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.hero-photo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.hero-chat-chip {
  position: absolute; left: -1.3rem; bottom: -1.6rem; z-index: 3;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-md); padding: 1rem 1.15rem; width: 260px;
}
.hero-chat-chip .hc-top { display: flex; align-items: center; gap: .7rem; padding-bottom: .7rem; }
.hero-chat-chip .hc-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 6px 16px var(--brand-glow); }
.hero-chat-chip .hc-name { font-weight: 800; font-size: .92rem; }
.hero-chat-chip .hc-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--success); font-size: .78rem; font-weight: 700; }
.hero-chat-chip .hc-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--border); background: #fff; }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: center; padding: 1.05rem 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.trustbar-inner svg { width: 20px; height: 20px; vertical-align: -5px; margin-right: .4rem; color: var(--gold); }

/* ---------- Sections headers ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head h2::after {
  content: ""; display: block; width: 62px; height: 4px; margin: .9rem auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent));
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 800; color: var(--accent); margin-bottom: .6rem;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d6d0bd; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { text-decoration: none; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* service cards */
.service-card { padding: 1.7rem; display: flex; flex-direction: column; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
  opacity: 0; transition: opacity .18s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-soft-2));
  color: var(--brand); display: grid; place-items: center; margin-bottom: 1.15rem;
  transition: transform .18s ease;
}
.service-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.service-card .icon svg, .service-card .icon img { width: 27px; height: 27px; object-fit: contain; }
.service-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.service-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.service-card .price { font-weight: 800; color: var(--brand); margin-top: .5rem; }
.service-card .go { color: var(--brand); font-weight: 700; font-size: .9rem; margin-top: .5rem; display: inline-flex; align-items: center; gap: .3rem; }
.service-card .go svg { transition: transform .18s ease; }
.service-card:hover .go svg { transform: translateX(4px); }

/* problem chips */
.chip-list { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.2rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .9rem; transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; box-shadow: 0 8px 20px rgba(74,130,196,.14); transform: translateY(-2px); }
.chip.active-chip { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-color: transparent; }
.chip svg { width: 17px; height: 17px; color: var(--brand); }
.chip.active-chip svg { color: #fff; }

/* category blocks (programas) */
.cat-block { scroll-margin-top: 96px; }
.cat-block + .cat-block { margin-top: 3.2rem; }
.cat-title {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.5rem; margin-bottom: .45rem;
}
.cat-title svg { color: var(--brand); width: 23px; height: 23px; }
.cat-count {
  margin-left: .1rem; font-size: .74rem; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); padding: .2rem .6rem; border-radius: 999px;
}
.cat-desc { color: var(--muted); max-width: 46rem; margin-bottom: 1.5rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { text-align: center; padding: 1.7rem 1rem; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -45%; width: 90%; height: 3px;
  background: linear-gradient(90deg, var(--brand-soft-2), transparent); border-radius: 999px;
}
.step .num {
  width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 10px 22px var(--brand-glow); position: relative; z-index: 1;
  font-family: var(--font-display);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* feature list */
.homework-grid { max-width: 1000px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { display: flex; gap: .95rem; align-items: flex-start; padding: 1.3rem; }
.feature .tick {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #f9d9cc); color: #b3472f;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(229,107,79,.18);
}
.feature .tick svg { width: 16px; height: 16px; }
.feature h4 { margin-bottom: .2rem; font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* testimonials */
.testimonial { padding: 1.7rem; display: flex; flex-direction: column; }
.testimonial .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: .15em; margin-bottom: .7rem; }
.testimonial p.quote { color: var(--ink); font-size: .95rem; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft-2), var(--brand-soft));
  color: var(--brand); display: grid; place-items: center; font-weight: 800;
}
.testimonial .who .name { font-weight: 700; font-size: .92rem; }
.testimonial .who .svc { color: var(--muted); font-size: .82rem; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; margin-bottom: .8rem; background: #fff; overflow: hidden; transition: box-shadow .15s ease; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: #d6d0bd; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; font-weight: 700; font-size: .98rem; }
.faq-q .arrow {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  transition: transform .2s ease, background .2s ease; font-size: .8rem;
}
.faq-item.open .arrow { transform: rotate(180deg); background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a > div { padding: 0 1.35rem 1.2rem; color: var(--muted); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(130deg, var(--brand) 0%, var(--brand-3) 55%, #16273c 100%);
  border-radius: 28px; padding: 3.4rem 2rem; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(320px 220px at 12% 10%, rgba(217,164,65,.3), transparent 60%),
    radial-gradient(380px 260px at 92% 90%, rgba(122,165,217,.5), transparent 60%),
    radial-gradient(240px 170px at 88% 8%, rgba(255,255,255,.12), transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute; width: 230px; height: 230px; border-radius: 44% 56% 55% 45%;
  background: rgba(255,255,255,.06); top: -70px; left: -40px; transform: rotate(20deg);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 40rem; margin: 0 auto 1.6rem; position: relative; }
.cta-band .btn { margin: .25rem; position: relative; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(74,130,196,.13); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.alert { padding: .9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.15rem; font-weight: 600; font-size: .93rem; }
.alert-success { background: #e8f9ee; color: #12602c; border: 1px solid #b7e7c8; }
.alert-error { background: #fdecec; color: #8f1414; border: 1px solid #f3c2c2; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--dark) 0%, #24384f 100%); color: #b7c4bd; padding: 3.8rem 0 6.8rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 90% 0%, rgba(122,165,217,.16), transparent 60%);
}
.site-footer a { color: #c9d6cf; }
.site-footer a:hover { color: var(--accent-2); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; position: relative; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: .95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .92rem; }
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: .85rem; }
.footer-logo .logo-text { display: inline-flex; }
.footer-logo .fer {
  background: linear-gradient(135deg, var(--brand-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.6rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { font-size: .85rem; }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.whatsapp-float {
  position: fixed; right: 1.15rem; bottom: 5.4rem; z-index: 55; width: 60px; height: 60px;
  border-radius: 50%; background: #fff; display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .5); transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px rgba(37, 211, 102, .55); }
.whatsapp-float .icon-wa { width: 36px; height: 36px; padding: 4px; }

/* ---------- Sticky CTA button ---------- */
.cta-sticky {
  position: fixed; right: 1.15rem; bottom: 13rem; z-index: 54;
  display: flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff; font-weight: 800; font-size: .85rem;
  padding: .7rem 1.1rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(229,107,79,.4);
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-sticky:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(229,107,79,.55); color: #fff; }
.cta-sticky .cta-sticky-text { display: inline; }
.cta-sticky svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .cta-sticky {
    right: 1rem; left: 1rem; bottom: 5.5rem;
    justify-content: center; width: auto; border-radius: 999px;
  }
  .whatsapp-float { right: 1rem; bottom: 4.5rem; width: 56px; height: 56px; }
}

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(28,42,36,.1);
}
.mobile-bar .mb-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem 0; font-size: .7rem; font-weight: 700; color: var(--ink); }
.mobile-bar a.whatsapp { color: var(--whatsapp-dark); }
.mobile-bar a.phone { color: var(--brand); }
.mobile-bar svg { width: 22px; height: 22px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 1.1rem 0 .2rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); text-decoration: none; }
.breadcrumbs .sep { margin: 0 .45rem; opacity: .5; }

/* ---------- Page header ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(540px 320px at 90% 0%, rgba(122,165,217,.16), transparent 62%),
    radial-gradient(440px 270px at 0% 100%, rgba(229,107,79,.12), transparent 62%),
    linear-gradient(180deg, #f2f0e6 0%, #fff 100%);
  padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: 42rem; font-size: 1.1rem; }

/* ---------- Program / product cards ---------- */
.program-card { padding: 1.6rem; display: flex; flex-direction: column; }
.program-card .icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-soft-2));
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--brand);
}
.program-card h3 { font-size: 1.1rem; }
.program-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.program-card .btn { margin-top: .85rem; }

.product-card { padding: 1.4rem; display: flex; flex-direction: column; }
.product-card .img { height: 170px; border-radius: 16px; background: linear-gradient(135deg, var(--bg-soft), var(--brand-soft)); display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .img .ph { color: var(--brand); font-weight: 800; }
.product-card h3 { font-size: 1.06rem; }
.product-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.product-card .price { font-weight: 800; font-size: 1.18rem; color: var(--brand); margin-top: .4rem; font-family: var(--font-display); }
.product-card .old-price { color: var(--muted); text-decoration: line-through; font-size: .9rem; font-weight: 500; margin-left: .5rem; }
.badge { display: inline-block; padding: .28rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge-featured { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.badge-destacado { background: var(--accent-soft); color: #b3472f; }

/* ---------- Blog ---------- */
.blog-card { padding: 1.4rem; display: flex; flex-direction: column; }
.blog-card .img { height: 150px; border-radius: 16px; overflow: hidden; margin-bottom: 1rem; background: linear-gradient(135deg, var(--bg-soft), var(--brand-soft)); }
.blog-card .img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .3rem; }
.blog-card h3 { font-size: 1.1rem; }
.blog-card .meta { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.blog-post img { border-radius: 16px; }
.blog-post .content h2 { margin-top: 1.7rem; }
.blog-post .content ul, .blog-post .content ol { margin-bottom: 1rem; }

/* ---------- Calculator ---------- */
.calculator {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-md); padding: 2rem; max-width: 560px; margin: 0 auto;
}
.calculator h3 { text-align: center; margin-bottom: 1.25rem; }
.calc-result {
  margin-top: 1.25rem; text-align: center; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border-radius: 18px; padding: 1.35rem; border: 1px dashed var(--brand); display: none;
}
.calc-result .amount { font-size: 2.05rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-display); }
.calc-result .note { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Tables (admin uses its own css, but keep list pages ok) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.table th { background: var(--bg-soft); font-weight: 700; }

/* ---------- Map zone (static, privacy friendly) ---------- */
.map-wrap { max-width: 760px; margin: 0 auto; }
.map-leaflet {
  width: 100%; height: 460px; min-height: 460px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 1;
  background: #e8f0f8; /* fallback background while tiles load */
}
.map-leaflet .leaflet-popup-content { font-weight: 700; color: var(--ink); }
.map-leaflet .leaflet-control-attribution { font-size: 10px; }
.map-note {
  margin: 1rem 0 0; font-size: .88rem; color: var(--muted); text-align: center;
}
.map-note svg { vertical-align: -3px; color: var(--brand); }
.map-pin-icon { background: none; border: none; }
.map-pin-icon .pin {
  width: 20px; height: 20px; margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, #8fb3de, #4a82c4); border: 2.5px solid #fff;
  box-shadow: 0 5px 12px rgba(74, 130, 196, .5);
}
.map-pin-icon .pin.center { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 5px 12px rgba(229, 107, 79, .55); }
.map-pin-icon span {
  display: block; margin-top: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.map-zone {
  position: relative; max-width: 700px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(180deg, #eef2e9 0%, #f6f1e4 100%);
  box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; min-height: 300px;
}
.map-zone .map-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zone-circle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  border: 2.5px dashed rgba(122, 165, 217, .95);
  background: radial-gradient(circle, rgba(122, 165, 217, .3), rgba(122, 165, 217, .06) 70%);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .45), 0 0 46px rgba(122, 165, 217, .22);
  display: grid; place-items: center;
}
.zone-circle::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 7px rgba(229, 107, 79, .22), 0 6px 14px rgba(229, 107, 79, .45);
  animation: pulse 2s infinite;
}
.map-city { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .3rem; z-index: 2; }
.map-city .pin {
  width: 19px; height: 19px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, #8fb3de, #4a82c4); border: 2px solid #fff;
  box-shadow: 0 5px 12px rgba(74, 130, 196, .45);
}
.map-city.center .pin {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 5px 12px rgba(229, 107, 79, .5);
  width: 22px; height: 22px;
}
.map-city span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .24rem .7rem;
  font-size: .78rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.map-city.center span { background: var(--accent-soft); border-color: #f4c9bc; color: #a33f28; }
.map-zone .zone-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -190%);
  background: rgba(255, 255, 255, .95); border: 1px solid var(--border); border-radius: 14px;
  padding: .5rem 1rem; font-weight: 800; font-size: .86rem; color: var(--ink);
  box-shadow: var(--shadow-md); white-space: nowrap; z-index: 2;
}
.map-zone .legend {
  position: absolute; left: 1rem; bottom: 1rem; font-size: .74rem; color: var(--muted);
  background: rgba(255, 255, 255, .92); border-radius: 10px; padding: .4rem .7rem;
  border: 1px solid var(--border); font-weight: 600; z-index: 2;
}
.map-zone .map-compass {
  position: absolute; top: 1rem; right: 1.1rem; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-weight: 800; color: var(--brand); font-size: .8rem; z-index: 2;
}
.map-compass::before { content: "N"; font-size: .8rem; font-weight: 800; color: var(--accent); }
.map-compass::after { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--accent); }
.map-zone .map-scale {
  position: absolute; right: 1rem; bottom: 1rem; font-size: .72rem; color: var(--muted);
  background: rgba(255, 255, 255, .92); border-radius: 10px; padding: .45rem .75rem;
  border: 1px solid var(--border); font-weight: 700; z-index: 2;
}
.map-scale b { display: block; height: 4px; width: 74px; background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 30%, transparent 30%, transparent 36%, var(--muted) 36%, var(--muted) 66%, transparent 66%, transparent 72%, var(--muted) 72%); border-radius: 999px; margin: 3px 0 1px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 5.4rem; z-index: 70;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 1rem 1.25rem; display: none;
  max-width: 640px; margin: 0 auto;
}
.cookie-banner p { font-size: .88rem; color: var(--muted); margin: 0 0 .7rem; }
.cookie-banner .cb-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5.5rem 0; }
.notfound .code {
  font-size: 5.5rem; font-weight: 700; line-height: 1; font-family: var(--font-display);
  background: linear-gradient(135deg, var(--brand-2), var(--brand), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound .actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.max-w-720 { max-width: 720px; margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: #fbf8f3;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav-links a.active::after { bottom: 0; }
  .nav-cta .btn-sm { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { max-width: 100%; }
  .hero-chat-chip { left: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: block; }
  .whatsapp-float { bottom: 4.4rem; }
  .cookie-banner { bottom: 4.4rem; }
  .hero-chat-chip { left: 50%; transform: translateX(-50%); bottom: -1.2rem; width: min(260px, 88%); }
  .site-footer { padding-bottom: 5.2rem; }
  .section { padding: 2.8rem 0; }
  .hero { padding: 1.7rem 0 2.8rem; }
  .hero h1 { font-size: 2rem; }
  .btn-lg { padding: .95rem 1.5rem; font-size: .99rem; }
  .cta-band { padding: 2.3rem 1.3rem; }
}

/* ---------- Página de zona (landings por municipio) ---------- */
.crumbs { padding: .9rem 0; font-size: .85rem; color: var(--brand-3, #35639b); background: #f5f2ea; }
.crumbs .container { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: var(--brand-3, #35639b); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span:last-child { color: var(--muted, #5a6a7d); }

.price-strip { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.price-card { background: #fff; border: 1px solid var(--brand-2, #cfdff5); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 8px 22px rgba(74, 130, 196, .1); }
.price-label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--brand-3, #35639b); }
.price-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink, #1f3249); margin: .15rem 0 .1rem; }
.price-note { display: block; font-size: .8rem; color: var(--muted, #5a6a7d); }

.guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.guarantee { background: #fff; border-radius: 16px; padding: 1.4rem; text-align: center; box-shadow: 0 6px 20px rgba(31, 50, 73, .06); }
.guarantee-icon { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%; background: var(--brand-2, #7aa5d9); color: #fff; display: grid; place-items: center; }
.guarantee h4 { margin: 0 0 .35rem; font-family: Georgia, serif; }
.guarantee p { margin: 0; font-size: .9rem; color: var(--muted, #5a6a7d); }

.zone-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--brand-2, #cfdff5); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 700; color: var(--brand-3, #35639b); }
.chip:hover { background: var(--brand, #4a82c4); color: #fff; text-decoration: none; }



/* ---------- Buscador de cabecera + resultados ---------- */
.header-search { display: inline-flex; align-items: center; gap: .25rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .2rem .2rem .2rem .9rem; }
.header-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--ink); width: 9.5rem; }
.header-search button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: var(--brand); color: #fff; cursor: pointer; }
.header-search button:hover { background: var(--brand-3); }
.search-results { max-width: 44rem; margin: 0 auto; }
.search-group { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand-3); margin: 1.4rem 0 .5rem; }
.search-item { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: .6rem; box-shadow: var(--shadow-sm); }
.search-item:hover { border-color: var(--brand-2); box-shadow: var(--shadow-md); }
.search-icon { flex: 0 0 auto; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-3); }
.search-title { display: block; font-weight: 700; color: var(--ink); }
.search-descr { display: block; font-size: .88rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Blog Gallery ---------- */
.blog-gallery { margin-bottom: 1.5rem; }
.gallery-grid a { position: relative; }
.gallery-grid a::after {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .2s ease; pointer-events: none;
}
.gallery-grid a:hover::after { background: rgba(0,0,0,.1); }
.gallery-grid img { transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }

/* ---------- Accesibilidad ---------- */
