/* ==========================================================================
   IMPEHOGAR — DESIGN SYSTEM
   Paleta: azul marino / turquesa / verde fresco / blancos cálidos
   Tipografía: Manrope (títulos) + Inter (cuerpo)
   ========================================================================== */

:root {
  --navy: #0F2A4A;
  --navy-light: #1B3F66;
  --teal: #0E9AA7;
  --teal-dark: #0A7A85;
  --green: #35A876;
  --green-dark: #2A8961;
  --bg: #FBFDFC;
  --bg-soft: #F1F7F5;
  --bg-mint: #EAF6F1;
  --ink: #14212E;
  --ink-soft: #4C5C6B;
  --line: #E3EAE8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(15,42,74,.06), 0 1px 1px rgba(15,42,74,.04);
  --shadow-md: 0 8px 24px rgba(15,42,74,.10);
  --shadow-lg: 0 20px 48px rgba(15,42,74,.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;
  --header-h-mobile: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.16;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 68ch; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-mint); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 10px;
}
.accent { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-whatsapp { background: #21A65A; color: var(--white); }
.btn-whatsapp:hover { background: #1c8e4c; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,253,252,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h-mobile);
}
@media (min-width: 1025px) { .site-header { height: var(--header-h); } }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
@media (min-width: 1025px) { .logo img { height: 36px; } }
.logo-text { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.logo-text span { color: var(--green); }

.main-nav { display: none; }
@media (min-width: 1025px) {
  .main-nav { display: block; flex: 1 1 auto; min-width: 0; }
  .main-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
  .main-nav li { margin: 0; padding: 0; }
  .main-nav a { font-weight: 600; font-size: .96rem; color: var(--ink); padding: 8px 0; position: relative; }
  .main-nav a:hover { color: var(--teal-dark); }
  .main-nav a.is-active { color: var(--navy); }
  .main-nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); border-radius: 2px;
  }
}
.header-cta { display: none; }
@media (min-width: 1025px) { .header-cta { display: block; } }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); flex-shrink: 0;
}
@media (min-width: 1025px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy); }

.mobile-menu {
  position: fixed; inset: var(--header-h-mobile) 0 0 0; background: var(--white);
  z-index: 99; transform: translateX(100%); transition: transform .28s ease;
  overflow-y: auto; padding: 8px 20px 32px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 15px 4px; font-weight: 700; font-size: 1.05rem;
  color: var(--navy); border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { padding: 40px 0 32px; overflow: hidden; }
@media (min-width: 1025px) { .hero { padding: 72px 0; } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1025px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy .eyebrow { display: block; }
.hero h1 { margin-bottom: .4em; }
.hero-copy p { font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
@media (min-width: 601px) { .hero-media img { aspect-ratio: 1/1; } }
@media (min-width: 1025px) { .hero-media img { aspect-ratio: 4/3; } }
.hero-media-tag {
  position: absolute; right: 16px; bottom: -14px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 12px 16px;
  display: none; align-items: center; gap: 10px; max-width: 220px;
}
@media (min-width: 601px) { .hero-media-tag { display: flex; } }
.hero-media-tag svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.hero-media-tag span { font-size: .85rem; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* Trust bar */
.trust-bar { padding: 22px 0 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 601px) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.trust-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 14px; display: flex; align-items: center; gap: 10px;
}
.trust-card svg { width: 26px; height: 26px; color: var(--teal-dark); flex-shrink: 0; }
.trust-card span { font-weight: 700; font-size: .84rem; color: var(--navy); line-height: 1.25; }
@media (min-width: 601px) { .trust-card span { font-size: .88rem; } }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--teal-dark); font-weight: 600; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #B7C3CB; }

/* Page hero (interior pages) */
.page-hero { padding: 28px 0 40px; }
.page-hero .eyebrow { display: block; }
.page-hero p { font-size: 1.02rem; }

/* Cards grid — "¿Qué necesitas limpiar?" */
.need-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 601px) { .need-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1025px) { .need-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.need-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.need-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.need-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.need-card-img img { width: 100%; height: 100%; object-fit: cover; }
.need-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.need-card-body .ic { width: 22px; height: 22px; color: var(--teal-dark); margin-bottom: 4px; }
.need-card-body h3 { font-size: 1rem; margin-bottom: 2px; }
.need-card-body p { font-size: .86rem; margin-bottom: 8px; }
.need-card-arrow { margin-top: auto; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-dark); font-size: .85rem; }
.need-card-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.need-card:hover .need-card-arrow svg { transform: translateX(3px); }

/* Feature list (Por qué ImpeHogar) */
.feature-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item { display: flex; gap: 14px; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--teal-dark); }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: .92rem; }

