/* ============================================================
   tejadosvilaseca.es — Hoja de estilos única
   Estilo: sólido y de oficio. Bloques marcados, bordes definidos,
   sin tarjetas flotantes ni degradados.
   Paleta reservada al proyecto: berenjena + naranja tostado.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --color-primary:      #4A2545;   /* berenjena · blanco encima 12,79:1 */
  --color-primary-dark: #35192F;
  --color-primary-soft: #7A5A72;
  --color-accent:       #E08A2E;   /* naranja tostado · texto oscuro encima 6,50:1 */
  --color-accent-dark:  #A85D0E;   /* hover de botón: blanco encima 4,96:1 */
  --color-accent-text:  #9E560B;   /* acento legible como TEXTO · 5,54:1 blanco · 5,03:1 bg-light */

  --text:        #1F1B1E;
  --text-soft:   #55494F;
  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --bg-light:    #F6F3F5;
  --bg-dark:     var(--color-primary);
  --border:      #DCD3D9;   /* separadores decorativos */
  --border-ui:   #8B7F86;   /* bordes que informan: 3,12:1 sobre blanco */
  --border-hard: #2A1526;

  --ok:    #1A6E3A;
  --error: #B00020;

  --wrap:    1180px;
  --radius:  3px;              /* casi recto: oficio, no startup */
  --gap:     24px;
  --section: 72px;

  --font-head: 'Oswald', 'Oswald-fallback', Impact, 'Haettenschweiler', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Fallback métrico: evita el salto cuando entra Oswald */
@font-face {
  font-family: 'Oswald-fallback';
  src: local('Arial Narrow'), local('Arial');
  size-adjust: 88%;
  ascent-override: 105%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .3px;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 5.2vw, 50px); text-transform: uppercase; }
h2 { font-size: clamp(25px, 3.6vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p  { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 7px; }

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

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--color-primary); color: var(--white);
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 10px;
}
/* En fondo oscuro la etiqueta va SIEMPRE en blanco (contraste) */
.bg-dark .section-label,
.cta-final .section-label,
.service-hero .section-label { color: var(--white); }

/* ── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #1A1A1A;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--white); }

/* R10 — .btn-secondary sobre fondo oscuro */
.bg-dark .btn-secondary,
.hero .btn-secondary,
.service-hero .btn-secondary,
.cta-final .btn-secondary,
.process .btn-secondary,
.zones .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.bg-dark .btn-secondary:hover,
.hero .btn-secondary:hover,
.service-hero .btn-secondary:hover,
.cta-final .btn-secondary:hover,
.process .btn-secondary:hover,
.zones .btn-secondary:hover {
  background: var(--white); color: var(--color-primary); border-color: var(--white);
}

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--white); }

.header-top { background: var(--color-primary); color: var(--white); font-size: 14.5px; }
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 40px; flex-wrap: wrap;
}
.header-top-text { font-weight: 500; }
.header-top-phone {
  color: var(--white); font-weight: 700; text-decoration: none;
  font-family: var(--font-head); letter-spacing: .5px;
}
.header-top-phone:hover { color: var(--color-accent); }

.header-main { border-bottom: 3px solid var(--color-primary); background: var(--white); }
.header-main-inner {
  display: flex; align-items: center; gap: 20px; min-height: 76px; position: relative;
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }

