/* ═══════════════════════════════════════════════════════════════
   Albañil en Murcia — style.css
   Identidad "Maestro de Obra": pizarra + ámbar de obra + hormigón.
   Tipografía industrial (Barlow Condensed) sobre humanista (Inter).
   ═══════════════════════════════════════════════════════════════ */


/* ── 0. FUENTES AUTOALOJADAS (latin) ─────────────────────────── */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: optional; src: url(/fonts/barlow-condensed-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/fonts/inter-latin-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ── 1. VARIABLES + RESET ─────────────────────────────────────── */
:root {
  --color-primary:        #1F2A38;
  --color-primary-dark:   #151D27;
  --color-secondary:      #E4761B;
  --color-secondary-dark: #C4610F;
  --color-accent:         #F5B23E;
  /* CTA: naranja reforzado (más saturado que el ámbar decorativo) */
  --color-cta:            #E2560B;
  --color-cta-dark:       #B8420A;
  --shadow-cta:           0 4px 14px rgba(226,86,11,.34);
  --shadow-cta-hover:     0 8px 26px rgba(226,86,11,.46);
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #F3F1EC;
  --color-bg-steel:       #EAE7DF;
  --color-text:           #1A1F26;
  --color-muted:          #586372;
  --color-border:         #E3DFD6;
  --font-heading:         'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:            'Inter', system-ui, -apple-system, sans-serif;
  --container:            1200px;
  --radius:               4px;
  --radius-lg:            8px;
  --shadow:               0 2px 14px rgba(31,42,56,.09);
  --shadow-lg:            0 10px 34px rgba(31,42,56,.16);
  --transition:           .22s ease;
  --header-h:             72px;
  /* Trama blueprint reutilizable */
  --blueprint: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
               linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
p { color: var(--color-text); }
strong { font-weight: 600; }
address { font-style: normal; }
::selection { background: var(--color-accent); color: var(--color-primary-dark); }


/* ── 2. TIPOGRAFÍA ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .002em;
  color: var(--color-primary);
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.15; }
h4 { font-size: 1.2rem; }


/* ── 3. UTILIDADES ────────────────────────────────────────────── */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: 5rem 0; }
.section--alt   { background: var(--color-bg-alt); }
.section--dark  { background: var(--color-primary); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.section-lazy   { /* content-visibility injected via lazy-load.js */ }

.section-content {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-content h2 { margin-bottom: .8rem; position: relative; display: block; }
.section-content h2::after {
  content: '';
  display: block;
  width: 64px; height: 4px;
  margin: 1rem auto 0;
  background: var(--color-secondary);
  border-radius: 2px;
}
.section-content > p { color: var(--color-muted); font-size: 1.08rem; line-height: 1.7; }

/* Kicker / etiqueta de sección con regla de obra */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .7rem;
}
.section-label::before {
  content: '';
  width: 28px; height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
}
.section-content .section-label { justify-content: center; }
.section--dark .section-label,
.section--cta-final .section-label,
.section--urgencias .section-label { color: var(--color-accent); }
.section--dark .section-label::before,
.section--cta-final .section-label::before,
.section--urgencias .section-label::before { background: var(--color-accent); }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }


/* ── 4. SKIP LINK + FOCUS ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 600;
  font-family: var(--font-body);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}


/* ── 5. HEADER TOPBAR ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: .8rem;
  padding: .42rem 0;
  border-bottom: 2px solid var(--color-secondary);
}
.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.header__topbar-left,
.header__topbar-right { display: flex; align-items: center; gap: .9rem; }

.topbar__link,
.topbar__info {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
}
.topbar__link:hover { color: var(--color-accent); }
.topbar__link svg,
.topbar__info svg { color: var(--color-accent); }

.topbar__social {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  width: 26px; height: 26px;
  transition: color var(--transition);
}
.topbar__social:hover { color: #fff; }

.topbar__cta {
  display: flex; align-items: center; gap: .35rem;
  background: var(--color-secondary);
  color: #fff;
  padding: .28rem .9rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  transition: background var(--transition);
}
.topbar__cta:hover { background: var(--color-secondary-dark); }

@media (max-width: 599px) {
  .header__topbar-left .topbar__info { display: none; }
}


/* ── 6. HEADER MAIN + LOGO ────────────────────────────────────── */
.header__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
  min-height: var(--header-h);
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-svg { display: block; }

.header__cta {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }


/* ── 7. NAV DESKTOP + DROPDOWN ────────────────────────────────── */
#nav-menu { display: none; flex: 1; margin-left: 1.25rem; }

@media (min-width: 1024px) {
  #nav-menu { display: flex !important; }

  #nav-menu > ul {
    display: flex; align-items: center; gap: .15rem;
    list-style: none; flex-wrap: nowrap; justify-content: flex-end;
  }

  #nav-menu a,
  #nav-menu > ul > li > button {
    position: relative;
    display: flex; align-items: center; gap: .3rem;
    padding: .55rem .72rem;
    font-size: .94rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1;
  }
  /* Underline indicator on hover / current */
  #nav-menu > ul > li > a::after,
  #nav-menu > ul > li > button::after {
    content: '';
    position: absolute; left: .72rem; right: .72rem; bottom: .28rem;
    height: 2px; border-radius: 2px;
    background: var(--color-secondary);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
  }
  #nav-menu > ul > li > a:hover::after,
  #nav-menu > ul > li:hover > button::after,
  #nav-menu > ul > li:focus-within > button::after,
  #nav-menu > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

  #nav-menu a:hover,
  #nav-menu > ul > li > button:hover,
  #nav-menu a[aria-current="page"] {
    color: var(--color-secondary);
  }

  /* Inline chevron SVG rotates on open (no duplicate CSS arrow) */
  .has-dropdown > button svg { transition: transform var(--transition); }
  .has-dropdown:hover > button svg,
  .has-dropdown:focus-within > button svg { transform: rotate(180deg); }

  /* Dropdown panel */
  .has-dropdown { position: relative; }
  .has-dropdown > ul {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    list-style: none;
    padding: .5rem 0;
    z-index: 200;
  }
  .has-dropdown:hover > ul,
  .has-dropdown:focus-within > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .has-dropdown > ul li a {
    display: block;
    padding: .55rem 1.15rem;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 0;
    color: var(--color-text);
    white-space: nowrap;
    border-left: 2px solid transparent;
  }
  .has-dropdown > ul li a:hover {
    color: var(--color-secondary);
    background: var(--color-bg-alt);
    border-left-color: var(--color-secondary);
  }
}


