/* =================================================================
   AL Aerotermia Logrono — styles.css
   Paleta: azul noche + granate Rioja (acento) + oro viejo (detalles)
   Tipografia: Sora (titulares) / Work Sans (texto)
   ================================================================= */

:root {
  /* --- Color --- */
  --primary: #14243A;         /* azul noche */
  --primary-700: #1C3050;
  --primary-300: #6C7B90;
  --accent: #A62B3E;          /* granate Rioja */
  --accent-hover: #86222F;
  --accent-light: #C4394E;
  --accent-soft: #FBEAEC;
  --gold: #C08A3E;            /* oro viejo: detalles y checks */
  --gold-soft: #FBF2E4;
  --text: #1A2230;
  --text-muted: #5D6875;
  --border: #E4E2DF;
  --bg: #FFFFFF;
  --bg-soft: #F7F3F1;         /* crema calido */
  --bg-warm: #FCF9F7;
  --white: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(20, 24, 34, .07), 0 2px 6px rgba(20, 24, 34, .05);
  --shadow-md: 0 10px 28px rgba(20, 24, 34, .10);
  --shadow-lg: 0 24px 56px rgba(20, 24, 34, .16);

  /* --- Tipografia --- */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Espaciado --- */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;  --sp-7: 5.5rem;

  /* --- Radios --- */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;  --r-pill: 999px;

  --container: 1180px;
  --transition: 190ms cubic-bezier(.32,.72,.34,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(2.05rem, 4.8vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--sp-7) 0; }
.section-sm { padding: var(--sp-6) 0; }
.bg-soft { background: var(--bg-soft); }
.bg-warm { background: var(--bg-warm); }
.bg-primary { background: var(--primary); color: #C9D3E0; }
.bg-primary h2, .bg-primary h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.text-center { text-align: center; }

/* ---------- Eyebrow (pildora con borde, no rellena) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent);
  border: 1px solid rgba(166, 43, 62, .28);
  background: transparent;
  padding: .3rem .8rem; border-radius: var(--r-sm);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 730px; margin: 0 auto var(--sp-5); text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { position: relative; padding-bottom: .9rem; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 72px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 55%, var(--gold) 55%);
}
.section-head p { font-size: 1.08rem; margin-top: .9rem; }
.lead { font-size: 1.16rem; color: var(--text-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .9rem 1.6rem; border-radius: var(--r-md); line-height: 1;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(166, 43, 62, .26); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 12px 26px rgba(166, 43, 62, .34); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-soft); color: var(--primary); }
.btn-ghost { background: rgba(255, 255, 255, .10); color: #fff; border: 1.5px solid rgba(255, 255, 255, .34); }
.btn-ghost:hover { background: rgba(255, 255, 255, .19); color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--primary); color: #BFCBDA; font-size: .89rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; flex-wrap: wrap; }
.topbar a { color: #BFCBDA; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent-light); }
.topbar .topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .topbar-right { display: flex; gap: 1.2rem; align-items: center; }

/* ---------- Header / Nav ---------- */
header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.15rem; line-height: 1.12; }
.brand:hover { color: var(--primary); }
.brand .brand-mark {
  width: 42px; height: 42px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--primary); color: var(--accent-light);
  display: grid; place-items: center; font-size: 1.18rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .73rem; color: var(--text-muted); letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a { color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .94rem; padding: .55rem .72rem; border-radius: var(--r-sm); transition: color var(--transition), background var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-cta { margin-left: .5rem; }
.nav-cta.btn:hover { color: #fff; }
.nav-toggle { display: none; font-size: 1.45rem; color: var(--primary); width: 44px; height: 44px; border-radius: var(--r-sm); }

.nav-dropdown { position: relative; }
.nav-dropbtn { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .94rem; padding: .55rem .72rem; border-radius: var(--r-sm); transition: color var(--transition), background var(--transition); }
.nav-dropbtn i { font-size: .66rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropbtn, .nav-dropdown:focus-within .nav-dropbtn, .nav-dropdown.active .nav-dropbtn { color: var(--accent); background: var(--accent-soft); }
.nav-dropmenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 236px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .35rem; display: none; flex-direction: column; z-index: 120; }
.nav-dropdown:hover .nav-dropmenu, .nav-dropdown:focus-within .nav-dropmenu { display: flex; }
.nav-dropdown:hover .nav-dropbtn i, .nav-dropdown:focus-within .nav-dropbtn i { transform: rotate(180deg); }
.nav-dropmenu a { color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .92rem; padding: .6rem .8rem; border-radius: var(--r-sm); white-space: nowrap; border-left: 2px solid transparent; }
.nav-dropmenu a:hover { background: var(--bg-soft); color: var(--accent); border-left-color: var(--accent); }

/* ---------- Fondo tramado (diagonal) para bloques oscuros ---------- */
.hero, .page-hero, .bg-primary, .cta-band { position: relative; overflow: hidden; }
.hero::before, .page-hero::before, .bg-primary::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 11px);
}
.hero > .container, .page-hero > .container, .bg-primary > .container, .cta-band > * { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { background: var(--primary); color: #fff; }
.hero::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 43, 62, .30), transparent 62%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.04fr .96fr; gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196, 57, 78, .16); border: 1px solid rgba(196, 57, 78, .42);
  color: #F3C9CF; font-size: .82rem; font-weight: 600; font-family: var(--font-head);
  padding: .42rem .9rem; border-radius: var(--r-sm); margin-bottom: 1.2rem;
}
.hero-badge i { color: var(--accent-light); }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 4.5vw, 3.4rem); line-height: 1.14; }
.hero h1 span { color: var(--accent-light); }
.hero-services { margin: 1.1rem 0 .5rem; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .58); font-family: var(--font-head); }
.hero-subtitle { color: rgba(255, 255, 255, .84); font-size: 1.12rem; max-width: 33rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.7rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; color: rgba(255, 255, 255, .76); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--gold); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); box-shadow: 0 30px 62px rgba(0, 0, 0, .34); aspect-ratio: 4/3; object-fit: cover; }
.hero-media .hero-stat {
  position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: var(--r-md);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent);
}
.hero-media .hero-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; color: var(--primary); line-height: 1; }
.hero-media .hero-stat .lbl { font-size: .78rem; color: var(--text-muted); line-height: 1.35; }
.hero-media .hero-stat i { color: var(--accent); font-size: 1.5rem; }

