:root {
  --bg: #f4efe6;
  --bg-soft: #fbf8f2;
  --ink: #1f1a17;
  --muted: #625a53;
  --line: rgba(31, 26, 23, 0.1);
  --brand: #7b2d12;
  --brand-dark: #56200d;
  --brand-soft: #efe0d6;
  --accent: #d7a449;
  --green: #1ca86d;
  --dark: #24140f;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(45, 26, 19, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(123, 45, 18, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(215, 164, 73, 0.18), transparent 30%),
    var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

iframe {
  width: 100%;
  border: 0;
}

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

.site-frame {
  overflow: clip;
}

.topbar {
  background: linear-gradient(90deg, var(--dark), #43231b);
  color: rgba(255, 255, 255, 0.92);
}

.topbar-inner,
.nav-shell,
.topbar-actions,
.cta-row,
.hero-points,
.footer-bottom {
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.topbar-actions,
.cta-row,
.hero-points {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand img,
.footer-logo {
  width: 215px;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.site-nav a {
  font-weight: 700;
  color: var(--ink);
}

.site-nav a.is-active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  min-height: 42px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  padding: 5.2rem 0 4rem;
}

.hero-grid,
.intro-grid,
.zone-layout,
.map-layout,
.columns-2,
.contact-layout,
.page-grid,
.about-layout,
.split-layout,
.service-list-grid {
  display: grid;
  gap: 1.6rem;
}

.hero-grid,
.intro-grid,
.zone-layout,
.map-layout,
.contact-layout,
.about-layout,
.split-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.columns-2,
.page-grid,
.service-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.page-hero h1 {
  margin: 0.35rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.hero-card-copy p,
.service-card p,
.content-card p,
.contact-card p,
.zone-block p,
.timeline p,
.footer-grid p,
.footer-grid li,
.page-card p,
.split-panel p {
  color: var(--muted);
}

.eyebrow,
.section-kicker,
.badge,
.breadcrumb,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.light-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #ffe9ca;
}

.hero-card,
.service-card,
.content-card,
.contact-card,
.page-card,
.zone-block,
.faq-list details,
.final-cta-box,
.strip-grid article,
.timeline article,
.split-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

.hero-card-copy,
.service-card div,
.content-card,
.contact-card,
.page-card,
.zone-block,
.split-panel {
  padding: 1.55rem;
}

.hero-panel {
  display: flex;
  align-items: end;
}

.hero-points span,
.strip-grid article,
.timeline article {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(123, 45, 18, 0.08);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section {
  padding: 4.5rem 0;
}

.tight-section {
  padding-top: 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(123, 45, 18, 0.04), rgba(215, 164, 73, 0.08));
}

.section-dark {
  background: linear-gradient(135deg, #311812, #5d2a15);
  color: var(--white);
}

.section h2,
.page-card h2,
.content-card h2,
.contact-card h2,
.hero-card h2,
.final-cta-box h2,
.zone-copy h2,
.split-panel h2 {
  margin: 0.45rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.1;
}

.service-grid,
.faq-list,
.zone-grid {
  display: grid;
  gap: 1.3rem;
}

.service-grid,
.zone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card img,
.page-card img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.zone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.zone-list a {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(123, 45, 18, 0.1);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.process-panel {
  display: grid;
  gap: 2rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline article {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline p {
  color: rgba(255, 255, 255, 0.82);
}

.map-frame iframe {
  min-height: 420px;
  border-radius: var(--radius-xl);
}

.data-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.faq-list details {
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.final-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(130deg, #fff7ea, #ffffff);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: start;
}

.page-hero {
  padding-bottom: 2rem;
}

.page-hero .container > * {
  max-width: 860px;
}

.page-card ul,
.contact-card ul,
.content-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.zone-block {
  scroll-margin-top: 120px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(123, 45, 18, 0.14);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fffdf9;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, #25130e, #140c09);
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.2rem 0 2rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 0.55rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
  .hero-grid,
  .intro-grid,
  .zone-layout,
  .map-layout,
  .contact-layout,
  .about-layout,
  .split-layout,
  .footer-grid,
  .columns-2,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .strip-grid,
  .zone-grid,
  .page-grid,
  .service-list-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .topbar-inner,
  .footer-bottom,
  .final-cta-box {
    flex-direction: column;
    align-items: start;
  }

  .service-grid,
  .strip-grid,
  .zone-grid,
  .page-grid,
  .zone-list,
  .service-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .hero,
  .page-hero,
  .section {
    padding: 3.6rem 0;
  }

  .brand img,
  .footer-logo {
    width: 190px;
  }

  .topbar-actions,
  .cta-row,
  .contact-actions,
  .cta-stack {
    width: 100%;
  }

  .topbar-actions .btn,
  .cta-row .btn,
  .contact-actions .btn,
  .cta-stack .btn {
    width: 100%;
  }

  .floating-whatsapp {
    left: 1rem;
    text-align: center;
  }
}
/* 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 */