/* ── 8. NAV MOBILE ────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--color-primary);
  margin-left: auto;
  border-radius: var(--radius);
  transition: background var(--transition);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--color-bg-alt); }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  #nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    z-index: 900;
    overflow-y: auto;
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transform: translateX(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: block;
    border-left: 3px solid var(--color-secondary);
  }
  #nav-menu.is-open { transform: translateX(0); }

  body.menu-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 790;
  }

  #nav-menu > ul {
    display: flex; flex-direction: column; gap: .2rem; list-style: none;
  }

  #nav-menu a,
  #nav-menu button {
    display: flex; align-items: center;
    padding: .85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
  }
  #nav-menu a:hover,
  #nav-menu button:hover { background: var(--color-bg-alt); }
  #nav-menu a[aria-current="page"] { color: var(--color-secondary); font-weight: 700; }

  .has-dropdown > ul { display: none; padding-left: .75rem; list-style: none; }
  .has-dropdown.submenu-open > ul { display: block; }
  .has-dropdown > ul li a {
    font-size: .9rem; font-weight: 400; padding: .6rem 1rem; color: var(--color-muted);
  }
}


/* ── 9. HERO ──────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(228,118,27,.22) 0%, transparent 45%),
    linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
/* Trama blueprint + banda de acento diagonal */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--blueprint);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg,
    var(--color-accent) 0 22px, var(--color-primary-dark) 22px 44px);
  opacity: .9;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,178,62,.12);
  border: 1px solid rgba(245,178,62,.4);
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: .38rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero h1::after {
  content: '';
  display: block;
  width: 84px; height: 5px;
  margin-top: 1.1rem;
  background: var(--color-secondary);
  border-radius: 2px;
}
.hero__subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 52ch;
}
.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.hero__trust {
  display: flex; align-items: center; gap: 2.25rem; flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero__trust-item {
  display: flex; flex-direction: column;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.hero__trust-item strong {
  font-size: 1.7rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/7; }
}
@media (max-width: 599px) {
  .hero { padding: 3.75rem 0 3.25rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  .hero__trust { gap: 1.25rem 1.75rem; }
}


/* ── 10. BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.75rem;
  border-radius: var(--radius);
  font-size: .98rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  min-height: 48px;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,42,56,.22); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
  font-weight: 700;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  box-shadow: var(--shadow-cta-hover);
}
.btn--primary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.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--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline-dark:hover { background: var(--color-primary); color: #fff; }

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; }

.btn--sm  { padding: .5rem 1.1rem; font-size: .87rem; min-height: 40px; }
.btn--lg  { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn--full { width: 100%; }


/* ── 11. GRID DE SERVICIOS (CLUSTER) ─────────────────────────── */
.grid-3-center {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* 5 items: centra el 5º */
.grid-3-center > *:last-child:nth-child(3n + 2) { grid-column: 2 / span 1; }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon-wrap {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.service-card:hover .service-card__icon-wrap { background: var(--color-secondary); color: #fff; }

/* Variante con imagen */
.service-card--img .service-card__media {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
}
.service-card--img .service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.service-card--img:hover .service-card__media img { transform: scale(1.05); }

.service-card__body {
  padding: 1.4rem; flex: 1;
  display: flex; flex-direction: column;
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 700; line-height: 1.1;
  color: var(--color-primary); margin-bottom: .5rem;
}
.service-card__title a { transition: color var(--transition); }
.service-card__title a:hover { color: var(--color-secondary); }
.service-card__body > p {
  font-size: .9rem; color: var(--color-muted);
  margin-bottom: .7rem; line-height: 1.55;
}

.service-card__perks { list-style: none; margin: 0; display: grid; gap: .35rem; flex: 1; }
.service-card__perks li {
  position: relative; padding-left: 1.5rem;
  font-size: .85rem; line-height: 1.4; color: var(--color-muted);
}
.service-card__perks li::before {
  content: '';
  position: absolute; left: 0; top: .3em;
  width: .6rem; height: .32rem;
  border-left: 2.2px solid var(--color-secondary);
  border-bottom: 2.2px solid var(--color-secondary);
  transform: rotate(-45deg);
}

.service-card__link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1.15rem;
  font-size: .9rem; font-weight: 700;
  color: var(--color-secondary); text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.service-card__link:hover { color: var(--color-secondary-dark); gap: .6rem; }

@media (max-width: 900px) {
  .grid-3-center { grid-template-columns: repeat(2, 1fr); }
  .grid-3-center > *:last-child:nth-child(3n + 2) { grid-column: auto; }
}
@media (max-width: 540px) { .grid-3-center { grid-template-columns: 1fr; } }


/* ── 11b. SPLIT TEXTO + IMAGEN (dinamismo) ────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.75rem;
}
.split--reverse .split__media { order: 2; }
.split__body .section-label { margin-bottom: .9rem; }
.split__body h2 { margin-bottom: 1.1rem; }
.split__body > p { color: var(--color-muted); font-size: 1.03rem; margin-bottom: 1.5rem; }

.split__list { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
.split__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
}
.split__list-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(228,118,27,.1);
  border: 1px solid rgba(228,118,27,.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary);
}
.split__list h3 { font-size: 1.12rem; margin-bottom: .15rem; }
.split__list p { font-size: .9rem; color: var(--color-muted); line-height: 1.55; }

/* Marco arquitectónico con esquina de acento */
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
}
.split__media::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 78px; height: 78px;
  border-top: 4px solid var(--color-secondary);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-lg) 0 0 0;
}
.split--reverse .split__media::before {
  left: auto; right: -14px;
  border-left: none; border-right: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-lg) 0 0;
}
.split__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.split__media-tag {
  position: absolute; z-index: 2;
  bottom: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .04em;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__media-tag svg { color: var(--color-accent); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.75rem; }
  .split--reverse .split__media { order: -1; }
  .split__media::before { width: 56px; height: 56px; }
}


/* ── 12. DIFERENCIADORES / FEATURES ──────────────────────────── */
.features-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem;
}
.features-grid > .feature-card { flex: 1 1 260px; max-width: 340px; }
.feature-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-secondary);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 54px; height: 54px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent); flex-shrink: 0;
}
.feature-card__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.feature-card__text  { font-size: .92rem; color: var(--color-muted); line-height: 1.6; }