/* ---------- Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-3); height: 100%; position: relative;
  border-left: 3px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-left-color: var(--accent); }
.card-icon { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem; transition: background var(--transition), color var(--transition); }
.card:hover .card-icon { background: var(--accent); color: #fff; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; margin-bottom: 1rem; }
.card .card-link { font-family: var(--font-head); font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); }
.card .card-link i { transition: transform var(--transition); }
.card:hover .card-link i { transform: translateX(5px); }

.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { aspect-ratio: 16/10; object-fit: cover; }
.service-card .service-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.service-card .service-body p { flex: 1; }

/* ---------- Badges y chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .79rem; padding: .35rem .8rem; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1rem; font-size: .9rem; font-weight: 500; color: var(--primary); font-family: var(--font-head); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.chip i { color: var(--accent); margin-right: .35rem; }
a.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 24, 34, .08); }

/* ---------- Features ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem; transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .feature-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--primary); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { font-size: .95rem; }
.bg-soft .feature { background: #fff; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); padding-top: 4.4rem; transition: transform var(--transition), box-shadow var(--transition); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.3rem; left: 1.5rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center;
  transition: background var(--transition), color var(--transition);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step:hover::before { background: var(--accent); color: #fff; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }
.split h2 { position: relative; padding-bottom: .85rem; margin-bottom: 1rem; }
.split h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) 55%, var(--gold) 55%); }
.split h3 { margin: 1.5rem 0 .5rem; }
.split p { margin-bottom: 1.05rem; }
.split p:last-child { margin-bottom: 0; }
.split ul.dotted { margin: 0 0 1.2rem 1.4rem; list-style: disc; }
.split ul.dotted li { margin-bottom: .55rem; color: var(--text); }
.split ul.dotted li::marker { color: var(--accent); }
.split ul.checklist { margin-top: 1.2rem; }
ul.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--text); }
ul.checklist li i { color: var(--gold); margin-top: .3rem; flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); text-align: center; }
.stat { position: relative; padding: 0 .5rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255, 255, 255, .13); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--accent-light); line-height: 1; }
.stat .lbl { font-size: .9rem; color: rgba(255, 255, 255, .74); margin-top: .5rem; }

/* ---------- Testimonios ---------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: .2rem; right: 1.1rem; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--accent-soft); }
.testimonial .stars { color: var(--gold); margin-bottom: .7rem; letter-spacing: 2px; }
.testimonial p { color: var(--text); font-size: .99rem; margin-bottom: 1.1rem; position: relative; }
.testimonial .who { display: flex; align-items: center; gap: .7rem; }
.testimonial .who .avatar { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--primary); color: var(--accent-light); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.testimonial .who .name { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .94rem; }
.testimonial .who .loc { font-size: .84rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 830px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: .75rem; background: #fff; overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--primary); }
.faq-q i { flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: .78rem; transition: transform var(--transition), background var(--transition), color var(--transition); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 10px 24px rgba(166, 43, 62, .10); }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-a-inner { padding: 0 1.3rem 1.3rem; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 460px; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--primary); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; left: -6%; bottom: -60%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(166, 43, 62, .34), transparent 62%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 37rem; margin: .9rem auto 1.7rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-md); border-top: 4px solid var(--accent); }
.form-card.on-dark { color: var(--text); }
.form-group { margin-bottom: 1.05rem; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--primary); margin-bottom: .4rem; }
.form-input, .form-textarea, select.form-input {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .98rem; color: var(--text); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus, select.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166, 43, 62, .14); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.form-check input { margin-top: .25rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.form-note { font-size: .84rem; color: var(--text-muted); margin-top: .8rem; text-align: center; }
.form-error { color: #B32D2D; font-size: .84rem; margin-top: .3rem; display: none; }
.form-input.invalid, .form-textarea.invalid { border-color: #B32D2D; }
.form-status { padding: .9rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .94rem; display: none; }
.form-status.ok { display: block; background: #E8F3EC; color: #1F6B41; }
.form-status.err { display: block; background: #FBEAEA; color: #B32D2D; }

/* ---------- Migas de pan ---------- */
.breadcrumb { padding: 1rem 0; font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "\203A"; color: var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Cabecera de paginas interiores ---------- */
.page-hero { background: var(--primary); color: #fff; padding: var(--sp-5) 0; border-bottom: 3px solid var(--accent); }
.page-hero::after { content: ""; position: absolute; right: -4%; top: -60%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(166, 43, 62, .28), transparent 62%); pointer-events: none; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: rgba(255, 255, 255, .84); font-size: 1.1rem; max-width: 45rem; margin-top: .9rem; }
.page-hero .breadcrumb { padding-top: 0; padding-bottom: 1.2rem; }
.page-hero .breadcrumb li, .page-hero .breadcrumb a { color: rgba(255, 255, 255, .58); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb li:not(:last-child)::after { color: rgba(255, 255, 255, .3); }
.page-hero .hero-trust { margin-top: 1.3rem; }

/* ---------- Prosa ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-bottom: .85rem; }
.prose > h2:first-of-type { position: relative; padding-bottom: .85rem; }
.prose > h2:first-of-type::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) 55%, var(--gold) 55%); }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul.dotted { margin: 0 0 1.2rem 1.4rem; list-style: disc; }
.prose ul.dotted li { margin-bottom: .55rem; color: var(--text); }
.prose ul.dotted li::marker { color: var(--accent); }
.prose ul.checklist { margin: .6rem 0 1.2rem; }
.prose .callout { margin: 1.5rem 0; }

/* ---------- Tabla comparativa ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
table.tbl th, table.tbl td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; }
table.tbl td { color: var(--text); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Callout ---------- */
.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout p { margin: 0; color: var(--text); }

/* ---------- Blog ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article img { border-radius: var(--r-md); margin: 1.7rem 0; }
.article h2 { margin: 2rem 0 .8rem; }
.article h3 { margin: 1.5rem 0 .6rem; }
.article p { margin-bottom: 1.1rem; color: var(--text); }
.article ul.dotted { margin: 0 0 1.2rem 1.2rem; list-style: disc; }
.article ul.dotted li { margin-bottom: .5rem; color: var(--text); }
.article ul.dotted li::marker { color: var(--accent); }
.article .post-meta { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.article .post-meta i { color: var(--accent); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .94rem; }
.article th, .article td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.article th { background: var(--bg-soft); font-family: var(--font-head); color: var(--primary); }

.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; }
.post-card .post-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.13rem; margin-bottom: .5rem; }
.post-card p { font-size: .94rem; flex: 1; margin-bottom: 1rem; }
.post-card .tag { font-size: .74rem; color: var(--accent); font-weight: 600; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .09em; margin-bottom: .6rem; }
.post-card .card-link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); }

/* ---------- Mapa ---------- */
.map-embed { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Datos de contacto ---------- */
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-list .ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.05rem; }
.contact-list .ci-label { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .93rem; }
.contact-list .ci-value { color: var(--text-muted); font-size: .97rem; }
.contact-list .ci-value a { color: var(--text-muted); }
.contact-list .ci-value a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: #A5B3C4; padding: var(--sp-6) 0 var(--sp-3); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
footer h4 { color: #fff; font-size: .98rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--accent); }
footer a { color: #A5B3C4; }
footer a:hover { color: #fff; }
footer ul li { margin-bottom: .6rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand .brand-mark { background: rgba(255, 255, 255, .08); }
.footer-brand .brand small { color: #8494A8; }
.footer-brand p { color: #8494A8; font-size: .91rem; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #BFCBDA; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--accent-light); margin-top: .3rem; flex-shrink: 0; }
.footer-contact a, .footer-contact li, .contact-list .ci-value, .contact-list .ci-value a, .topbar a { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.subfooter { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: #8494A8; }
.subfooter a { color: #8494A8; }
.subfooter .legal-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- Utilidades ---------- */
.mt-1{margin-top:var(--sp-1)}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--sp-2)}.mb-3{margin-bottom:var(--sp-3)}
.maxw-720{max-width:720px}.center{margin-left:auto;margin-right:auto}

/* ---------- Animacion de entrada ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: riseIn .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(1) { animation-delay: .04s; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .20s; }
.hero-text > :nth-child(4) { animation-delay: .28s; }
.hero-text > :nth-child(5) { animation-delay: .36s; }
.hero-text > :nth-child(6) { animation-delay: .44s; }
.hero-media { animation: riseIn .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: .18s; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Foco visible (accesibilidad) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-dropbtn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .faq-q:focus-visible {
  outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-media { order: -1; }
  .hero-media .hero-stat { left: auto; right: 16px; bottom: 16px; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .stat + .stat::before { display: none; }
}
@media (max-width: 768px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform 240ms ease;
    gap: .2rem; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem 1rem; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta.btn { width: 100%; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .topbar-left { gap: 1rem; }
  .topbar .hide-mobile { display: none; }
  .section { padding: var(--sp-6) 0; }
  .container { padding: 0 1rem; }
  .cta-band { padding: var(--sp-4) var(--sp-3); }
  .article table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .subfooter { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-media .hero-stat { position: static; margin-top: 1rem; left: auto; right: auto; bottom: auto; }
  .hero-ctas .btn, .cta-band .hero-ctas .btn { width: 100%; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   WIDGET WHATSAPP (boton flotante + mini formulario)
   ================================================================= */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-family: var(--font-body); }
.wa-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); cursor: pointer; transition: transform .2s ease; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .5; z-index: -1; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
.wa-panel { position: absolute; right: 0; bottom: 74px; width: 330px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); overflow: hidden; transform-origin: bottom right; animation: waIn .2s ease; }
@keyframes waIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.wa-head { background: #075E54; color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #25D366; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.wa-head-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-head-txt strong { font-family: var(--font-head); font-size: .96rem; }
.wa-head-txt span { font-size: .77rem; opacity: .85; }
.wa-close { color: #fff; font-size: 1.15rem; cursor: pointer; opacity: .85; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #ECE5DD; max-height: 70vh; overflow-y: auto; }
.wa-intro { background: #fff; border-radius: 10px; padding: .7rem .85rem; font-size: .89rem; color: var(--text); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); margin: 0; }
.wa-body label { font-family: var(--font-head); font-weight: 600; font-size: .79rem; color: #2a2f33; display: flex; flex-direction: column; gap: .25rem; }
.wa-f { width: 100%; padding: .55rem .7rem; border: 1px solid #c7ccd1; border-radius: 8px; font-family: var(--font-body); font-size: .91rem; background: #fff; color: var(--text); }
.wa-f:focus { outline: none; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.wa-err { display: none; color: #B32D2D; font-size: .79rem; margin: .1rem 0 0; }
.wa-send { background: #25D366; color: #fff; border-radius: 999px; padding: .72rem; font-family: var(--font-head); font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; margin-top: .2rem; transition: background .18s ease; }
.wa-send:hover { background: #1FB855; }
.wa-note { font-size: .71rem; line-height: 1.35; color: #6b7280; margin: .55rem 0 0; text-align: center; }
.wa-note a { color: inherit; text-decoration: underline; }
@media (max-width: 480px) { .wa-widget { right: 14px; bottom: 14px; } .wa-fab { width: 54px; height: 54px; font-size: 1.7rem; } }
