/* =====================================================================
   compresoresourense.com — hoja de estilos principal
   Colores del logotipo: gris pizarra #59666F y amarillo #FFD400.
   Si cambian, actualizar también app/config/config.php (brand.colors).
   ===================================================================== */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-var.woff") format("woff");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-italic-var.woff") format("woff");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  /* Marca (logotipo) */
  --slate: #59666F;
  --yellow: #FFD400;
  /* Derivados para texto y fondos con contraste AA */
  --graphite: #2B3338;
  --slate-dark: #46525A;
  --mist: #F2F4F5;
  --line: #D3D9DD;
  --white: #FFFFFF;
  --yellow-soft: #FFF6C2;
  --error: #B42318;
  --error-bg: #FDECEA;

  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--graphite); text-decoration-color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--graphite); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
code { font-size: 0.95em; background: var(--mist); padding: 0.05em 0.3em; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--graphite);
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }

/* Accesibilidad */
:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--graphite); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--slate-dark); }
.two-col { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.small { font-size: 0.95rem; color: var(--slate-dark); }
.lead { font-size: 1.22rem; line-height: 1.55; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  line-height: 1.1;
}
.btn-primary { background: var(--yellow); color: var(--graphite); border-color: var(--yellow); }
.btn-primary:hover { background: #F5CB00; border-color: var(--graphite); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--graphite); border-color: var(--graphite); }
.btn-secondary:hover { background: var(--graphite); color: var(--white); }
.btn-dark { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-outline-dark:hover { background: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1rem; }

/* ---------------- Cabecera ---------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; }
.brand .logo { width: 190px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.8rem;
  background: var(--white); border: 2px solid var(--graphite); border-radius: var(--radius);
  font: 700 1rem var(--font-display); color: var(--graphite); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.main-nav { display: none; }
.main-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.no-js .main-nav { display: block; position: static; width: 100%; padding-bottom: 1rem; }
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.nav-item > a {
  flex: 1; display: block; padding: 0.85rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  text-decoration: none; color: var(--graphite);
}
.nav-item > a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); }
.sub-toggle {
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--graphite); position: relative;
}
.sub-toggle::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -20%) rotate(-135deg); }
.submenu { list-style: none; margin: 0; padding: 0 0 0.75rem 0.75rem; width: 100%; display: none; }
.submenu.is-open, .no-js .submenu { display: block; }
.submenu a { display: block; padding: 0.45rem 0; text-decoration: none; font-size: 1rem; }
.submenu a:hover, .submenu a[aria-current] { text-decoration: underline; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.header-whatsapp {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.15rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--graphite); text-decoration: none;
}
.header-whatsapp:hover { text-decoration: underline; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--graphite); min-height: 44px;
}

@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; border: 0; max-height: none; overflow: visible; }
  .nav-list { display: flex; gap: 1.1rem; }
  .nav-item > a, .header-phone, .header-whatsapp, .nav-actions .btn { white-space: nowrap; }
  .nav-item { border: 0; flex-wrap: nowrap; }
  .nav-item > a { padding: 0.4rem 0; font-size: 1.08rem; }
  .sub-toggle { width: 28px; height: 36px; }
  .submenu {
    position: absolute; top: 100%; left: -1rem; width: 320px; padding: 0.75rem 1rem; background: var(--white);
    border: 1px solid var(--line); border-top: 3px solid var(--yellow); box-shadow: 0 12px 28px rgba(43, 51, 56, 0.12);
  }
  .nav-item.has-sub:hover .submenu { display: block; }
  .nav-actions { margin: 0; flex-wrap: nowrap; }
  .site-header { position: sticky; top: 0; }
}
@media (min-width: 1240px) and (max-width: 1399px) {
  .header-whatsapp > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-whatsapp svg { width: 24px; height: 24px; }
}

/* ---------------- Migas ---------------- */
.breadcrumbs { padding-top: 1rem; padding-bottom: 0.25rem; font-size: 0.95rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--slate); }
.breadcrumbs span[aria-current] { color: var(--slate-dark); }

/* ---------------- Hero portada ---------------- */
.hero {
  background:
    linear-gradient(var(--white), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 27px, #E3E8EB 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, #E3E8EB 27px 28px);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.hero h1 { max-width: 15ch; margin-bottom: 0.45em; }
.hero h1::after {
  content: ""; display: block; width: 7.5rem; height: 14px; margin-top: 0.45em;
  background:
    radial-gradient(circle at 5px 7px, var(--slate) 4px, transparent 4.5px),
    radial-gradient(circle at 24px 7px, var(--slate) 5px, transparent 5.5px),
    radial-gradient(circle at 46px 7px, var(--slate) 6px, transparent 6.5px),
    radial-gradient(circle at 70px 7px, var(--yellow) 6.5px, transparent 7px),
    radial-gradient(circle at 92px 7px, var(--yellow) 5px, transparent 5.5px),
    radial-gradient(circle at 110px 7px, var(--yellow) 3.5px, transparent 4px);
}
.hero .lead { max-width: 40rem; }
.hero-phone { font-size: 1.05rem; }
.hero-phone a { font-weight: 700; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; }

/* ---------------- Cabecera de página interior ---------------- */
.page-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.page-hero-text .lead + .lead { font-size: 1.1rem; }
.page-hero-figure { margin: 0; }
.page-hero-figure figcaption { font-size: 0.85rem; color: var(--slate-dark); margin-top: 0.4rem; }
.page-kicker { font-weight: 600; color: var(--slate-dark); margin-bottom: 0.5rem; }

/* ---------------- Índice de servicios ---------------- */
.service-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 760px) { .service-index { grid-template-columns: 1fr 1fr; } }
.section .two-col .service-index { grid-template-columns: 1fr; }
.service-index-item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.service-index-item img { width: 40px; height: 40px; margin-top: 0.15rem; }
.service-index-title { margin: 0 0 0.25rem; font-size: 1.3rem; }
.service-index-title a { text-decoration: none; }
.service-index-title a:hover { text-decoration: underline; }
.service-index-item p { margin: 0; color: var(--slate-dark); font-size: 1.02rem; }

/* ---------------- Listas ---------------- */
.check-list, .symptom-list, .data-list, .fact-list, .source-list { list-style: none; padding: 0; }
.check-list li, .symptom-list li, .data-list li, .fact-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.65rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.55rem; height: 0.9rem;
  border-right: 3px solid var(--slate); border-bottom: 3px solid var(--slate); transform: rotate(40deg);
}
.symptom-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 2px var(--graphite);
}
.data-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.7em; width: 0.8rem; height: 3px; background: var(--slate);
}
.fact-list li { padding-left: 1.25rem; border-left: 3px solid var(--yellow); margin-bottom: 1rem; }
.source-list li { margin-bottom: 0.5rem; font-size: 0.98rem; }
.inline-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* ---------------- Tablas técnicas ---------------- */
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; min-width: 560px; background: var(--white); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); }
.spec-table thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; background: var(--graphite); color: var(--white); }
.spec-table tbody th { font-weight: 650; width: 26%; }
.diagnosis tbody th { width: 24%; }
.diagnosis td:last-child { white-space: nowrap; font-weight: 600; }