/* ── 13. PROCESO EN PASOS ─────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  counter-reset: step;
}
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.35rem 1.6rem;
  position: relative; text-align: center;
  box-shadow: var(--shadow);
}
.section--alt .step-card { background: #fff; }

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: var(--color-primary);
  color: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.section--alt .step-card::before { border-color: var(--color-bg-alt); }
.step-card h3 { font-size: 1.22rem; margin-top: .5rem; margin-bottom: .5rem; }
.step-card p  { font-size: .9rem; color: var(--color-muted); }


/* ── 14. SECCIÓN BANNER IMAGEN ────────────────────────────────── */
.section-banner { padding: 0; }
.section-banner img,
.section-banner picture img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}


/* ── 15. GALERÍA DE TRABAJOS ──────────────────────────────────── */
.grid-trabajos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.trabajo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; margin: 0; border: 1px solid var(--color-border); }
.trabajo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .35s ease; }
.trabajo-card:hover img { transform: scale(1.05); }
.trabajo-card figcaption { padding: .8rem 1rem; font-size: .88rem; color: var(--color-muted); line-height: 1.4; border-top: 2px solid var(--color-secondary); }

@media (max-width: 900px) { .grid-trabajos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-trabajos { grid-template-columns: 1fr; } }



/* ── 17. TESTIMONIOS ──────────────────────────────────────────── */
.section--testimonios { text-align: center; }

.google-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: .45rem 1.1rem;
  font-size: .84rem; color: #374151;
  margin-top: .85rem;
  box-shadow: var(--shadow);
  font-family: var(--font-body);
}
.google-badge__stars {
  display: flex; align-items: center; gap: .2rem;
  border-left: 1px solid var(--color-border); padding-left: .5rem;
}
.google-badge__stars strong { font-size: .85rem; color: var(--color-text); }

