:root {
    --bg: #f7f1e8;
    --bg-soft: #efe5d7;
    --paper: #fffdfa;
    --ink: #1d2330;
    --muted: #5d6572;
    --line: #d8cdbc;
    --brand: #bf5b2c;
    --brand-deep: #8d3a18;
    --accent: #0f4c5c;
    --shadow: 0 18px 42px rgba(29, 35, 48, 0.12);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --container: 1180px;
}
*,
*:before,
*:after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(191, 91, 44, 0.18), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(15, 76, 92, 0.12), transparent 24%),
        linear-gradient(180deg, #fbf8f4 0%, #f4ede3 100%);
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: rgba(29,35,48,.94);
    backdrop-filter: blur(14px);
}
.topbar { background: linear-gradient(90deg, rgba(191,91,44,.2), rgba(15,76,92,.26)); color: #fff8f0; font-size: .96rem; }
.topbar-inner, .nav-inner, .footer-inner, .button-row, .hero-metrics, .footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar-inner { min-height: 50px; }
.nav-inner { min-height: 86px; }
.brand { display: inline-flex; flex-direction: column; gap: .15rem; color: #fff; }
.brand-name { font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand-copy { color: rgba(255,248,240,.78); font-size: .95rem; }
.nav-toggle {
    display: none;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.main-nav ul { display: flex; gap: .4rem; }
.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 999px;
    color: rgba(255,248,240,.84);
    font-weight: 700;
}
.main-nav a.is-active, .main-nav a:hover, .main-nav a:focus-visible {
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.35rem;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button-primary { background: linear-gradient(135deg, var(--brand), #e79f6f); color: #fff; }
.button-secondary { background: linear-gradient(135deg, var(--accent), #2d7f94); color: #fff; }
.button-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero, .page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(21,25,35,.92), rgba(21,25,35,.64)),
        url("images/cerrajero-mataro-05.webp") center/cover no-repeat;
}
.page-hero {
    background:
        linear-gradient(120deg, rgba(21,25,35,.94), rgba(15,76,92,.72)),
        url("images/cerrajero-mataro-03.webp") center/cover no-repeat;
}
.hero-layout, .page-hero-layout, .split, .map-copy, .service-grid, .cards-grid, .zones-grid, .faq-grid, .summary-grid {
    display: grid;
    gap: 1.4rem;
}
.hero-layout { grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); padding: 4.5rem 0 4rem; }
.page-hero-layout { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); padding: 3.7rem 0 3.2rem; }
.split, .map-copy { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; }
.service-grid, .cards-grid, .zones-grid, .faq-grid, .summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffddc5;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 .9rem; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
h3 { font-size: 1.32rem; }
.lead, .page-hero p { max-width: 720px; font-size: 1.08rem; color: rgba(255,248,240,.88); }
.hero-panel, .glass-panel, .card, .service-card, .zone-card, .faq-item, .contact-card, .stat-card, .table-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hero-panel, .glass-panel { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.hero-metrics { margin-top: 1.3rem; flex-wrap: wrap; }
.metric-pill { min-width: 150px; padding: .85rem 1rem; border-radius: 18px; background: rgba(255,255,255,.12); }
.metric-pill strong { display: block; font-size: 1.1rem; }
.section { padding: 4.8rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(217,236,240,.38)); }
.section-subtitle { max-width: 760px; margin-bottom: 1.5rem; color: var(--muted); }
.media img, .service-card img { width: 100%; border-radius: 18px; object-fit: cover; }
.media img { min-height: 340px; }
.note-list, .check-list, .breadcrumbs, .footer-links { display: grid; gap: .7rem; }
.note-list li, .check-list li { position: relative; padding-left: 1.25rem; }
.note-list li:before, .check-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}
.breadcrumbs { grid-auto-flow: column; justify-content: start; gap: .5rem; color: rgba(255,248,240,.84); font-size: .94rem; }
.stat-strip { margin-top: -1.8rem; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.stat-card strong { display: block; color: var(--brand-deep); font-size: 1.9rem; }
.band {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(191,91,44,.12), rgba(15,76,92,.08)), var(--paper);
    border: 1px solid rgba(191,91,44,.22);
}
.map-box iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.site-footer { background: #1d2330; color: rgba(255,248,240,.86); }
.footer-inner { align-items: flex-start; padding: 3rem 0 2rem; }
.footer-links a, .site-footer a, .site-footer p { color: rgba(255,248,240,.8); }
.footer-bottom { padding: 1rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,248,240,.62); font-size: .92rem; }
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .7rem; z-index: 30; }
.floating-cta a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.floating-call { background: linear-gradient(135deg, var(--brand), #e79f6f); }
.floating-whatsapp { background: #1f9d5a; }
table { width: 100%; border-collapse: collapse; min-width: 880px; font-size: .95rem; }
th, td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--brand-deep); }
@media (max-width: 1024px) {
    .hero-layout, .page-hero-layout, .split, .map-copy, .service-grid, .cards-grid, .zones-grid, .faq-grid, .summary-grid, .stats { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-inner { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; padding-bottom: 1rem; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .main-nav a { justify-content: flex-start; border-radius: 18px; }
}
@media (max-width: 760px) {
    .topbar-inner, .nav-inner, .footer-inner, .button-row, .hero-metrics { flex-direction: column; align-items: stretch; }
    .hero-layout, .page-hero-layout, .split, .map-copy, .service-grid, .cards-grid, .zones-grid, .faq-grid, .summary-grid, .stats { grid-template-columns: 1fr; }
    .site-header { position: static; }
    .button, .button-primary, .button-secondary, .button-light { width: 100%; }
    .hero-layout { padding: 3.5rem 0 3rem; }
    .page-hero-layout, .section { padding: 3.3rem 0; }
}
.hero-services .service-box {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.service-key-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.service-key-list li {
  position: relative;
  padding-left: 2rem;
}

.service-key-list li::before {
  content: "🔑";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 1.1rem;
  line-height: 1;
}

.service-key-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.service-key-list a:hover {
  text-decoration: underline;
}

/* ================================
   PARCHE CSS
   Pegar al final de styles.css
   No reemplaza tu hoja existente
================================ */

/* 1) Botoneras: header, hero y footer */
.site-header .button-row,
.hero .button-row,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-header .button,
.hero .button,
.footer-actions .button {
  width: auto;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 35, 48, 0.16);
}

.site-header .button:hover,
.hero .button:hover,
.footer-actions .button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

/* 2) Hero: alineación y métricas */
.hero-layout {
  align-items: start;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 22px;
}

.metric-pill {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.metric-pill strong {
  display: block;
  margin-bottom: 4px;
}

.metric-pill span {
  display: block;
  color: rgba(255, 248, 240, 0.86);
  line-height: 1.45;
}

/* 3) Caja lateral de servicios */
.hero-services .service-box {
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-services .service-box h2,
.hero-services .service-box p {
  color: #fff;
}

.hero-services .service-box p {
  margin-bottom: 1rem;
  color: rgba(255, 248, 240, 0.88);
}

/* 4) Lista con llaves */
.service-key-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.service-key-list li {
  position: relative;
  padding-left: 1.95rem;
}

.service-key-list li::before {
  content: "🔑";
  position: absolute;
  left: 0;
  top: 0.08rem;
  font-size: 1rem;
  line-height: 1;
}

.service-key-list a {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
  text-decoration: none;
}

.service-key-list a:hover,
.service-key-list a:focus-visible {
  color: #ffddc5;
  text-decoration: underline;
}

/* 5) Botones flotantes: corregidos para texto, no círculos */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

.floating-cta a {
  width: auto !important;
  min-width: 148px;
  height: 52px !important;
  padding: 0 18px;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.floating-cta a:hover,
.floating-cta a:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
}

.floating-call {
  background: linear-gradient(135deg, var(--brand), #e79f6f);
  color: #fff;
}

.floating-whatsapp {
  background: linear-gradient(135deg, #1f9d5a, #37bf74);
  color: #fff;
}

/* 6) Ajuste fino del menú y botones superiores */
.main-nav ul {
  align-items: center;
}

.main-nav a {
  white-space: nowrap;
}

/* 7) Responsive: sin romper lo que ya tienes */
@media (max-width: 1024px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-header .button-row {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .site-header .button-row,
  .hero .button-row,
  .footer-actions,
  .hero-metrics {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .button,
  .hero .button,
  .footer-actions .button {
    width: 100%;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .floating-cta a {
    width: 100% !important;
    min-width: 0;
  }
}

/* ===== PARCHE CONTENEDOR TRANSPARENTE HERO ===== */

.hero-services {
  position: relative;
  z-index: 2;
}

.hero-services .service-box {
  display: block;
  width: 100%;
  padding: 28px 24px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 42px rgba(29, 35, 48, 0.22) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-services .service-box h2,
.hero-services .service-box p,
.hero-services .service-key-list a {
  color: #fff;
}

.hero-services .service-box p {
  margin: 0 0 16px;
  color: rgba(255, 248, 240, 0.9);
}

.hero-services .service-key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-services .service-key-list li {
  position: relative;
  padding-left: 28px;
}

.hero-services .service-key-list li::before {
  content: "🔑";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1rem;
  line-height: 1;
}

.hero-services .service-key-list a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
}

.hero-services .service-key-list a:hover {
  text-decoration: underline;
}

/* Respaldo si el navegador no renderiza backdrop-filter */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .hero-services .service-box {
    background: rgba(20, 24, 34, 0.74) !important;
  }
}
/* ===== PARCHE: enlaces blancos + llaves en el panel de servicios ===== */

.page-hero .glass-panel .check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.page-hero .glass-panel .check-list li {
  position: relative;
  padding-left: 2rem;
}

.page-hero .glass-panel .check-list li::before {
  content: "🔑";
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1;
}

.page-hero .glass-panel .check-list a,
.page-hero .glass-panel .check-list a:visited {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
}

.page-hero .glass-panel .check-list a:hover,
.page-hero .glass-panel .check-list a:focus-visible {
  color: #ffddc5 !important;
  text-decoration: underline;
}

.page-hero .glass-panel h2,
.page-hero .glass-panel p,
.page-hero .glass-panel strong {
  color: #ffffff;
}

/* ===== Refuerzo de contraste para tarjetas claras sobre secciones oscuras ===== */
.cards-grid .card h2,
.cards-grid .card h3,
.service-grid .service-card h2,
.service-grid .service-card h3,
.zones-grid .zone-card h2,
.zones-grid .zone-card h3,
.summary-grid .card h2,
.summary-grid .card h3,
.card h2,
.card h3,
.service-card h2,
.service-card h3,
.zone-card h2,
.zone-card h3 {
  color: var(--ink);
}

.cards-grid .card p,
.service-grid .service-card p,
.zones-grid .zone-card p,
.summary-grid .card p,
.card p,
.service-card p,
.zone-card p,
.card li,
.service-card li,
.zone-card li {
  color: var(--muted);
}

.cards-grid .card a:not(.button),
.service-grid .service-card a:not(.button),
.zones-grid .zone-card a:not(.button),
.summary-grid .card a:not(.button),
.card a:not(.button),
.service-card a:not(.button),
.zone-card a:not(.button) {
  color: var(--brand-deep);
}


/* ===== AJUSTE FINAL: contraste, FAQ desplegable y footer GBP ===== */
.button,
.button:visited,
.button-primary,
.button-primary:visited,
.button-secondary,
.button-secondary:visited {
  color: #fff !important;
  text-decoration: none;
}

.band h2,
.band h3,
.band p,
.band li,
.footer-mini-map + .footer-links,
.card h2,
.card h3,
.card p,
.service-card h2,
.service-card h3,
.service-card p,
.zone-card h2,
.zone-card h3,
.zone-card p,
.table-card h2,
.table-card h3,
.table-card p {
  color: var(--ink);
}

.band a:not(.button),
.card a:not(.button),
.service-card a:not(.button),
.zone-card a:not(.button),
.table-card a:not(.button) {
  color: var(--brand-deep);
}

.faq-accordion-list {
  display: grid;
  gap: 1rem;
}

.faq-accordion {
  border: 1px solid rgba(191, 91, 44, 0.22);
  border-radius: 22px;
  background: #fffdfa;
  overflow: hidden;
}

.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #2d7f94);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-accordion[open] summary::after {
  content: '–';
}

.faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.footer-meta-links span {
  color: rgba(255,248,240,.82);
}

.footer-mini-map iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.site-footer .summary-grid h3,
.site-footer .summary-grid a,
.site-footer .summary-grid span,
.site-footer .summary-grid p {
  color: rgba(255,248,240,.86);
}

.site-footer .summary-grid a:hover,
.site-footer .summary-grid a:focus-visible {
  color: #fff;
}

/* ===== AJUSTES FINALES 2026: CTA horizontal, footer de referencias y bloque comercial ===== */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.seo-commercial-block p + p {
  margin-top: 0.9rem;
}

.footer-reference-links {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,248,240,.82);
}

.footer-reference-links a {
  color: rgba(255,248,240,.92);
}

.footer-reference-links a:hover,
.footer-reference-links a:focus-visible {
  color: #fff;
}

.floating-cta {
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.floating-cta a {
  width: auto !important;
  min-width: 170px;
  height: 52px !important;
  border-radius: 999px !important;
}

@media (max-width: 760px) {
  .floating-cta {
    left: 12px;
    right: 12px;
    justify-content: center;
  }

  .floating-cta a {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}



/* --- V3 commercial cleanup + recommendation band --- */
.hg-section {
  padding: 0 0 2rem;
}

.hg-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hg-cta-band {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(191,91,44,.12), rgba(15,76,92,.10)), var(--paper);
  border: 1px solid rgba(191,91,44,.18);
  box-shadow: var(--shadow);
}

.hg-cta-band h2 {
  margin: 0 0 .8rem;
  color: var(--brand-deep);
}

.hg-cta-band p {
  margin: 0;
  line-height: 1.8;
}

.hg-cta-band a {
  color: var(--brand);
  font-weight: 600;
}

.hg-cta-band a:hover,
.hg-cta-band a:focus-visible {
  color: var(--brand-deep);
}

.seo-commercial-block p {
  color: var(--ink);
}

.seo-commercial-block a {
  font-weight: 600;
}

.floating-cta {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  z-index: 60 !important;
}

.floating-cta a {
  width: auto !important;
  min-width: 146px !important;
  height: 52px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  .floating-cta {
    left: 12px !important;
    right: 12px !important;
    justify-content: space-between !important;
  }

  .floating-cta a {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  .hg-cta-band {
    padding: 1.3rem;
  }
}
/* codex-local-fixes */
img, svg, video, iframe { max-width: 100%; }
iframe { display: block; }
.button-row, .hero-actions, .inline-actions, .top-actions, .footer-links, .footer-actions, .header-actions { gap: 12px; flex-wrap: wrap; }
.container, .wrap { width: min(100% - 32px, 1200px); }
details { margin-top: 14px; }
summary { cursor: pointer; }
.faq-answer p, p, li, a { overflow-wrap: anywhere; }


/* codex-global-route-fixes */
.brand img,
.site-header .brand img,
.navbar-brand img,
.header-logo img,
.logo img {
  width: min(220px, 100%);
  max-width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.footer-logo,
.site-footer .brand img,
.site-footer .logo img,
footer .brand img,
footer img[alt*="logo" i],
footer img[alt*="cerrajero" i] {
  width: min(180px, 100%);
  max-width: 100%;
  max-height: 140px;
  height: auto;
  object-fit: contain;
}

#nuevas-rutas-locales details {
  margin-top: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(17, 36, 61, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(17, 36, 61, 0.08);
}

#nuevas-rutas-locales summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
}

#nuevas-rutas-locales summary::-webkit-details-marker {
  display: none;
}

#nuevas-rutas-locales .footer-links,
#nuevas-rutas-locales .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#nuevas-rutas-locales .footer-links a,
#nuevas-rutas-locales .quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 36, 61, 0.12);
  box-shadow: 0 8px 20px rgba(17, 36, 61, 0.06);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

#nuevas-rutas-locales .footer-links a:hover,
#nuevas-rutas-locales .quick-links a:hover {
  transform: translateY(-1px);
}

.floating-actions .btn-whatsapp,
.floating-whatsapp,
a[href*="wa.me/34653373620"] {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand img,
  .site-header .brand img,
  .navbar-brand img,
  .header-logo img,
  .logo img {
    width: min(180px, 100%);
    max-height: 96px;
  }

  .footer-logo,
  .site-footer .brand img,
  .site-footer .logo img,
  footer .brand img,
  footer img[alt*="logo" i],
  footer img[alt*="cerrajero" i] {
    width: min(150px, 100%);
    max-height: 112px;
  }

  #nuevas-rutas-locales .footer-links a,
  #nuevas-rutas-locales .quick-links a {
    width: 100%;
    justify-content: flex-start;
  }
}

#nuevas-rutas-locales summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #c9b000;
}

#nuevas-rutas-locales details[open] summary::after {
  content: "−";
}

/* SEO FOOTER UPGRADE START */
.hg-section {
  padding: 2.4rem 0;
}

.hg-container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hg-cta-band {
  padding: 1.8rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 76, 92, 0.1), rgba(191, 91, 44, 0.12)), var(--paper);
  border: 1px solid rgba(15, 76, 92, 0.16);
  box-shadow: var(--shadow);
}

.hg-cta-band h2 {
  margin-bottom: 0.75rem;
}

.hg-cta-band p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(231, 159, 111, 0.16), transparent 26%),
    linear-gradient(180deg, #161b25 0%, #11161f 100%);
}

.footer-shell {
  padding: 3.4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.footer-card {
  min-width: 0;
  padding: 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-card h3 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.05rem;
}

.footer-note,
.footer-card p,
.footer-card a {
  color: rgba(255, 248, 240, 0.84);
}

.footer-note {
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  line-height: 1.45;
}

.footer-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-legal {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 248, 240, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hg-cta-band,
  .footer-card {
    padding: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* SEO FOOTER UPGRADE END */