.nav-desktop { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav-desktop > a,
.nav-dropdown-toggle {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-desktop > a:hover,
.nav-dropdown-toggle:hover { color: var(--color-primary); }
.nav-desktop a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

.chevron { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 264px;
  background: var(--white);
  border: 2px solid var(--color-primary);
  border-top: 4px solid var(--color-accent);
  padding: 6px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 10px 18px;
  color: var(--text); text-decoration: none; font-size: 15.5px;
}
.nav-dropdown-menu a:hover { background: var(--bg-light); color: var(--color-primary); }

.header-cta { display: none; margin-left: 8px; padding: 12px 20px; font-size: 15px; }

.burger {
  margin-left: auto; width: 46px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 2px solid var(--color-primary); border-radius: var(--radius);
  cursor: pointer; padding: 0 9px;
}
.burger span { display: block; height: 3px; background: var(--color-primary); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MENÚ MÓVIL (bloque único) ──────────────────────────── */
.mobile-nav {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 4px solid var(--color-primary);
  padding: 10px 0 18px;
  z-index: 800;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav a,
.mobile-nav .mobile-dropdown-toggle {
  display: block; width: 100%; text-align: left;
  padding: 13px 20px;
  font-family: var(--font-head); font-size: 17px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.mobile-nav a:hover,
.mobile-nav .mobile-dropdown-toggle:hover { background: var(--bg-light); }
.mobile-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; border-left: 4px solid var(--color-accent); }

.mobile-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; }
.mobile-dropdown-menu {
  display: none; background: var(--bg-light);
  border-left: 4px solid var(--color-accent);
  margin: 0 20px 6px;
}
.mobile-dropdown.open .mobile-dropdown-menu { display: block; }
.mobile-dropdown-menu a { font-size: 15px; text-transform: none; padding: 11px 16px; letter-spacing: 0; }

.mobile-cta { margin: 14px 20px 0; text-align: center; }

@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
  .header-cta  { display: inline-block; }
  .burger, .mobile-nav { display: none; }
}

/* ── SECCIONES GENERALES ────────────────────────────────── */
main { display: block; }
section { padding: var(--section) 0; }
.bg-light { background: var(--bg-light); }
.bg-dark  { background: var(--color-primary); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,.9); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── HERO ───────────────────────────────────────────────── */
.hero { background: var(--color-primary); color: var(--white); padding: 0; }
.hero-inner { display: grid; gap: 0; grid-template-columns: 1fr; }
.hero-content { padding: 54px 20px 60px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero h1 { color: var(--white); }
.hero-sub { font-size: 18.5px; color: rgba(255,255,255,.92); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.trust-badges li {
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  letter-spacing: .8px; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.4);
  border-left: 4px solid var(--color-accent);
  padding: 8px 14px; margin: 0;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; max-height: 460px; }

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .hero-content { padding: 72px 40px 76px 20px; }
  .hero-image img { max-height: none; }
}

/* ── TARJETAS DE SERVICIO ───────────────────────────────── */
.cards-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 2px solid var(--border-ui);
  border-top: 5px solid var(--color-primary);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 16px; flex-grow: 1; }
.card-link {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; font-size: 15px;
  color: var(--color-primary); text-decoration: none;
  border-bottom: 3px solid var(--color-accent);
  align-self: flex-start; padding-bottom: 2px; margin-top: 6px;
}
.card-link:hover { color: var(--color-accent-text); }

/* ── LISTA DE VENTAJAS / AVERÍAS / TIPOS ────────────────── */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  border-left: 5px solid var(--color-accent);
  padding: 4px 0 4px 20px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p  { color: var(--text-soft); font-size: 16px; margin: 0; }
.bg-dark .feature { border-left-color: var(--color-accent); }
.bg-dark .feature p { color: rgba(255,255,255,.88); }

/* ── PROCESO ────────────────────────────────────────────── */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 4px solid rgba(255,255,255,.45); padding-top: 18px; }
.step-num {
  font-family: var(--font-head); font-size: 40px; font-weight: 700;
  line-height: 1; color: var(--color-accent); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }

/* ── TABLA DE COSTE ─────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table caption { text-align: left; color: var(--text-soft); padding-bottom: 12px; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .8px; font-size: 14px;
  background: var(--color-primary); color: var(--white); border-bottom: 0;
}
.price-table tbody tr:nth-child(even) { background: var(--bg-light); }
.level {
  display: inline-block; font-family: var(--font-head); font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px;
  border: 2px solid var(--color-primary); white-space: nowrap;
}
.level--eco     { background: var(--white);          color: var(--color-primary); }
.level--mod     { background: var(--color-accent);   color: #1A1A1A; border-color: var(--color-accent-dark); }
.level--premium { background: var(--color-primary);  color: var(--white); }
.price-wrap { overflow-x: auto; }

/* ── RESEÑAS ────────────────────────────────────────────── */
.reviews-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--white); border: 2px solid var(--border);
  border-left: 5px solid var(--color-accent); padding: 22px 22px 18px;
}
.review-stars { color: var(--color-accent-text); letter-spacing: 2px; font-size: 16px; }
.review-text  { font-size: 16px; color: var(--text-soft); }
.review-meta  { font-family: var(--font-head); font-size: 15px; letter-spacing: .5px; color: var(--color-primary); }
.review-date  { color: var(--text-soft); font-weight: 400; font-size: 14px; }