.grid-testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; text-align: left;
}
.testimonio-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonio-card::before {
  content: '\201C';
  position: absolute; top: .35rem; right: 1.1rem;
  font-family: var(--font-heading);
  font-size: 3.5rem; line-height: 1;
  color: rgba(228,118,27,.18);
}
.testimonio-card__stars { display: flex; gap: .15rem; color: var(--color-accent); }
.testimonio-card__text p { font-size: .95rem; line-height: 1.68; color: #475569; }
.testimonio-card__author { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; padding-top: .4rem; border-top: 1px solid var(--color-border); }
.testimonio-card__author strong { font-size: .92rem; color: var(--color-text); }
.testimonio-card__author span  { font-size: .82rem; color: #94a3b8; }

@media (max-width: 900px) { .grid-testimonios { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-testimonios { grid-template-columns: 1fr; } }


/* ── 17b. SECCIÓN URGENCIAS ───────────────────────────────────── */
.section--urgencias {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(21,29,39,.18) 0%, transparent 50%),
    var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 4.25rem 0;
  position: relative;
  overflow: hidden;
}
.section--urgencias::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.section--urgencias > * { position: relative; }
.section--urgencias h2,
.section--urgencias h3 { color: #fff; }
.section--urgencias p  { color: rgba(255,255,255,.9); }


/* ── 18. ZONAS DE COBERTURA ───────────────────────────────────── */
.grid-zonas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}
.zona-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-secondary);
  padding: 1.15rem 1.3rem;
  text-align: left; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.zona-card:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.zona-card__name { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 1.15rem; display: block; margin-bottom: .1rem; transition: color var(--transition); }
.zona-card__dist { font-size: .8rem; color: var(--color-muted); transition: color var(--transition); }
.zona-card:hover .zona-card__name { color: #fff; }
.zona-card:hover .zona-card__dist { color: var(--color-accent); }


/* ── 19. FAQ ACCORDION ─────────────────────────────────────────── */
.faq-list {
  display: grid; gap: .75rem;
  max-width: 820px; margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.08rem; font-weight: 700; font-family: var(--font-heading);
  color: var(--color-primary); text-align: left;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question[aria-expanded="true"] { color: var(--color-secondary); }
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); }

.faq-answer {
  padding: 0 1.3rem;
  font-size: .95rem; color: var(--color-muted); line-height: 1.68;
}
.faq-answer:not([hidden]) { padding: .1rem 1.3rem 1.15rem; }


/* ── 20. MAPA ─────────────────────────────────────────────────── */
.section--mapa {
  background: var(--color-bg-steel);
  text-align: center;
  padding: 5rem 0 5.5rem;
}
.section--mapa .section-content h2 { color: var(--color-primary); }
.section--mapa .section-content h2::after { margin-inline: auto; }
.section--mapa .section-content p  { color: var(--color-muted); }
.section--mapa .section-content     { margin-bottom: 2.5rem; }

#map-placeholder {
  width: 100%; height: 420px;
  border-radius: var(--radius-lg);
  background: rgba(31,42,56,.05);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#map-placeholder iframe { border-radius: var(--radius-lg); width: 100%; height: 100%; display: block; }


/* ── 21. BLOG CARDS ───────────────────────────────────────────── */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card__img-wrap { overflow: hidden; display: block; }
.blog-card__img-wrap img {
  width: 100%; aspect-ratio: 5/3; object-fit: cover;
  display: block; transition: transform .35s ease;
}
.blog-card:hover .blog-card__img-wrap img { transform: scale(1.05); }
.blog-card__body { padding: 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-card__cat {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-secondary);
  font-family: var(--font-body);
}
.blog-card__body h3 { font-size: 1.28rem; line-height: 1.15; }
.blog-card__body h3 a { color: var(--color-primary); }
.blog-card__body h3 a:hover { color: var(--color-secondary); }
.blog-card__body > p { font-size: .9rem; color: var(--color-muted); flex: 1; }


/* ── 22. CTA FINAL ─────────────────────────────────────────────── */
.section--cta-final {
  background:
    radial-gradient(120% 130% at 15% 0%, rgba(228,118,27,.22) 0%, transparent 48%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; text-align: center; padding: 5.5rem 0;
  position: relative; overflow: hidden;
}
.section--cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--blueprint);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}
.section--cta-final h2 { color: #fff; margin-bottom: .85rem; position: relative; }
.section--cta-final p  { color: rgba(255,255,255,.84); font-size: 1.12rem; margin-bottom: 2.25rem; position: relative; max-width: 640px; margin-inline: auto; }
.cta-final__btns { display: flex; justify-content: center; gap: 1.1rem; flex-wrap: wrap; position: relative; }


/* ── 23. FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.72);
  padding: 4.5rem 0 0;
  border-top: 4px solid var(--color-secondary);
}
.footer p { color: rgba(255,255,255,.6); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer__brand .logo-svg text { fill: rgba(255,255,255,.92); }
.footer__desc {
  font-size: .89rem;
  color: rgba(255,255,255,.58);
  line-height: 1.68;
  margin: 1.1rem 0;
  max-width: 32ch;
}
.footer__brand address { margin-top: 1rem; }
.footer__nap { display: flex; flex-direction: column; gap: .6rem; }
.footer__nap-item {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .86rem; color: rgba(255,255,255,.62);
}
.footer__nap-item svg { flex-shrink: 0; margin-top: .12em; color: var(--color-accent); }
.footer__nap-item a { color: rgba(255,255,255,.62); }
.footer__nap-item a:hover { color: #fff; }

.footer__rrss { display: flex; gap: .75rem; margin-top: 1.1rem; }
.footer__rrss a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: rgba(255,255,255,.65);
  transition: background var(--transition), color var(--transition);
}
.footer__rrss a:hover { background: var(--color-secondary); color: #fff; }

.footer__col h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.15rem;
}
.footer__col h3 + ul + h3 { margin-top: 1.5rem; }
.footer__col ul { list-style: none; display: grid; gap: .6rem; }
.footer__col ul a { font-size: .89rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__col ul a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  font-size: .8rem; color: rgba(255,255,255,.38);
}
.footer__bottom a { color: rgba(255,255,255,.38); }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }
.footer__legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }


/* ── 24. WHATSAPP FLOAT + BARRA CTA MÓVIL ────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 80px; right: 1.25rem;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.28); }

.menu-float {
  position: fixed; text-decoration: none;
  bottom: 4.75rem; right: 1.25rem;
  width: 52px; height: 52px;
  background: var(--color-primary); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  z-index: 940; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.menu-float:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.menu-float svg { width: 22px; height: 22px; color: #fff; }
body.menu-open .menu-float { display: none; }
/* Si el flotante de WhatsApp está activo, el de menú se apila encima */
body.has-wa .menu-float { bottom: 9.25rem; }


@media (prefers-reduced-motion: reduce) {
  .menu-float, .menu-float:hover { transition: none; transform: none; }
}

.mobile-cta-bar {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 950;
}
.cta-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; font-size: .95rem; font-weight: 700; font-family: var(--font-body);
  text-decoration: none; min-height: 56px; cursor: pointer; border: none;
}
.cta-btn--phone { background: var(--color-primary); color: #fff; }
.cta-btn--wa    { background: #25D366; color: #fff; }

@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
  .whatsapp-float { bottom: 1.5rem; }
  .menu-float { bottom: 1.5rem; }
  body.has-wa .menu-float { bottom: 5.75rem; }
}


/* ── 25. FORMULARIOS ──────────────────────────────────────────── */
.form-grid       { display: grid; gap: 1.1rem; }
.form-grid--2    { grid-template-columns: 1fr 1fr; }
.form-group      { display: flex; flex-direction: column; gap: .4rem; }

.form-group label { font-size: .89rem; font-weight: 600; color: var(--color-text); }

.form-group input:not([type="checkbox"]):not([type="file"]),
.form-group textarea,
.form-group select {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font-body);
  color: var(--color-text); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:not([type="checkbox"]):not([type="file"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(228,118,27,.15);
}
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #dc2626; }
.form-group textarea { min-height: 130px; resize: vertical; }
.field-error { font-size: .8rem; color: #dc2626; }

.form-group--checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.form-group--consent { gap: .25rem; }
/* Consentimiento RGPD (checkbox desmarcado + label clicable + información básica) */
.form-consent {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .3rem 0;                                   /* área táctil ≥ 44px con 2 líneas de texto */
}
.form-group .form-consent label {
  font-size: .87rem; font-weight: 400; cursor: pointer; line-height: 1.45; color: var(--color-muted);
}
/* Checkbox propio: appearance:none + marca dibujada. El reset genérico de inputs lo dejaba invisible. */
.form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: .05rem 0 0; padding: 0; flex-shrink: 0; cursor: pointer;
  border: 1.5px solid #8A93A0; border-radius: 5px; background: #fff;
  display: grid; place-content: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.form-consent input[type="checkbox"]::before {
  content: ""; width: 12px; height: 12px; background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
  transform: scale(0); transition: transform .12s ease-out;
}
.form-consent input[type="checkbox"]:checked { background: var(--color-secondary); border-color: var(--color-secondary); }
.form-consent input[type="checkbox"]:checked::before { transform: scale(1); }
.form-consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(228,118,27,.35); }
.form-consent input[type="checkbox"][aria-invalid="true"] { border-color: #dc2626; }
.form-consent a { color: var(--color-primary); text-decoration: underline; font-weight: 600; }
.form-legal-info {
  margin: 0; padding-left: calc(22px + .65rem);
  font-size: .78rem; line-height: 1.5; color: var(--color-muted);
}
.form-legal-info a { color: inherit; text-decoration: underline; }
.form-hint { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--color-muted); }
.form-optional { font-weight: 400; font-size: .85em; color: var(--color-muted); }

/* Adjuntar fotos */
.form-group input[type="file"] {
  width: 100%; padding: .5rem;
  border: 1.5px dashed var(--color-border); border-radius: var(--radius);
  background: #fff; color: var(--color-muted);
  font-size: .9rem; font-family: var(--font-body); cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  margin-right: .75rem; padding: .55rem .9rem; min-height: 40px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--color-secondary); color: #fff;
  font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.form-group input[type="file"]:focus-visible { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(228,118,27,.15); }
.form-group input[type="file"][aria-invalid="true"] { border-color: #dc2626; }

/* Hero form */
.hero__form {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.16);
  border-top: 4px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(2px);
}
.hero__form-title {
  color: #fff; font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1.25rem; font-family: var(--font-heading); line-height: 1.1;
}
.form-hero { display: grid; gap: .9rem; }
.form-hero .form-group label { color: rgba(255,255,255,.88); }
.form-hero input,
.form-hero textarea,
.form-hero select {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.form-hero select option { color: var(--color-text); }
.form-hero input::placeholder,
.form-hero textarea::placeholder { color: rgba(255,255,255,.5); }
.form-hero input:focus,
.form-hero textarea:focus,
.form-hero select:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,.15);
  box-shadow: 0 0 0 3px rgba(245,178,62,.22);
}
.form-hero .form-group .form-consent label { color: rgba(255,255,255,.82); }
.form-hero .form-consent a { color: var(--color-accent); }
.form-hero .form-consent input[type="checkbox"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.form-hero .form-consent input[type="checkbox"]:checked { background: var(--color-accent); border-color: var(--color-accent); }
.form-hero .form-consent input[type="checkbox"]:checked::before { background: var(--color-primary-dark); }
.form-hero .form-legal-info { color: rgba(255,255,255,.72); }
.form-hero .form-hint, .form-hero .form-optional { color: rgba(255,255,255,.6); }
.form-hero input[type="file"] { color: rgba(255,255,255,.8); }
.form-hero input[type="file"]::file-selector-button { background: var(--color-accent); color: var(--color-primary-dark); }

@media (max-width: 599px) { .form-grid--2 { grid-template-columns: 1fr; } }


/* ── 26. PLACEHOLDERS IMÁGENES ────────────────────────────────── */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-steel);
  color: var(--color-muted);
  font-size: .82rem; font-family: var(--font-body);
  border: 2px dashed #c3bdb0;
  text-align: center; padding: .5rem;
}
.img-placeholder--banner { width: 100%; height: 320px; border-radius: var(--radius); }
.img-placeholder--card   { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius) var(--radius) 0 0; }
.img-placeholder--hero   { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); }