/* Definiciones */
.def-list { margin: 0 0 1.25rem; }
.def-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 1rem; }
.def-list dd { margin: 0.2rem 0 0; }
.def-list.compact { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.25rem; }
.def-list.compact dt { font-size: 1rem; margin: 0; }
.def-list.compact dd { margin: 0; }
@media (max-width: 560px) { .def-list.compact { grid-template-columns: 1fr; gap: 0.1rem; } .def-list.compact dd { margin-bottom: 0.6rem; } }

/* ---------------- Proceso (secuencia real) ---------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: paso; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.process li { counter-increment: paso; position: relative; padding-top: 3.4rem; }
.process li::before {
  content: counter(paso); position: absolute; top: 0; left: 0;
  font: 700 2.4rem/1 var(--font-display); color: var(--graphite);
}
.process li::after {
  content: ""; position: absolute; top: 1.1rem; left: 2.6rem; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--yellow) 0 2.2rem, var(--line) 2.2rem);
}
.process h3 { margin-bottom: 0.35rem; }
.process p { color: var(--slate-dark); margin: 0; }

/* ---------------- Zonas y sectores ---------------- */
.zone-links { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.zone-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.zone-links a { font-weight: 650; }
.zone-links span { color: var(--slate-dark); font-size: 0.95rem; }
.sector-list dt { font-weight: 650; margin-top: 0.85rem; }
.sector-list dd { margin: 0.1rem 0 0; color: var(--slate-dark); font-size: 1.02rem; }
.zone-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 760px) { .zone-grid { grid-template-columns: 1fr 1fr; } }
.zone-grid li { padding: 1.25rem 0; border-top: 3px solid var(--graphite); }
.zone-grid h3 { margin-bottom: 0.2rem; }
.zone-grid h3 a { text-decoration: none; }
.zone-grid h3 a:hover { text-decoration: underline; }
.zone-muni { font-weight: 600; color: var(--slate-dark); margin-bottom: 0.4rem; }
.muni { padding: 1rem 0; border-top: 1px solid var(--line); }
.muni h3 { margin-bottom: 0.3rem; }
.muni p { margin-bottom: 0.4rem; }

