:root {
  --bg: #f4efe7;
  --paper: rgba(255, 255, 255, 0.92);
  --ink: #18212f;
  --muted: #5e6777;
  --line: rgba(24, 33, 47, 0.12);
  --brand: #123f57;
  --brand-soft: #1e607a;
  --accent: #d88d29;
  --accent-deep: #b46f13;
  --shadow: 0 24px 70px rgba(18, 63, 87, 0.12);
  --radius: 26px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 141, 41, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(18, 63, 87, 0.14), transparent 22%),
    linear-gradient(180deg, #fff8ef 0%, #f5efe6 45%, #f8f4ed 100%);
  font-family: Georgia, "Times New Roman", serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
p, li { line-height: 1.72; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.08; color: #0f3143; }
strong { color: #0c2c3c; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.top-strip { background: #0b2735; color: rgba(255, 255, 255, 0.94); }
.top-strip__inner, .top-strip__actions, .nav-shell, .site-menu, .hero-actions, .dual-cta, .footer-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-strip__inner { justify-content: space-between; padding: 0.8rem 0; }
.top-strip p { margin: 0; font-size: 0.95rem; max-width: 62ch; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-shell { justify-content: space-between; padding: 1rem 0; }
.brand img, .footer-logo { width: 220px; }
.site-menu a {
  font-weight: 700;
  position: relative;
  padding-bottom: 0.2rem;
}
.site-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-menu a:hover::after, .site-menu a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 0.7rem 1rem; font-size: 0.92rem; }
.btn--solid { background: var(--accent); color: #102838; }
.btn--solid:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--outline {
  background: transparent;
  border-color: rgba(18, 63, 87, 0.24);
  color: var(--brand);
}
.btn--outline:hover { background: var(--brand); color: #fff; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(216, 141, 41, 0.17);
  color: #12364d;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-home, .page-hero, .page-section { padding: 3.5rem 0; }
.hero-home { padding-top: 4.5rem; }
.hero-layout, .page-hero__grid, .split-grid, .card-grid, .faq-grid, .footer-grid, .footer-map__grid, .zone-columns, .contact-grid {
  display: grid;
  gap: 1.5rem;
}
.hero-layout { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero-home h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 11ch; }
.page-hero h1, .section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.hero-copy p { max-width: 64ch; font-size: 1.08rem; }
.hero-badges, .mini-links, .zone-pills, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.hero-badges span, .mini-links a, .zone-pills a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  padding: 0.7rem 0.95rem;
  font-weight: 700;
}
.hero-card, .panel, .service-card, .faq-card, .map-frame, .contact-card, .summary-banner, .table-wrap, .zone-block {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-card { overflow: hidden; display: grid; }
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-card__copy, .panel, .service-card__copy, .faq-card, .contact-card, .summary-banner, .zone-block { padding: 1.5rem; }
.service-card { overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-grid { grid-template-columns: 1fr 0.9fr; align-items: start; }
.page-hero__grid { grid-template-columns: 1fr 0.82fr; align-items: center; }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zone-columns, .contact-grid, .footer-map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-heading { margin-bottom: 1.8rem; max-width: 72ch; }
.ribbon {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-left: 5px solid var(--accent);
  background: rgba(216, 141, 41, 0.12);
  border-radius: 18px;
}
.footer-map {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(18, 63, 87, 0.06), rgba(18, 63, 87, 0.12));
}
.map-frame { overflow: hidden; }
.map-frame iframe { width: 100%; min-height: 360px; border: 0; }
.site-footer { background: #0d2531; color: rgba(255, 255, 255, 0.88); }
.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.9fr 0.9fr;
  padding: 3rem 0 2rem;
}
.site-footer h3, .site-footer a, .site-footer p { color: inherit; }
.site-footer a { display: block; margin-bottom: 0.6rem; }
.footer-bottom {
  justify-content: center;
  padding: 1rem 0 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: rgba(18, 63, 87, 0.08); color: #10384d; }
.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #102838;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
@media (max-width: 1080px) {
  .hero-layout, .split-grid, .page-hero__grid, .footer-map__grid, .contact-grid, .footer-grid, .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 0;
    background: #0f3143;
    color: #fff;
    font-weight: 700;
  }
  .site-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 251, 244, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-menu.is-open { display: flex; }
  .top-strip__inner, .top-strip__actions, .hero-actions, .dual-cta { flex-direction: column; align-items: stretch; }
  .hero-layout, .split-grid, .card-grid, .faq-grid, .footer-grid, .footer-map__grid, .page-hero__grid, .zone-columns, .contact-grid {
    grid-template-columns: 1fr;
  }
  .btn, .btn--small, .floating-cta { width: 100%; }
  .hero-home { padding-top: 3.2rem; }
  .brand img, .footer-logo { width: 190px; }
}
/* 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, .hg-container { width: min(100% - 32px, 1200px); margin-inline: auto; }
details { margin-top: 14px; }
summary { cursor: pointer; }
.faq-answer p, p, li, a { overflow-wrap: anywhere; }
.hg-section { padding: 32px 0; }
.hg-cta-band { padding: 24px; border-radius: 18px; background: rgba(0,0,0,.04); }


/* 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);
}

.site-footer .brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.site-footer .brand-name {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer .brand-copy {
  color: rgba(255, 248, 240, 0.78);
  font-size: 0.95rem;
}

.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 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.site-footer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  text-decoration: none;
}

.site-footer .button-primary {
  background: linear-gradient(135deg, #bf5b2c, #e79f6f);
  color: #fff;
}

.site-footer .button-secondary {
  background: linear-gradient(135deg, #0f4c5c, #2d7f94);
  color: #fff;
}

.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 */