/* ── 27. BREADCRUMBS ──────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  font-size: .82rem; color: var(--color-muted); padding: .95rem 0;
  font-family: var(--font-body);
}
.breadcrumb a { color: #47515E; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb__sep { color: var(--color-muted); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }
/* Sobre hero oscuro (contacto, quiénes somos, trabajos, blog, posts). Los <style> inline van
   ANTES de style.css y perdían la cascada: el texto se pintaba oscuro sobre navy. */
.hero .breadcrumb, .page-hero .breadcrumb, .job-hero .breadcrumb, .blog-hero .breadcrumb, .post-hero .breadcrumb { color: rgba(255,255,255,.74); }
.hero .breadcrumb a, .page-hero .breadcrumb a, .job-hero .breadcrumb a, .blog-hero .breadcrumb a, .post-hero .breadcrumb a { color: rgba(255,255,255,.88); }
.hero .breadcrumb a:hover, .page-hero .breadcrumb a:hover, .job-hero .breadcrumb a:hover, .blog-hero .breadcrumb a:hover, .post-hero .breadcrumb a:hover { color: var(--color-accent); }
.hero .breadcrumb span[aria-hidden], .page-hero .breadcrumb span[aria-hidden], .job-hero .breadcrumb span[aria-hidden], .blog-hero .breadcrumb span[aria-hidden], .post-hero .breadcrumb span[aria-hidden] { color: rgba(255,255,255,.45); }
.hero .breadcrumb [aria-current="page"], .page-hero .breadcrumb [aria-current="page"], .job-hero .breadcrumb [aria-current="page"], .blog-hero .breadcrumb [aria-current="page"], .post-hero .breadcrumb [aria-current="page"] { color: #fff; }


/* ── 28. PÁGINAS LEGALES + GRACIAS ────────────────────────────── */
.page-legal { padding: 3.5rem 0 6rem; max-width: 820px; margin-inline: auto; }
.page-legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.page-legal h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.page-legal p,
.page-legal li { font-size: .95rem; color: var(--color-muted); line-height: 1.75; margin-bottom: .75rem; }
.page-legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-legal a { color: var(--color-secondary); text-decoration: underline; }

.page-gracias {
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1rem;
}
.page-gracias__icon {
  width: 76px; height: 76px;
  background: var(--color-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
}
.page-gracias h1 { margin-bottom: .75rem; }
.page-gracias p  { color: var(--color-muted); font-size: 1.08rem; margin-bottom: 1.75rem; }


/* ── 29. STAT BAND (banda de datos) ───────────────────────────── */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-band__item { padding: .5rem; position: relative; }
.stat-band__item:not(:last-child)::after {
  content: '';
  position: absolute; right: -.75rem; top: 15%; bottom: 15%;
  width: 1px; background: var(--color-border);
}
.section--dark .stat-band__item:not(:last-child)::after { background: rgba(255,255,255,.14); }
.stat-band__num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1;
  color: var(--color-secondary);
}
.section--dark .stat-band__num { color: var(--color-accent); }
.stat-band__label { font-size: .88rem; color: var(--color-muted); margin-top: .35rem; }
.section--dark .stat-band__label { color: rgba(255,255,255,.72); }
@media (max-width: 640px) {
  .stat-band { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .stat-band__item:nth-child(2n)::after { display: none; }
}


/* ── PRICING GRID ────────────────────────────────────────────── */
.pricing-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem;
}
.pricing-grid > .price-card { flex: 1 1 260px; max-width: 340px; }
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-secondary);
  padding: 1.6rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .35rem;
}
.price-card__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-secondary);
  font-family: var(--font-body);
}
.price-card__price {
  font-size: 2.2rem; font-weight: 700;
  color: var(--color-primary); font-family: var(--font-heading);
  line-height: 1.1;
}
.price-card__unit { font-size: .8rem; color: var(--color-muted); }
.price-card__text { font-size: .86rem; color: var(--color-muted); margin-top: .3rem; line-height: 1.5; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .pricing-grid { grid-template-columns: 1fr; } }