/* Steps (Cómo funciona) */
.steps-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .steps-list { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 18px; position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; margin-bottom: 12px;
}
.step-card h3 { font-size: .98rem; margin-bottom: 4px; }
.step-card p { font-size: .86rem; margin-bottom: 0; }

/* Service type cards (estándar/profunda/recurrente) */
.type-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
.type-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.type-card .ic { width: 30px; height: 30px; color: var(--green); margin-bottom: 14px; }
.type-card h3 { margin-bottom: 8px; }
.type-card p { font-size: .92rem; }
.type-card ul { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.type-card li { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-soft); align-items: flex-start; }
.type-card li svg { width: 16px; height: 16px; color: var(--green-dark); flex-shrink: 0; margin-top: 3px; }

/* Before / After */
.ba-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.ba-scroll::-webkit-scrollbar { height: 6px; }
.ba-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.ba-card { flex: 0 0 260px; scroll-snap-align: start; }
@media (min-width: 768px) { .ba-card { flex-basis: 300px; } }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ba-images figure { position: relative; margin: 0; aspect-ratio: 3/4; overflow: hidden; }
.ba-images img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .02em;
  color: var(--white); padding: 3px 9px; border-radius: 999px;
}
.ba-tag.before { background: #C24545; }
.ba-tag.after { background: var(--green); }
.ba-card h3 { font-size: .92rem; margin: 10px 2px 0; }

/* Emotional / CTA banner */
.banner {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 40px 28px;
}
@media (min-width: 1025px) { .banner { padding: 56px 48px; } }
.banner h2 { color: var(--white); }
.banner p { color: #C9D6E0; }
.banner-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1025px) { .banner-grid { grid-template-columns: 1.1fr .9fr; } }
.banner .btn-primary { background: var(--green); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin-left: auto; margin-right: auto; width: 100%; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: none; border: none; text-align: left; font-weight: 700; color: var(--navy); font-size: .96rem;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; color: var(--teal-dark); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 18px 16px; }
.faq-a-inner p { font-size: .92rem; margin-bottom: 0; }
.faq-item.is-open .faq-a { max-height: 400px; }


/* Service detail check lists */
.service-check-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.service-check-list li { display:flex; align-items:flex-start; gap:9px; color:var(--ink-soft); }
.service-check-list li svg { width:17px !important; height:17px !important; min-width:17px; max-width:17px; flex:0 0 17px; margin-top:2px; color:var(--green-dark); }

/* FAQ alignment */
.faq-list + .faq-home-action { text-align:center; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .86rem; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .78rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .95rem;
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,154,167,.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip span {
  display: inline-flex; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
}
.radio-chip input:checked + span { border-color: var(--green); background: var(--bg-mint); color: var(--green-dark); }
.radio-chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); }
.consent input { margin-top: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-mint); border-radius: 12px; padding: 12px 14px; font-size: .82rem; color: var(--navy); }
.form-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-dark); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Simple content pages (legal, about) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.05rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: .96rem; }
.prose li { margin-bottom: .4em; }
.prose ol, .prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose ol > li { list-style: decimal; }
.prose ul > li { list-style: disc; }
.update-note { font-size: .82rem; color: var(--ink-soft); background: var(--bg-soft); display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 24px; }

/* Value cards (Quiénes somos) */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.value-card svg { width: 22px; height: 22px; color: var(--green-dark); margin-bottom: 8px; }
.value-card h3 { font-size: .92rem; margin-bottom: 2px; }
.value-card p { font-size: .8rem; margin: 0; }

/* Contact page */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1025px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; }
.contact-row svg { width: 22px; height: 22px; color: var(--teal-dark); flex-shrink: 0; }
.contact-row h3 { font-size: .92rem; margin-bottom: 2px; }
.contact-row p { font-size: .88rem; margin: 0; }
.contact-empty { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 16px; font-size: .88rem; color: var(--ink-soft); }