/* ── ZONAS ──────────────────────────────────────────────── */
.zones-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.zones-list li {
  border: 2px solid rgba(255,255,255,.4); padding: 8px 15px; margin: 0;
  font-family: var(--font-head); letter-spacing: .6px; font-size: 15px;
}
.zones-list.primary li { border-left: 5px solid var(--color-accent); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; border-top: 2px solid var(--border); }
.faq-item { border-bottom: 2px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-head); font-size: 19px; font-weight: 500;
  color: var(--color-primary); line-height: 1.3;
}
.faq-question::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--color-accent-text); border-bottom: 3px solid var(--color-accent-text);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { display: none; padding: 0 0 20px; color: var(--text-soft); }
.faq-answer.open { display: block; }

/* ── CTA FINAL ──────────────────────────────────────────── */
.cta-final { background: var(--color-primary-dark); color: var(--white); text-align: center; }
.cta-final h2 { color: var(--white); max-width: 780px; margin-inline: auto; }
.cta-final p  { max-width: 640px; margin-inline: auto; color: rgba(255,255,255,.9); }
.cta-final .hero-ctas { justify-content: center; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 14.5px; }
.breadcrumb li { margin: 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "›"; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-primary); font-weight: 600; }

/* ── HERO DE SUBPÁGINA ──────────────────────────────────── */
.service-hero { background: var(--color-primary); color: var(--white); padding: 0; }
.service-hero .hero-inner { display: grid; grid-template-columns: 1fr; }
.service-hero h1 { color: var(--white); }
@media (min-width: 1000px) { .service-hero .hero-inner { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* Contenido largo de subpágina */
.service-body { max-width: 820px; }
.service-body h3 { margin-top: 34px; color: var(--color-primary); }
.service-body ul { padding-left: 22px; }
.service-body li::marker { color: var(--color-accent); }
.service-figure { margin: 30px 0; }
.service-figure img { border: 2px solid var(--border); }
.service-figure figcaption { font-size: 14.5px; color: var(--text-soft); padding-top: 8px; }

/* ── SECCIÓN DE CONTACTO ────────────────────────────────── */
.contact-section { background: var(--bg-light); border-top: 4px solid var(--color-primary); }
.contact-header { max-width: 720px; margin-bottom: 40px; }
.contact-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.15fr .85fr; } }

.contact-form-wrap { background: var(--white); border: 2px solid var(--border); border-top: 5px solid var(--color-accent); padding: 28px 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--white);
  border: 2px solid var(--border-ui); border-radius: var(--radius);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); outline: none; }
.form-group textarea { resize: vertical; min-height: 110px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.checkbox-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.checkbox-custom {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--color-primary); background: var(--white); border-radius: 2px;
  position: relative;
}
.checkbox-label input:checked + .checkbox-custom { background: var(--color-primary); }
.checkbox-label input:checked + .checkbox-custom::after {
  content: ""; position: absolute; left: 6px; top: 1px;
  width: 6px; height: 12px;
  border-right: 3px solid var(--white); border-bottom: 3px solid var(--white);
  transform: rotate(45deg);
}
.checkbox-label input:focus-visible + .checkbox-custom { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.checkbox-text { font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }

.btn-submit { width: 100%; margin-top: 6px; }
.form-message { margin-top: 14px; font-weight: 600; font-size: 15.5px; }
.form-message.is-ok    { color: var(--ok); }
.form-message.is-error { color: var(--error); }

.contact-info-card {
  background: var(--white); border: 2px solid var(--border);
  border-left: 5px solid var(--color-primary);
  padding: 22px 22px 18px; margin-bottom: 18px;
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-info-card--phone { border-left-color: var(--color-accent); }
.contact-phone {
  font-family: var(--font-head); font-size: 30px; font-weight: 700;
  color: var(--color-primary); text-decoration: none; letter-spacing: .5px;
  display: inline-block; margin-bottom: 6px;
}
.contact-phone:hover { color: var(--color-accent-text); }
.contact-schedule, .contact-zonas, .contact-zonas-mas { font-size: 15px; color: var(--text-soft); margin: 0; }
.contact-zonas { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.contact-zonas-mas { font-size: 14.5px; }
.contact-nap { font-style: normal; font-size: 15.5px; line-height: 1.6; color: var(--text-soft); }
.contact-nap strong { color: var(--text); }
.contact-nap a { color: var(--color-primary); font-weight: 600; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,.86); padding: 56px 0 0; font-size: 15.5px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer-claim { font-size: 15px; color: rgba(255,255,255,.78); max-width: 300px; }
.footer-col h3 {
  font-size: 15px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
  border-bottom: 3px solid var(--color-accent); padding-bottom: 8px; display: inline-block;
}
.footer-col a { display: block; color: rgba(255,255,255,.86); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--color-accent); }
.footer-nap { font-style: normal; line-height: 1.65; color: rgba(255,255,255,.86); margin-bottom: 12px; }
.footer-nap strong { color: var(--white); }
.footer-phone { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--white) !important; letter-spacing: .5px; }
.footer-phone:hover { color: var(--color-accent) !important; }
.footer-horario { font-size: 14.5px; color: rgba(255,255,255,.78); }
.footer-horario strong { color: var(--color-accent); }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.2);
  padding: 20px 0; text-align: center; font-size: 14.5px; color: rgba(255,255,255,.72);
}
.footer-bottom p { margin: 0; }