/* ── SERVICIOS RELACIONADOS ───────────────────────────────────── */
.relacionados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.relacionado-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}
.relacionado-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.relacionado-card__media { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.relacionado-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.relacionado-card:hover .relacionado-card__media img { transform: scale(1.05); }
.relacionado-card__media--icon { display: flex; align-items: center; justify-content: center; background: var(--color-primary); }
.relacionado-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.relacionado-card h3 { font-size: 1.18rem; margin: 0; }
.relacionado-card p  { font-size: .9rem; color: var(--color-muted); flex: 1; margin: 0; }
.relacionado-card a  { font-size: .86rem; font-weight: 700; color: var(--color-secondary); display: inline-flex; align-items: center; gap: .25rem; }
.relacionado-card a:hover { color: var(--color-secondary-dark); }
@media (max-width: 768px) { .relacionados-grid { grid-template-columns: 1fr; gap: 1rem; } }


/* ── GALERÍA REPARACIONES ─────────────────────────────────────── */
.gallery-reparaciones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .gallery-reparaciones { grid-template-columns: 1fr; } }


/* ── FOOTER BOTTOM INNER ──────────────────────────────────────── */
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
}


/* ── RESPONSIVE GLOBAL ────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 3.75rem 0; }
  .section--cta-final { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
}


/* ── FAQ: pregunta como H3 envolviendo el botón (patrón WAI) ──── */
.faq-q-heading { margin: 0; font: inherit; }
.faq-q-heading > .faq-question { width: 100%; }
/* Polish acordeón: acento lateral al abrir */
.faq-item { position: relative; }
.faq-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--color-secondary);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"])::before { transform: scaleY(1); }


