.home-information{max-width:900px;padding-top:36px;margin-top:36px;border-top:1px solid #d1d5db}.home-information h2{font-size:1.5rem}.home-information p{font-size:1rem;line-height:1.7}.home-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.home-steps li{padding:20px;background:#fff;border:1px solid #d1d5db;border-radius:12px;min-width:0}.home-steps strong,.home-steps span{display:block;font-size:1rem}.home-steps strong{margin-bottom:10px;color:#a52234}.home-information details{padding:12px 0;border-top:1px solid #d1d5db}.home-information summary{font-size:1rem;white-space:normal}.home-information details p{margin:14px 0}.home-information details summary:after{flex-shrink:0}@media(max-width:760px){.home-steps{grid-template-columns:minmax(0,1fr);gap:14px}.home-information{padding-top:26px;margin-top:26px}}
.service-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;margin:0 0 32px}.amount-box,.requirements-box{padding:26px;background:white;border:1px solid #d1d5db;border-radius:14px;min-width:0}.amount-box{background:#fef2f2;border-color:#e8bdc6}.service-facts h2{font-size:1.3rem}.service-facts .service-amount{font-size:clamp(1.65rem,3vw,2.4rem);line-height:1.3;font-weight:800;color:#a52234;margin:14px 0;overflow-wrap:anywhere}.service-facts p,.service-facts li{font-size:1rem;line-height:1.7}.requirements-box ul{padding-left:24px}.requirements-box li{margin-bottom:12px}.branches-section{padding-top:36px;padding-bottom:36px;max-width:1100px}.branches-section>h2{font-size:1.6rem}.branches-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.branch-card{padding:22px;background:#fff;border:1px solid #d1d5db;border-radius:12px;min-width:0}.branch-card h3{font-size:1.2rem}.branch-card p{font-size:1rem;min-height:3.4em}.branch-card .button{font-size:1rem;max-width:100%;min-height:56px}.branch-hours{padding:22px;margin-top:22px;background:#f3f4f6;border-radius:12px}.branch-hours h3{font-size:1.15rem}.branch-hours p{font-size:1rem;margin-bottom:0}.branch-hours a{text-decoration:underline;color:#a52234}.detail-main .branches-section{width:100%}@media(max-width:900px){.service-facts,.branches-grid{grid-template-columns:minmax(0,1fr)}.branch-card p{min-height:0}.branch-card .button{width:100%}.amount-box,.requirements-box{padding:22px 18px}}
.branches-banner { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; margin-top: 24px; }
.branch-phone { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: #991b1b; overflow-wrap: anywhere; }
:root {
  --red: #bf293d;
  --red-dark: #991b1b;
}

.service-guide { margin: 0 0 36px; padding: 28px; border: 1px solid #d1d5db; border-radius: 14px; background: #fff; }
.service-guide > p { max-width: 75ch; font-size: 1rem; }
.service-guide h2 { font-size: 1.6rem; }
.guide-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; margin-top: 24px; }
.guide-columns h3, .service-questions h3 { font-size: 1.2rem; }
.guide-columns ul, .guide-columns ol { padding-left: 24px; }
.guide-columns li { margin-bottom: 12px; font-size: 1rem; line-height: 1.7; }
.service-questions details { border-top: 1px solid #d1d5db; padding: 10px 0; }
.service-questions summary { font-size: 1rem; white-space: normal; }
.service-questions p { font-size: 1rem; line-height: 1.7; margin: 12px 0; max-width: 80ch; }
@media(max-width:760px) { .service-guide { padding: 22px 18px; } .guide-columns { grid-template-columns: minmax(0,1fr); gap: 16px; } }

/* SVG dentro del botón: funciona también al abrir el HTML como archivo local. */
.whatsapp-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: currentColor;
}
.dock-wa > span[aria-hidden="true"] { display: none; }
@media (max-width: 760px) {
  .contact-dock a { min-width: 0; overflow-wrap: anywhere; flex-wrap: wrap; gap: 6px; }
  .footer-links { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .footer-links a, .footer-bottom span { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

/* Menú desplegable de Servicios en el Header */
.services-menu {
  position: relative;
}

.services-menu > summary {
  cursor: pointer;
  list-style: none;
  min-height: 42px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: inherit;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.services-menu > summary::-webkit-details-marker {
  display: none;
}

.services-menu > summary:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.services-menu > summary::after {
  content: '▾';
  font-size: 0.95rem;
  color: #b91c1c;
  background: none;
  width: auto;
  height: auto;
  line-height: 1;
}

.services-menu[open] > summary {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.services-menu[open] > summary::after {
  content: '▴';
  color: #ffffff;
}

.services-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 28px);
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  z-index: 60;
}

.site-header .nav .services-dropdown a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  white-space: normal;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
  overflow-wrap: anywhere;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header .nav .services-dropdown a:hover,
.site-header .nav .services-dropdown a:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
}

.site-header .nav .services-dropdown a[aria-current="page"] {
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
  border-left: 4px solid #b91c1c;
}

/* Logotipo en Header y Footer */
.brand-logo {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 6px;
}

.site-header .nav {
  padding-block: 10px;
}

.site-header .brand {
  flex-shrink: 0;
}

.site-footer .brand {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}

.site-footer .brand-logo {
  width: 150px;
}

/* Breadcrumbs (Migas de pan) */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding-block: 18px 10px;
  color: #64748b;
}

.breadcrumbs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #b91c1c;
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Hero de páginas interiores */
.detail-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #b91c1c;
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.detail-hero h1 {
  max-width: 26ch;
  margin-bottom: 14px;
}

.detail-hero .intro {
  font-size: 1.06rem;
  color: #334155;
  max-width: 68ch;
  margin-bottom: 24px;
}

.detail-hero .actions {
  margin-bottom: 0;
}

.whatsapp-button {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.22);
}

.whatsapp-button:hover {
  background: #166534;
  border-color: #166534;
}

/* Imagen / Flyer de página interior */
.service-page-visual {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.service-page-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.service-page-visual figcaption {
  padding-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
}

/* Ejemplo de renovación Antes / Después (Mejoravit) */
.renovation-example {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.renovation-example h2 {
  max-width: 28ch;
  margin-bottom: 8px;
}

.renovation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}

.renovation-grid figure {
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.renovation-grid figcaption {
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.renovation-grid figure:last-child figcaption {
  color: #b91c1c;
  background: #fef2f2;
}

.renovation-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1024 / 765;
  object-fit: cover;
}

.renovation-example .renovation-note {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  max-width: 85ch;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 4px solid #94a3b8;
  margin-bottom: 20px;
}

/* Layout de detalle + Barra lateral */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding-bottom: 36px;
}

.detail-layout > section,
.detail-layout aside {
  min-width: 0;
}

.detail-layout .service-card {
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.detail-layout h2 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.related-services {
  position: sticky;
  top: 104px;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.related-services h2 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.related-services nav {
  display: grid;
  gap: 8px;
}

.related-services a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #334155;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.related-services a:hover {
  border-color: #fca5a5;
  background: #fffafa;
  color: #b91c1c;
}

.related-services a[aria-current="page"] {
  border: 2px solid #b91c1c;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}

/* Bloque de contacto en páginas interiores */
.page-contact {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border: 1px solid #fecaca;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.06);
}

.page-contact h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.page-contact .actions {
  margin-bottom: 0;
}

.page-email {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.page-email a {
  color: #b91c1c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Bloque de transparencia */
.page-transparency {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #475569;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 42px;
}

.page-transparency h2 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.page-transparency p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  color: #475569;
}

.job-questions {
  padding-left: 22px;
  margin-bottom: 20px;
}

.job-questions li {
  margin-bottom: 10px;
  color: #334155;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-services {
    position: static;
  }

  .related-services nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header #navigation {
    position: relative;
  }

  .services-menu {
    position: static;
  }

  .services-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .brand-logo {
    width: 135px;
  }

  .detail-hero,
  .renovation-example,
  .detail-layout .service-card,
  .page-contact {
    padding: 22px 18px;
  }

  .renovation-grid,
  .related-services nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-hero .actions,
  .page-contact .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