/* ── COOKIE BANNER (sin CLS) ────────────────────────────── */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--color-primary-dark); color: var(--white);
  border-top: 4px solid var(--color-accent);
  transform: translateY(100%);
  transition: transform .25s ease;
}
#cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.cookie-inner p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.9); }
.cookie-inner a { color: var(--color-accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 14px; }
@media (min-width: 700px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-inner p { flex: 1; }
}

/* ── UTILIDADES ─────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead { font-size: 18.5px; color: var(--text-soft); }
.text-center { text-align: center; }

/* ── SERVICIOS RELACIONADOS ─────────────────────────────── */
.related { background: var(--bg-light); border-top: 3px solid var(--border); }
.related .card { background: var(--white); }
.related .card p strong { color: var(--color-primary); }

/* ── TABLAS DE DIAGNÓSTICO ──────────────────────────────── */
.diag-table th[scope="row"] { width: 26%; color: var(--color-primary); }
.diag-table td:last-child { color: var(--text-soft); }

/* ── CALENDARIO ─────────────────────────────────────────── */
.calendar { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 26px 0; }
@media (min-width: 700px)  { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .calendar { grid-template-columns: repeat(4, 1fr); } }
.calendar-item {
  border: 2px solid var(--border);
  border-top: 5px solid var(--color-accent);
  padding: 18px 18px 14px; background: var(--white);
}
.calendar-item h3 { font-size: 18px; margin-bottom: 6px; }
.calendar-when {
  display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--color-accent-text); margin-bottom: 8px;
}
.calendar-item p { font-size: 15.5px; color: var(--text-soft); margin: 0; }
.related-home { margin: 26px 0 0; font-size: 16.5px; color: var(--text-soft); }
.related-home a { color: var(--color-primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   CORRECCIONES DE LA AUDITORÍA DE USABILIDAD (25/08/2026)
   ═══════════════════════════════════════════════════════════ */

/* ── Clases que se usaban en el HTML y no tenían estilo ───── */
.contact-info-wrap { display: flex; flex-direction: column; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.form-checkbox { margin: 22px 0 20px; }
.captcha-group { background: var(--bg-light); border-left: 4px solid var(--color-accent-text); padding: 14px 16px 16px; }
.captcha-group label { margin-bottom: 8px; }
.captcha-group #captchaQuestion { font-family: var(--font-head); font-size: 20px; color: var(--color-primary); }
/* Marcador del email antes de que el JS lo componga (ver email-obf.php) */
.email-obf { color: var(--text-soft); font-style: italic; }

/* ── Objetivo táctil de 44px (WCAG 2.5.5 / guía de Apple) ── */
.header-cta { min-height: 44px; display: inline-flex; align-items: center; }
.burger { width: 48px; height: 48px; }
.mobile-nav a, .mobile-nav .mobile-dropdown-toggle { min-height: 48px; display: flex; align-items: center; }
.mobile-dropdown-menu a { min-height: 44px; }
.cookie-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav-desktop > a, .nav-dropdown-toggle { min-height: 44px; }
.nav-dropdown-menu a { min-height: 44px; display: flex; align-items: center; }
.footer-col a { padding: 11px 0; }
.header-top-phone { padding: 9px 0; display: inline-block; }
.card-link { padding: 10px 0 6px; }
.related-home a { padding: 6px 0; display: inline-block; }
/* El checkbox sigue midiendo 22px, pero su zona pulsable llega a 44px */
.checkbox-label { padding: 11px 0; }
.checkbox-custom { margin-top: 0; }

/* ── Respuesta al toque: en móvil no hay hover ────────────── */
.btn:active { transform: translateY(1px); }
.btn-primary:active { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--white); }
.btn-secondary:active { background: var(--color-primary); color: var(--white); }
.card:active { border-color: var(--color-primary); }
.faq-question:active { background: var(--bg-light); }
.mobile-nav a:active { background: var(--bg-light); }

/* ── Botón deshabilitado mientras se envía ────────────────── */
.btn:disabled,
.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  background: var(--color-primary-soft);
  border-color: var(--color-primary-soft);
  color: var(--white);
}

/* ── Ancla #contacto bajo la cabecera fija ────────────────── */
/* Sin esto, al pulsar "Pedir presupuesto" el título queda tapado */
:target,
#contacto,
#servicios,
#main { scroll-margin-top: 130px; }
@media (max-width: 999px) { :target, #contacto, #servicios, #main { scroll-margin-top: 110px; } }

/* ── Placeholder con contraste suficiente ─────────────────── */
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6B6067; opacity: 1; }

/* ── Imágenes: recortan en vez de deformarse ──────────────── */
.hero-image img,
.service-figure img,
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ── Campo inválido señalado ──────────────────────────────── */
[aria-invalid="true"] { border-color: var(--error) !important; }
.checkbox-label input[aria-invalid="true"] + .checkbox-custom { border-color: var(--error); }

/* ── Scroll del fondo bloqueado con el menú móvil abierto ─── */
body.menu-abierto { overflow: hidden; }

/* ── Barra fija de llamada en móvil ───────────────────────── */
/* El negocio es de urgencias 24 h: la llamada debe estar siempre a un toque */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
  display: flex; background: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  padding-bottom: env(safe-area-inset-bottom);  /* móviles con notch */
}
.call-bar a {
  flex: 1; text-align: center; padding: 14px 10px; min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
}
.call-bar .call-bar-tel { background: var(--color-accent); color: #1A1A1A; }
.call-bar .call-bar-form { color: var(--white); }
.call-bar .call-bar-form:active { background: var(--color-primary-dark); }
/* Deja hueco para que la barra no tape el final del contenido */
body { padding-bottom: 0; }
@media (max-width: 999px) {
  body { padding-bottom: 62px; }
  /* El banner de cookies se coloca ENCIMA de la barra, no sobre ella */
  #cookie-banner { bottom: 62px; }
}
@media (min-width: 1000px) { .call-bar { display: none; } }

/* ── Hoja de impresión: presupuestos, legales y FAQ ───────── */
@media print {
  .site-header, .mobile-nav, #cookie-banner, .call-bar,
  .hero-ctas, .cta-final, .contact-form-wrap, .related, .breadcrumb { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; padding-bottom: 0; }
  .container { max-width: 100%; padding: 0; }
  section { padding: 12pt 0; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  .faq-answer { display: block !important; }   /* imprime las respuestas abiertas */
  .service-figure, .price-wrap { page-break-inside: avoid; }
  a[href^="/"]::after { content: " (tejadosvilaseca.es" attr(href) ")"; font-size: 9pt; }
  a[href^="tel:"]::after { content: ""; }
}

/* ── Medida de línea ──────────────────────────────────────── */
/* 820px a 17px daban ~96 caracteres por línea. Por encima de 80 se pierde el
   renglón al saltar. En ch la medida se mantiene aunque cambie la tipografía. */
.service-body { max-width: 68ch; }
.section-head { max-width: 64ch; }
.section-head.center { max-width: 60ch; }
.hero-sub { max-width: 46ch; }
.lead { max-width: 68ch; }

/* ── Móvil en horizontal (altura corta) ───────────────────── */
/* Con 380px de alto, la barra superior + cabecera + barra de llamada dejaban
   154px útiles. Se compacta todo lo fijo. */
@media (max-height: 460px) and (orientation: landscape) {
  .header-top { display: none; }
  .header-main-inner { min-height: 56px; }
  .logo img { height: 34px; }
  .call-bar a { min-height: 44px; padding: 9px 10px; font-size: 15px; }
  body { padding-bottom: 50px; }
  #cookie-banner { bottom: 50px; }
  .cookie-inner { padding: 10px 20px; }
  .mobile-nav { max-height: calc(100vh - 60px); }
}

/* Ajustes finales de zona pulsable */
.burger { width: 48px; height: 48px; min-height: 48px; }
.header-top-phone { padding: 12px 0; }
.card-link { padding: 13px 0 8px; }