/* ── BANDA DE VALOR (split sin imagen, centrada) ──────────────── */
.value-band { max-width: 1000px; margin-inline: auto; text-align: center; }
.value-band .section-label { margin-bottom: .9rem; }
.value-band > h2 { margin-bottom: 1rem; }
.value-band > p {
  color: var(--color-muted); font-size: 1.05rem;
  max-width: 680px; margin: 0 auto 2.5rem;
}
.value-band__grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  text-align: left; margin: 0 0 2.25rem;
}
.value-band__grid li {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.value-band__grid li:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow); transform: translateY(-3px);
}
.value-band__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(228,118,27,.1); border: 1px solid rgba(228,118,27,.25);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary); margin-bottom: .35rem;
}
.value-band__grid h3 { font-size: 1.18rem; }
.value-band__grid p { font-size: .92rem; color: var(--color-muted); line-height: 1.55; margin: 0; }
.section--alt .value-band__grid li { background: var(--color-bg); }
@media (max-width: 900px) { .value-band__grid { grid-template-columns: 1fr; gap: 1rem; } }


/* ── ENTIDADES / GLOSARIO SEMÁNTICO ───────────────────────────── */
.entity-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-top: 1.5rem;
}
.entity-tags span {
  font-size: .8rem; font-weight: 600; color: var(--color-muted);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  padding: .35rem .85rem; border-radius: 2rem;
}


/* ── STATS BAR (franja de confianza bajo el hero) ─────────────── */
.stats-bar { background: var(--color-primary); padding: 1.65rem 0; }
.stats-bar__grid {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.stats-bar__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .1rem; padding: 0 .25rem;
}
.stats-bar__item:not(:last-child)::after {
  content: ''; position: absolute; right: -1.25rem; top: 50%;
  transform: translateY(-50%); width: 1px; height: 2.1rem;
  background: rgba(255,255,255,.16);
}
.stats-bar__item strong {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.65rem; line-height: 1; color: var(--color-accent);
}
.stats-bar__item span { font-size: .82rem; color: rgba(255,255,255,.72); }
@media (max-width: 680px) {
  .stats-bar__grid { gap: 1.5rem 2rem; }
  .stats-bar__item:not(:last-child)::after { display: none; }
}


/* ── REDUCCIÓN DE MOVIMIENTO ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #nav-menu { transition: none !important; }
}


/* ================================================================
   §FORM-STATUS v1 — Feedback de envío de los formularios de lead
   Aplica a #contact-form (contacto.html) y #hero-contact-form (index.html)
   ================================================================ */
.form-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}

.form-status.is-pending,
.form-status.is-success,
.form-status.is-error { display: block; }

.form-status.is-pending {
    background: #F1F4F8;
    border-left-color: var(--color-muted);
    color: var(--color-muted);
}

.form-status.is-success {
    background: #ECFAF1;
    border-left-color: #1E9E5A;
    color: #145F38;
    font-weight: 600;
}

