/* =========================================================
   Soluciones en Calentadores — Design System
   Tono: profesional · seguro · certificado
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1F4E8C;
  --blue-soft: #E8F0FA;
  --orange: #F26B1D;
  --orange-2: #D9560F;
  --orange-soft: #FFF1E8;
  --amber: #FFB020;
  --green: #25D366;
  --green-2: #1DA851;
  --red: #D64545;
  --red-soft: #FDECEC;

  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --text: #16202B;
  --muted: #5A6675;
  --line: #E3E8EF;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .08);
  --shadow: 0 8px 24px rgba(11, 37, 69, .10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, .18);

  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.section-head--center .eyebrow::before { display: none; }
.lead { font-size: 1.15rem; color: var(--muted); }
.icon { display: inline-block; vertical-align: -.2em; width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap; line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 107, 29, .35); }
.btn--primary:hover { background: var(--orange-2); }
.btn--whatsapp { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .30); }
.btn--whatsapp:hover { background: var(--green-2); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { background: var(--blue-soft); color: var(--navy); }
.btn--ghost:hover { background: #d9e6f7; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.08rem; }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; }
.topbar__left { display: flex; align-items: center; gap: .5rem; }
.topbar__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6);} 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.topbar__right { display: flex; gap: 1.25rem; }
@media (max-width: 720px) { .topbar__right { display: none; } .topbar { font-size: .8rem; } .topbar .container { justify-content: center; text-align: center; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; color: var(--navy); }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  background: var(--navy);
  -webkit-mask: url("../img/isotipo-soluciones-en-calentadores-480w.png") center/contain no-repeat;
  mask: url("../img/isotipo-soluciones-en-calentadores-480w.png") center/contain no-repeat;
}
.brand:hover .brand__mark { background: var(--orange); }
.brand--footer { display: block; }
.brand__lockup { height: 54px; width: auto; margin-bottom: 1rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__tag { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--navy); font-weight: 700; padding: .55rem .85rem; border-radius: 999px; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); text-decoration: none; }
.header__cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; border-radius: 10px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
@media (max-width: 1024px) {
  .nav a { padding: .5rem .65rem; font-size: .92rem; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 1rem 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .75rem; border-radius: 10px; font-size: 1.02rem; }
  .header__cta .btn--whatsapp { display: none; }
  .brand__tag { display: none; }
}
@media (max-width: 480px) { .header__cta .btn--primary span { display: none; } .header__cta .btn--primary { padding: .75rem .9rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(242,107,29,.35), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(31,78,140,.55), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #0F2E5A 60%, #143B73 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7.5rem); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 56ch; margin-bottom: 1.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-weight: 700; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero__badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges .icon { color: var(--amber); }
.hero__emergency {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem;
  padding: .45rem .9rem .45rem .55rem; border-radius: 999px; font-weight: 800; font-size: .88rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.hero__emergency .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); }
.hero__emergency .dot .icon { width: 13px; height: 13px; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Lead form card */
.lead-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem;
}
.lead-card__head { margin-bottom: 1rem; }
.lead-card__head h2, .lead-card__head h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.lead-card__head p { color: var(--muted); font-size: .95rem; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,78,140,.14); }
.field textarea { min-height: 88px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6675' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; }
.form-success { display: none; background: #EAF9EF; border: 1px solid #BFE9CC; color: #16613A; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-top: .8rem; }
.form-success.is-visible { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 2; margin-top: -3.25rem; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.trust__item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.trust__icon .icon { width: 24px; height: 24px; }
.trust__item strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.2; }
.trust__item span { font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust__item:last-child { border-bottom: 0; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 1.1rem; }
.card__icon--orange { background: var(--orange-soft); color: var(--orange); }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card h3 a { color: inherit; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .93rem; color: var(--text); }
.card ul li { display: flex; gap: .5rem; align-items: flex-start; padding: .22rem 0; }
.card ul li .icon { color: var(--green-2); margin-top: .2em; width: 1.05em; height: 1.05em; stroke-width: 3; }
.card__link { margin-top: auto; font-weight: 800; color: var(--orange); display: inline-flex; gap: .35rem; align-items: center; }
.card__link:hover { text-decoration: none; gap: .6rem; }
.card--feature { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.card--feature h3, .card--feature p { color: #fff; }
.card--feature p { color: rgba(255,255,255,.8); }
.card--feature .card__icon { background: rgba(255,255,255,.12); color: var(--amber); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); }
.step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: 1.05rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split (about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--green-2); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; flex: none; margin-top: .15em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { background: var(--blue-soft); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1; margin-bottom: .25rem; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* Photo placeholder (reemplazar por fotos reales) */
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: #E8EDF4; display: grid; place-items: center; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.photo picture, .photo picture img { width: 100%; height: 100%; }
.photo img { object-fit: cover; }
.photo--contain { background: #fff; }
.photo--contain img { object-fit: contain; padding: 1rem; }
.photo--ph { background: linear-gradient(145deg, #dfe8f4, #c7d6ea); }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--sq { aspect-ratio: 1 / 1; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__ph { text-align: center; padding: 1rem 1rem 3.5rem; font-size: .8rem; color: var(--navy-2); font-weight: 700; opacity: .8; }
.photo__ph .icon { width: 42px; height: 42px; margin: 0 auto .5rem; stroke-width: 1.5; }
.photo__ph code { display: block; font-size: .7rem; font-weight: 500; opacity: .8; word-break: break-all; margin-top: .3rem; }
.photo__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .8rem; font-size: .86rem; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.5); background: linear-gradient(to top, rgba(8,26,49,.92) 0%, rgba(8,26,49,.72) 45%, transparent 100%); }
.photo--floating { box-shadow: var(--shadow-lg); }
.about-visual { position: relative; }
.about-visual .badge-float {
  position: absolute; right: -1rem; bottom: 1.5rem; background: #fff; border-radius: var(--radius); padding: .9rem 1.1rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; max-width: 260px;
}
.about-visual .badge-float .icon { width: 30px; height: 30px; color: var(--green-2); }
.about-visual .badge-float strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.about-visual .badge-float span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .about-visual .badge-float { right: .5rem; } }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: .75rem; }
.brand-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 800; color: var(--navy); font-size: .98rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-pill:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); text-decoration: none; transform: translateY(-2px); }
.brand-pill--muted { color: var(--muted); font-weight: 700; }
.brand-pill .icon { color: var(--orange); }

/* Zones */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.zone-box { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1.6rem; }
.zone-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; }
.zone-box h3 .icon { color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; padding: .45rem .8rem; border-radius: 999px; background: var(--bg); color: var(--navy); font-size: .9rem; font-weight: 700; border: 1px solid transparent; }
a.chip { background: var(--blue-soft); }
a.chip:hover { border-color: var(--blue); text-decoration: none; }
.chip--more { color: var(--muted); }
@media (max-width: 800px) { .zones { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.testimonial blockquote { margin: 0; font-size: 1rem; color: var(--text); }
.testimonial footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.testimonial footer strong { display: block; font-size: .95rem; color: var(--navy); }
.testimonial footer span { font-size: .82rem; color: var(--muted); }
.google-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--muted); font-size: .9rem; }
.google-badge .g { font-weight: 900; font-size: 1.05rem; background: linear-gradient(90deg,#4285F4,#EA4335,#FBBC05,#34A853); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 800; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; transition: transform .2s; color: var(--orange); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__a { padding: 1rem 1.25rem 1.25rem; color: var(--text); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #F7862F 100%); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.cta-band .btn--primary { background: #fff; color: var(--orange-2); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.cta-band .btn--primary:hover { background: #fff5ee; }
.cta-band .btn--outline { border-color: rgba(255,255,255,.7); }
.cta-band--navy { background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.cta-band--navy .btn--primary { background: var(--orange); color: #fff; }
.cta-band--navy .btn--primary:hover { background: var(--orange-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.info-row .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.info-row strong { display: block; color: var(--navy); }
.info-row a { font-weight: 700; }
.info-row span { color: var(--muted); font-size: .92rem; }
.map-ph { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 240px; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 4rem 0 0; margin-top: auto; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand__tag { color: rgba(255,255,255,.6); }
.footer__nap { font-size: .95rem; display: grid; gap: .45rem; }
.footer__nap div { display: flex; gap: .55rem; align-items: flex-start; }
.footer__nap .icon { color: var(--amber); margin-top: .2em; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile sticky bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--line); padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem; box-shadow: 0 -8px 24px rgba(11,37,69,.12);
}
.mobile-bar .btn { flex: 1; padding: .85rem .5rem; }
@media (max-width: 900px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), #143B73); color: #fff; padding: 2.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(242,107,29,.35), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 62ch; }
.breadcrumbs { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 700; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.25rem; }
.aside-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1.4rem; }
.aside-card--cta { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.aside-card--cta h3 { color: #fff; font-size: 1.15rem; }
.aside-card--cta p { color: rgba(255,255,255,.8); font-size: .95rem; }
.aside-card--cta .btn { width: 100%; margin-top: .5rem; }
.aside-card--cta .btn--outline { border-color: rgba(255,255,255,.4); }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.aside-card ul a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .6rem; border-radius: 8px; color: var(--navy); font-weight: 700; font-size: .93rem; }
.aside-card ul a:hover { background: var(--blue-soft); text-decoration: none; }
.aside-card ul a .icon { color: var(--orange); }
.aside .phone-big { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; margin: .25rem 0 .5rem; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #26313D; }
.prose ul li, .prose ol li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th, .prose td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 800; font-size: .88rem; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.callout { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; border: 1px solid; }
.callout .icon { flex: none; width: 24px; height: 24px; margin-top: .1em; }
.callout p { margin: 0; }
.callout--warn { background: var(--red-soft); border-color: #F5C2C2; color: #7A1F1F; }
.callout--info { background: var(--blue-soft); border-color: #C6D8F0; color: var(--navy); }
.callout--ok { background: #EAF9EF; border-color: #BFE9CC; color: #16613A; }
.check-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; margin: 1rem 0 1.5rem; }
.check-grid li { display: flex; gap: .55rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font-size: .95rem; }
.check-grid .icon { color: var(--green-2); stroke-width: 3; margin-top: .2em; flex: none; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }
.inline-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 2rem 0; }
.inline-cta p { margin: 0; font-weight: 700; color: var(--navy); flex: 1 1 260px; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* Blog */
.post-meta { color: rgba(255,255,255,.7); font-size: .9rem; }
.post-card { display: flex; flex-direction: column; }
.post-card .photo { border-radius: var(--radius); margin-bottom: 1rem; }
.post-card h3 { font-size: 1.15rem; }
.post-card time { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { text-align: center; padding: 6rem 0; }
.notfound h1 { font-size: 5rem; color: var(--orange); }

/* ---------- Fotos dentro de artículos ---------- */
.prose .photo { max-width: 420px; margin: 1.75rem auto; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.photo-row .photo { max-width: none; margin: 0; }
@media (max-width: 560px) { .photo-row { grid-template-columns: 1fr; } }
.gallery-cta { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.gallery-cta h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.gallery-cta p { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0 0 .5rem; }

/* =========================================================
   Correcciones de desbordamiento horizontal en móvil
   (los items de grid/flex no encogen por debajo de su
   contenido mínimo salvo que se fuerce min-width: 0)
   ========================================================= */
.hero .container > *, .layout > *, .split > *, .contact > *,
.grid > *, .zones > *, .steps > *, .form-grid > * { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.lead-card { max-width: 100%; }
.info-row > div, .footer__nap div { min-width: 0; }
.info-row a, .info-row span, .info-row strong,
.footer__nap a, .prose a, .card p a { overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; }

/* El botón flotante de Joinchat no debe taparse con la barra fija inferior */
@media (max-width: 900px) {
  .joinchat { bottom: 84px !important; }
}