/* ---------------- Prosa (blog, secciones técnicas) ---------------- */
.prose-wrap { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.prose { max-width: var(--narrow); }
.prose h2 { margin-top: 2.2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li, .prose ol li { margin-bottom: 0.45rem; }
.prose .table-scroll { margin: 1.5rem 0; }
.note { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 0.9rem 1.1rem; }

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 0.6rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: translateY(-70%) rotate(45deg);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-answer { padding: 0 0 1rem; max-width: 46rem; }

/* ---------------- Formulario ---------------- */
.form-section {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(2.75rem, 7vw, 5rem) var(--gutter);
  display: grid; gap: 2rem;
}
@media (min-width: 960px) { .form-section { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.form-intro h2 { margin-bottom: 0.5rem; }
.form-phone { font-size: 1.15rem; }
.form-phone a { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.form-wa { color: var(--slate-dark); }
.form-wa a { font-weight: 650; color: var(--graphite); }
.btn svg { flex: 0 0 auto; }
.inquiry-form { background: var(--mist); padding: clamp(1.25rem, 3vw, 2rem); border-top: 4px solid var(--yellow); }
.form-note { font-size: 0.95rem; color: var(--slate-dark); }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.req { color: var(--error); }
.field-hint { font-size: 0.95rem; color: var(--slate-dark); margin: -0.1rem 0 0.4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.75rem; font: inherit; font-size: 1.05rem; color: var(--graphite);
  background: var(--white); border: 2px solid #8A969E; border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--graphite); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFFBFA; }
.field-error { color: var(--error); font-weight: 600; font-size: 0.98rem; margin: 0.3rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.7rem; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--graphite); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.privacy-basic { font-size: 0.95rem; margin: 0 0 1.25rem; }
.privacy-basic summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.privacy-basic summary::-webkit-details-marker { display: none; }
.privacy-basic summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.privacy-basic[open] summary::before { transform: rotate(45deg); }
.privacy-basic p { margin: 0.5rem 0 0; }
.btn-submit { width: 100%; }
@media (min-width: 640px) { .btn-submit { width: auto; min-width: 14rem; } }
.form-alert { padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-left: 4px solid; }
.form-alert-error { background: var(--error-bg); border-color: var(--error); }
.form-alert p { margin: 0 0 0.4rem; font-weight: 600; }
.form-alert ul { margin: 0; padding-left: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Banda de llamada a la acción ---------------- */
.cta-band { background: var(--yellow); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.cta-band p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.2; max-width: 34rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------- Contacto ---------------- */
.contact-channels { padding-bottom: 0; }
.channels { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .channels { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1000px) { .channels { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.channel-address { font-style: normal; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.channel { border-top: 3px solid var(--graphite); padding-top: 1rem; }
.channel h3 { margin-bottom: 0.4rem; }
.channel-big { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; text-decoration: none; }
.channel-mail { font-size: 1.25rem; word-break: break-all; }

/* ---------------- Blog ---------------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.post-card img { background: var(--mist); }
.post-card h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-meta { color: var(--slate-dark); font-size: 0.95rem; }
.post-header { padding-top: 1.25rem; }
.post-figure { margin: 1.5rem 0 2rem; background: var(--mist); }
.post-body { padding-bottom: 2rem; }
.post-aside, .post-more { padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); }
.post-aside .service-index { grid-template-columns: 1fr; }
.post-links { padding-left: 1.1rem; }
.post-links li { margin-bottom: 0.5rem; }

/* ---------------- Gracias / 404 ---------------- */
.thanks-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); margin-bottom: 1.25rem; position: relative;
}
.thanks-mark::after {
  content: ""; position: absolute; left: 23px; top: 14px; width: 16px; height: 28px;
  border-right: 5px solid var(--graphite); border-bottom: 5px solid var(--graphite); transform: rotate(40deg);
}
.notfound-code { font: 700 clamp(4rem, 14vw, 7rem)/1 var(--font-display); color: var(--slate); margin: 0 0 0.5rem; }

/* ---------------- Páginas legales ---------------- */
.legal h2 { font-size: 1.5rem; }

/* ---------------- Pie ---------------- */
.site-footer { background: var(--graphite); color: #E6EAEC; padding: 3rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration-color: #9AA6AE; }
.site-footer a:hover { text-decoration-color: var(--yellow); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr; } }
.footer-logo { background: var(--white); display: inline-block; padding: 0.6rem 0.8rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-logo .logo { width: 180px; }
.footer-contact a { font-weight: 650; }
.footer-address { font-size: 0.98rem; }
.footer-address strong { color: var(--white); }
.footer-title { color: var(--white); font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-legal { border-top: 1px solid #4A555C; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.9rem; color: #C9D0D5; }
.footer-legal p { margin-bottom: 0.4rem; }

/* ---------------- Barra móvil persistente ---------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--white); border-top: 1px solid var(--line); padding: 0.5rem; gap: 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; border-radius: var(--radius);
}
.mobile-bar-call { background: var(--graphite); color: var(--white); }
.mobile-bar-wa { background: var(--white); color: var(--graphite); border: 2px solid var(--graphite); }
.mobile-bar-quote { background: var(--yellow); color: var(--graphite); }
@media (max-width: 360px) { .mobile-bar a { font-size: 1rem; gap: 0.25rem; } .mobile-bar svg { display: none; } }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 1240px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------- Movimiento reducido ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------- Impresión ---------------- */
@media print {
  .site-header, .mobile-bar, .form-section, .cta-band, .site-footer nav { display: none !important; }
  body { padding: 0; font-size: 11pt; }
}