.form-status.is-error {
    background: #FDEDED;
    border-left-color: #C0392B;
    color: #8C231A;
}

.form-control[aria-invalid="true"],
.lead-form-field[aria-invalid="true"] {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: progress;
}

/* ── RGPD / LSSI: textos legales, WhatsApp y cookies ─────────── */
.wa-legal { margin: .4rem 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.wa-legal a { color: inherit; text-decoration: underline; }
.wa-legal--light, .form-hero .wa-legal, .hero .wa-legal, .footer .wa-legal { color: rgba(255,255,255,.78); }
.legal-titular {
  list-style: none !important; padding: 1.1rem 1.4rem !important; margin: .65rem 0 1rem;
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.legal-titular li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.legal-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: .8rem; }
.legal-content ol li { margin-bottom: .35rem; line-height: 1.7; }
.legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; max-width: 100%; }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .88rem; }
.legal-table th, .legal-table td { padding: .5rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.legal-table th { background: var(--color-primary); color: #fff; font-family: var(--font-body); font-weight: 600; }
.legal-ck-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; margin: .2rem 0;
  border: 2px solid var(--color-primary); border-radius: var(--radius); background: var(--color-primary); color: #fff;
  font: 600 .95rem/1.2 var(--font-body); cursor: pointer;
}
.legal-ck-btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.legal-ck-btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.legal-ck-btn[hidden] { display: none; }
.map-link { margin-top: 1rem; font-size: .92rem; }
.map-link a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

/* ── Nota de transparencia de testimonios (art. 20 LGDCU) ── */
.testimonios-nota { font-size: .8rem; line-height: 1.5; color: var(--color-muted); text-align: center; max-width: 720px; margin: 1.75rem auto 0; }

/* ── 25. Legibilidad + contenido ampliado de servicio (2026-09-30) ── */
.split__body > p { line-height: 1.8; margin-bottom: 1.35rem; }
.split__body > p strong, .section-content > p strong, .faq-answer strong { color: var(--color-text); font-weight: 700; }
.split__body > p a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.split__body > p a:hover { color: var(--color-secondary-dark); }
.section-content > p + p, .faq-answer p + p { margin-top: 1rem; }
.split__tips { list-style: none; display: grid; gap: .85rem; margin: .25rem 0 0; padding: 1.25rem 1.4rem; background: var(--color-bg); border: 1px solid var(--color-border); border-left: 3px solid var(--color-secondary); border-radius: var(--radius); }
.section:not(.section--alt) .split__tips { background: var(--color-bg-alt); }
.split__tips li { position: relative; padding-left: 1.35rem; font-size: .96rem; line-height: 1.65; color: var(--color-muted); }
.split__tips li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-secondary); }
.split__tips strong { color: var(--color-text); }
.trabajo-card figcaption { display: grid; gap: .35rem; padding: 1rem 1.15rem 1.2rem; }
.trabajo-card__title { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; line-height: 1.2; color: var(--color-text); }
.trabajo-card__loc { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-cta-dark); }
.trabajo-card__desc { font-size: .9rem; line-height: 1.6; color: var(--color-muted); }
.gallery-reparaciones .trabajo-card img { border-radius: 0 !important; }

/* ── 26. Home: herramientas y plazos + oficio local (2026-09-30) ── */
.plazos { margin-top: 3.5rem; }
.plazos__title { font-size: 1.35rem; margin-bottom: 1rem; }
.plazos-table { width: 100%; border-collapse: collapse; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; font-size: .95rem; }
.plazos-table th, .plazos-table td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.plazos-table thead th { background: var(--color-primary); color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.plazos-table tbody th { font-weight: 600; color: var(--color-text); }
.plazos-table td:nth-child(2) { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-cta-dark); white-space: nowrap; }
.plazos-table td:last-child { color: var(--color-muted); }
.plazos-table tbody tr:last-child > * { border-bottom: 0; }
.plazos__note { font-size: .85rem; color: var(--color-muted); margin-top: .85rem; }
@media (max-width: 700px) {
  .plazos-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plazos-table, .plazos-table tbody, .plazos-table tr, .plazos-table th, .plazos-table td { display: block; width: 100%; }
  .plazos-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--color-border); }
  .plazos-table tbody tr:last-child { border-bottom: 0; }
  .plazos-table th, .plazos-table td { padding: .15rem 0; border: 0; }
  .plazos-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--color-text); font-family: var(--font-body); font-size: .85rem; }
  .plazos-table td:nth-child(2) { white-space: normal; }
}
.value-band > p strong { color: var(--color-text); }

/* 2026-10-10 · enlace a la home en el texto de marca del footer */
.footer__desc a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-secondary); text-underline-offset: 3px; }
.footer__desc a:hover, .footer__desc a:focus-visible { color: var(--color-accent, #F5B23E); }

/* 2026-10-10 · aviso visible de imágenes generadas con IA en galerías y fichas */
.nota-ia { font-size: .8rem; font-style: italic; color: inherit; opacity: .72; text-align: center; margin: 1.25rem auto 0; max-width: 60ch; }