/* Final CTA */
.cta-final { text-align: center; padding: 48px 0; }
.cta-final .btn { margin: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D6E0; padding: 52px 0 24px; margin-top: 20px; }
.footer-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1025px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: #9FB3C4; font-size: .88rem; margin-top: 10px; max-width: 30ch; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h3 { color: var(--white); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .88rem; color: #B7C6D3; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 22px; font-size: .8rem; color: #8FA3B5; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #21A65A; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { background: #1c8e4c; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; max-width: 520px; margin: 0 auto;
  display: none; gap: 14px; flex-direction: column;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: .84rem; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 16px; font-size: .86rem; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 10px; top: -60px; background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 300; transition: top .15s ease;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pill { display: inline-block; background: var(--bg-mint); color: var(--teal-dark); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* 404 */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(3rem, 12vw, 6rem); color: var(--teal); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* Refinamientos responsive ImpeHogar */
@media (min-width: 1025px) {
  .header-inner { gap: 24px; }
  .header-cta { flex-shrink: 0; box-shadow: 0 8px 22px rgba(10,166,119,.16); }
  .section-head.faq-centered { text-align: center; margin-left: auto; margin-right: auto; }
  .faq-home-centered { margin-left: auto; margin-right: auto; }
  .faq-home-action { text-align: center; }
}
@media (max-width: 767px) {
  .page-hero { text-align: center; padding-left: 24px; padding-right: 24px; }
  .page-hero .lead { margin-left: auto; margin-right: auto; }
  .form-card { margin-left: 4px !important; margin-right: 4px !important; }
  .form-actions .btn { width: 100%; justify-content: center; }
}
.btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(15,42,74,.12); }
.need-card .feature-icon, .feature-icon { transition: transform .2s ease; }
.need-card:hover .feature-icon, .feature-item:hover .feature-icon { transform: translateY(-2px) scale(1.04); }

/* V2 — desktop navigation hard guard */
@media (min-width: 1025px) {
  .site-header .header-inner { display:flex !important; align-items:center !important; justify-content:space-between !important; }
  .site-header .main-nav { display:block !important; flex:1 1 auto !important; }
  .site-header .main-nav > ul { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:center !important; flex-wrap:nowrap !important; gap:clamp(14px,1.5vw,26px) !important; margin:0 !important; padding:0 !important; }
  .site-header .main-nav > ul > li { display:block !important; margin:0 !important; padding:0 !important; }
  .site-header .main-nav > ul > li > a { display:inline-flex !important; align-items:center !important; white-space:nowrap !important; }
  .site-header .nav-toggle { display:none !important; }
  .site-header .header-cta { display:block !important; }
}

/* V4 — refinamientos de alineación */
.contact-hero-centered {
  text-align:center;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.contact-hero-centered .lead {
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.footer-contact-mini {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:12px;
}
.footer-contact-mini a {
  color:#B7C6D3;
  font-size:.86rem;
  width:max-content;
  max-width:100%;
}
.footer-contact-mini a:hover { color:#fff; }


/* V5 — correcciones finales de simetría solicitadas */
.faq-page-hero .lead {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.form-actions-centered {
  justify-content: center;
}
.page-hero-aligned {
  box-sizing: border-box;
}
@media (min-width: 1025px) {
  .page-hero-aligned {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 639px) {
  .form-actions-centered .btn {
    width: 100%;
  }
}

/* V6 — correcciones visibles de alineación + cache bust */
/* FAQ: subtítulo exactamente centrado bajo el título */
.faq-page-hero { text-align: center !important; }
.faq-page-hero .lead {
  display: block !important;
  width: 100% !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Contacto: CTA final realmente centrado */
.form-actions.form-actions-centered {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
}
.form-actions.form-actions-centered .btn {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cabeceras internas: alinear su inicio con el contenido inmediatamente inferior */
@media (min-width: 1025px) {
  .page-hero.container.page-hero-aligned {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}


/* V7 — Trabaja con nosotros: cabecera simétrica con el formulario */
.team-hero-aligned {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .team-hero-aligned {
    max-width: none;
  }
}
