:root{
  --bg:#f2ede4;
  --bg-soft:#fcfaf6;
  --ink:#162220;
  --ink-soft:#596664;
  --line:rgba(22,34,32,.12);
  --brand:#1c2f2e;
  --brand-strong:#0d1c1d;
  --brand-soft:#e4ece9;
  --accent:#cf7a1f;
  --accent-strong:#aa5612;
  --accent-soft:#fff2e3;
  --ok:#2c7754;
  --white:#ffffff;
  --shadow:0 24px 52px rgba(13,28,29,.12);
  --radius-xl:34px;
  --radius-lg:26px;
  --radius-md:20px;
  --radius-sm:14px;
  --container:min(1200px, calc(100% - 32px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Manrope",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(207,122,31,.16), transparent 24%),
    radial-gradient(circle at right center, rgba(28,47,46,.08), transparent 28%),
    linear-gradient(180deg, #f6f1e7 0%, #fbf8f2 42%, #eef3ef 100%);
  line-height:1.65;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
iframe{border:0}
.container{width:var(--container);margin:0 auto}
.site-shell{overflow:hidden}

.topbar{
  background:linear-gradient(90deg, var(--brand) 0%, #264342 100%);
  color:rgba(255,255,255,.9);
}
.topbar-inner{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:14px;
}
.topbar p{margin:0}
.topbar-links{display:flex;gap:18px;flex-wrap:wrap;font-weight:800}
.topbar-links a{color:#ffd6a7}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:blur(14px);
  background:rgba(252,250,246,.92);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  min-height:92px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand img{
  width:64px;
  height:64px;
  object-fit:contain;
  object-position:center;
  border-radius:18px;
  background:var(--white);
  padding:4px;
  box-shadow:0 12px 24px rgba(13,35,41,.12);
}
.brand span{display:grid;gap:2px}
.brand strong{
  font-family:"Urbanist",sans-serif;
  font-size:22px;
  line-height:1;
}
.brand small{color:var(--ink-soft);font-size:13px}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--brand);
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
}
.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}
.site-nav a{
  font-weight:800;
  color:var(--brand);
  position:relative;
  padding:8px 0;
}
.site-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:1px;
  width:100%;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .24s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after{transform:scaleX(1)}

.header-cta,
.button-row,
.hero-actions,
.cta-actions,
.pill-row{display:flex;gap:12px;flex-wrap:wrap}

.btn{
  min-height:50px;
  padding:0 22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 18px 28px rgba(13,35,41,.16)}
.btn-primary{
  color:var(--white);
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}
.btn-secondary{
  color:var(--brand);
  background:var(--white);
  border:1px solid var(--line);
}
.btn-dark{
  color:var(--white);
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.hero,
.page-hero{padding:34px 0 18px}
.hero-grid,
.page-hero-grid,
.split-grid,
.contact-grid,
.two-col{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:24px;
  align-items:stretch;
}
.hero-copy,
.page-hero-copy{
  color:var(--white);
  background:
    radial-gradient(circle at top right, rgba(207,122,31,.24), transparent 22%),
    linear-gradient(145deg, rgba(28,47,46,.98) 0%, rgba(13,28,29,.95) 72%);
  border-radius:var(--radius-xl);
  padding:42px;
  box-shadow:var(--shadow);
}
.hero-card,
.page-hero-card,
.panel,
.service-card,
.feature-card,
.review-card,
.zone-card,
.faq-item,
.stat-card,
.map-card,
.contact-card,
.content-card,
.breadcrumb,
.cta-band,
.process-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.hero-card,
.page-hero-card,
.panel,
.contact-card,
.content-card,
.process-card,
.feature-card,
.service-card,
.review-card,
.zone-card,
.faq-item,
.stat-card{padding:26px}
.hero-card{
  display:grid;
  gap:18px;
  background:
    linear-gradient(180deg, rgba(28,47,46,.05), rgba(44,119,84,.08)),
    var(--white);
}
.hero-card img,
.page-hero-card img{
  width:100%;
  height:auto;
  border-radius:20px;
  object-fit:cover;
}

.eyebrow,
.section-kicker,
.mini-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:8px 14px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.eyebrow{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.94);
}
.section-kicker{
  color:var(--accent-strong);
  background:var(--accent-soft);
  margin-bottom:12px;
}
.mini-label{
  color:var(--ok);
  background:rgba(46,122,80,.1);
}

h1,h2,h3{
  margin:0 0 14px;
  font-family:"Urbanist",sans-serif;
  line-height:1.08;
}
h1{font-size:clamp(2.5rem, 5vw, 4.6rem)}
h2{font-size:clamp(1.8rem, 3vw, 3rem)}
h3{font-size:1.3rem}
p{margin:0 0 14px}
.lead{font-size:1.08rem}
.muted{color:var(--ink-soft)}
.hero-copy a,
.page-hero-copy a,
.content-card a,
.feature-card a,
.contact-card a,
.review-card a,
.footer-links a,
.text-link{
  text-decoration:underline;
  text-decoration-color:rgba(231,131,31,.55);
  text-underline-offset:3px;
}

.hero-points,
.check-list,
.contact-list,
.footer-links,
.breadcrumb-list,
.stats-list{
  list-style:none;
  padding:0;
  margin:0;
}
.hero-points,
.check-list,
.contact-list,
.stats-list{display:grid;gap:10px}
.hero-points li,
.check-list li,
.contact-list li,
.stats-list li{
  position:relative;
  padding-left:24px;
}
.hero-points li::before,
.check-list li::before,
.contact-list li::before,
.stats-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.7em;
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.section{padding:30px 0}
.section + .section{padding-top:20px}
.section-soft{
  background:linear-gradient(180deg, rgba(23,52,61,.03), rgba(46,122,80,.04));
}
.section-dark{
  color:var(--white);
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}
.section-dark .section-kicker{
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
}
.section-dark .zone-card,
.section-dark .review-card{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  box-shadow:none;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.stats-grid,
.service-grid,
.feature-grid,
.zones-grid,
.reviews-grid,
.faq-grid,
.process-grid{
  display:grid;
  gap:18px;
}
.stats-grid{grid-template-columns:repeat(4, minmax(0,1fr))}
.service-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
.feature-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
.zones-grid{grid-template-columns:repeat(4, minmax(0,1fr))}
.reviews-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
.faq-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
.process-grid{grid-template-columns:repeat(4, minmax(0,1fr))}

.service-card h3,
.feature-card h3,
.zone-card h3,
.review-card h3,
.process-card h3{margin-bottom:10px}

.split-grid .panel-stack,
.two-col .panel-stack,
.contact-grid .panel-stack{display:grid;gap:18px}

.cta-band{
  padding:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(135deg, rgba(207,122,31,.14), rgba(28,47,46,.08));
}

.map-card{overflow:hidden}
.map-card iframe{display:block;width:100%;min-height:420px}

.breadcrumb{
  margin:18px 0 10px;
  padding:14px 18px;
}
.breadcrumb-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--ink-soft);
  font-size:14px;
}
.breadcrumb-list li:not(:last-child)::after{
  content:"/";
  margin-left:8px;
  color:rgba(19,35,40,.38);
}

.info-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.stat-card strong{
  display:block;
  margin-bottom:8px;
  font-family:"Urbanist",sans-serif;
  font-size:1.18rem;
}

.contact-form{
  display:grid;
  gap:14px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.field{
  display:grid;
  gap:8px;
}
.field label{
  font-size:14px;
  font-weight:800;
  color:var(--brand);
}
.field input,
.field textarea{
  width:100%;
  border:1px solid rgba(19,35,40,.18);
  border-radius:16px;
  background:var(--bg-soft);
  color:var(--ink);
  padding:14px 16px;
}
.field textarea{
  min-height:140px;
  resize:vertical;
}
.form-note{
  font-size:14px;
  color:var(--ink-soft);
}

details.faq-item{
  overflow:hidden;
}
details.faq-item summary{
  list-style:none;
  cursor:pointer;
  font-family:"Urbanist",sans-serif;
  font-size:1.15rem;
  font-weight:700;
}
details.faq-item summary::-webkit-details-marker{display:none}
details.faq-item[open]{background:linear-gradient(180deg, rgba(231,131,31,.06), rgba(255,255,255,1))}
details.faq-item p{margin-top:12px}

.site-footer{
  margin-top:26px;
  padding:34px 0 20px;
  color:rgba(255,255,255,.86);
  background:linear-gradient(180deg, #112120 0%, #091313 100%);
}
.map-wrap{
  display:grid;
  grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);
  gap:18px;
  align-items:stretch;
  padding-top:20px;
}
.map-note{
  padding:24px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  background:rgba(255,255,255,.06);
}
.map-note h3{margin-bottom:10px}
.map-note p{color:rgba(255,255,255,.72)}
.site-footer iframe{
  display:block;
  width:100%;
  min-height:240px;
  border-radius:22px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr .9fr;
  gap:20px;
}
.brand-footer img{background:rgba(255,255,255,.08)}
.footer-copy{max-width:380px;color:rgba(255,255,255,.7)}
.footer-links{display:grid;gap:10px;color:rgba(255,255,255,.78)}
.footer-links a:hover{color:#ffd6a7}
.footer-bottom{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:14px;
  color:rgba(255,255,255,.62);
}

.mobile-only{display:none}

@media (max-width:1080px){
  .nav-wrap{
    grid-template-columns:auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cta cta";
    padding:18px 0;
  }
  .brand{grid-area:brand}
  .menu-toggle{
    grid-area:toggle;
    display:inline-flex;
    align-items:center;
    justify-self:end;
  }
  .site-nav{
    grid-area:nav;
    justify-content:flex-start;
    display:none;
    padding-top:8px;
  }
  .site-nav.is-open{display:flex}
  .header-cta{grid-area:cta}
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .contact-grid,
  .two-col,
  .footer-grid,
  .map-wrap{grid-template-columns:1fr}
  .stats-grid,
  .zones-grid,
  .process-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .service-grid,
  .feature-grid,
  .reviews-grid,
  .faq-grid,
  .info-strip{grid-template-columns:repeat(2, minmax(0,1fr))}
}

@media (max-width:720px){
  .topbar-inner,
  .section-head,
  .cta-band,
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .hero-copy,
  .page-hero-copy,
  .hero-card,
  .page-hero-card,
  .panel,
  .service-card,
  .feature-card,
  .review-card,
  .zone-card,
  .faq-item,
  .stat-card,
  .contact-card,
  .content-card,
  .process-card,
  .cta-band{padding:22px}
  .header-cta{width:100%}
  .header-cta .btn{flex:1}
  .hero-actions .btn,
  .cta-actions .btn,
  .button-row .btn{width:100%}
  .form-grid,
  .stats-grid,
  .service-grid,
  .feature-grid,
  .zones-grid,
  .reviews-grid,
  .faq-grid,
  .process-grid,
  .info-strip{grid-template-columns:1fr}
  .brand strong{font-size:19px}
  .brand img{width:56px;height:56px}
  .map-card iframe{min-height:340px}
  .mobile-only{display:inline-flex}
}


/* 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: "−";
}
