:root {
  --navy: #0a2d52;
  --navy-deep: #071f39;
  --gold: #e0b11f;
  --gold-soft: #f2d779;
  --ink: #17304b;
  --text: #2e3e4e;
  --muted: #6c7b8c;
  --line: #dbe3ec;
  --paper: #ffffff;
  --paper-soft: #f5f7fa;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 48px rgba(7, 31, 57, 0.12);
  --button-height: 54px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 177, 31, 0.16), transparent 26%),
    linear-gradient(180deg, #f9fbfd 0%, #eef3f7 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Layout base */
.topbar-inner,
.header-inner,
.hero-grid,
.trust-grid,
.split-intro,
.feature-grid,
.zones-layout,
.footer-grid,
.footer-bottom {
  display: flex;
  gap: 1.2rem;
}

.topbar-inner,
.header-inner,
.footer-bottom {
  align-items: center;
  justify-content: space-between;
}

.page-hero-grid,
.contact-map-grid,
.prose-grid {
  display: grid;
  gap: 32px;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.contact-map-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: start;
}

.prose-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.hero-grid > *,
.page-hero-grid > *,
.contact-map-grid > *,
.feature-grid > *,
.prose-grid > * {
  min-width: 0;
}

.topbar {
  background: var(--navy-deep);
  color: #f4f7fb;
  font-size: 0.95rem;
}

.topbar p,
.footer-bottom p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mini-link {
  color: var(--gold-soft);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 236, 0.8);
}

.header-inner {
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.brand small {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.site-nav a {
  padding: 0.75rem 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  background: var(--gold);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

/* Heroes */
.hero,
.page-hero {
  padding: 56px 0;
}

.hero-home {
  background: linear-gradient(135deg, rgba(10, 45, 82, 0.96), rgba(7, 31, 57, 0.95));
  color: #fff;
}

.hero-grid,
.page-hero-grid,
.contact-map-grid {
  align-items: center;
}

.page-hero-copy,
.page-hero-media,
.contact-card,
.map-card,
.detail-card,
.info-box {
  min-width: 0;
}

.hero-media,
.page-hero-media,
.map-card {
  overflow: hidden;
  border-radius: 24px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-home .eyebrow {
  color: var(--navy-deep);
  background: var(--gold-soft);
}

.page-hero .eyebrow,
.section-kicker {
  color: var(--navy);
  background: rgba(224, 177, 31, 0.16);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-home h1,
.hero-home p,
.hero-home li,
.dark-panel h2,
.dark-panel li,
.dark-panel p {
  color: #fff;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

p,
li,
summary {
  font-size: 1rem;
  line-height: 1.75;
}

.hero-copy p,
.page-hero p {
  max-width: 62ch;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  min-height: var(--button-height);
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 31, 57, 0.12);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #c89608);
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-hero .btn-secondary,
.section .btn-secondary,
.final-cta .btn-secondary {
  background: rgba(10, 45, 82, 0.08);
  border-color: rgba(10, 45, 82, 0.12);
}

.hero-points,
.check-list,
.contact-list,
.site-footer ul,
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-points li,
.check-list li,
.contact-list li,
.site-footer li,
.process-list li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-points li::before,
.check-list li::before,
.contact-list li::before,
.site-footer li::before,
.process-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--gold);
}

.hero-media {
  position: relative;
}

.hero-media img,
.page-side-image,
.rounded-image {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-side-image {
  height: clamp(320px, 42vw, 560px);
  border-radius: 24px;
}

.rounded-image {
  height: clamp(280px, 34vw, 460px);
  border-radius: 20px;
}

.hero-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  width: min(260px, 75%);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  color: var(--navy);
}

.hero-card span {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.trust-band {
  margin-top: -1.5rem;
}

.trust-grid {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.trust-grid article,
.simple-card,
.detail-card,
.info-box,
.contact-card,
.map-card,
.highlight-box,
.zone-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.7);
}

.split-intro {
  align-items: start;
  justify-content: space-between;
}

.section-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.cards-grid,
.gallery-grid,
.zone-card-grid,
.service-list-grid {
  display: grid;
  gap: 1.2rem;
}

.cards-grid,
.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.gallery-grid img {
  border-radius: var(--radius-md);
  min-height: 240px;
  object-fit: cover;
}

.service-card,
.feature-panel,
.final-cta-box {
  border-radius: var(--radius-lg);
}

.service-card {
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.service-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding: 0 1.2rem;
}

.service-card h3 {
  margin-top: 1.2rem;
}

.service-card p {
  padding-bottom: 1.3rem;
}

.feature-grid {
  align-items: stretch;
}

.feature-panel {
  padding: 1.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dark-panel {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-color: transparent;
}

.text-link {
  color: var(--navy);
  font-weight: 800;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
}

.zone-tags span {
  background: rgba(10, 45, 82, 0.08);
  color: var(--navy);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
}

.contact-card,
.map-card {
  height: 100%;
}

.contact-list-large li {
  margin-bottom: 0.65rem;
}

.final-cta {
  padding-top: 0;
}

.final-cta-box {
  background: linear-gradient(135deg, var(--navy), #184979);
  color: #fff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.final-cta-box h2,
.final-cta-box p {
  color: #fff;
}

.site-footer {
  background: var(--navy-deep);
  color: #d6deea;
  padding: 3rem 0 5rem;
}

.footer-grid {
  align-items: start;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
}

.brand-footer strong,
.brand-footer small {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: none;
  gap: 0.75rem;
}

.sticky-cta a {
  flex: 1;
  min-height: var(--button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.sticky-cta a:first-child {
  background: var(--navy);
  color: #fff;
}

.sticky-cta a:last-child {
  background: var(--gold);
  color: var(--navy-deep);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--muted);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(224, 177, 31, 0.16), rgba(10, 45, 82, 0.04));
}

.urgent-hero {
  background: linear-gradient(135deg, rgba(224, 177, 31, 0.14), rgba(10, 45, 82, 0.04));
}

.contact-hero {
  background: linear-gradient(135deg, rgba(10, 45, 82, 0.08), rgba(224, 177, 31, 0.12));
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq-list details:first-child {
  border-top: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq-list p {
  margin: 0.8rem 0 0;
}

@media (max-width: 991px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.8rem 0;
  }

  .hero-grid,
  .trust-grid,
  .split-intro,
  .feature-grid,
  .zones-layout,
  .footer-grid,
  .final-cta-box {
    flex-direction: column;
  }

  .page-hero-grid,
  .contact-map-grid,
  .prose-grid {
    grid-template-columns: 1fr;
  }

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

  .page-side-image {
    height: clamp(260px, 52vw, 420px);
  }

  .rounded-image {
    height: clamp(240px, 48vw, 380px);
  }

  .map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: start;
    padding: 0.75rem 0;
  }

  .hero,
  .page-hero,
  .section {
    padding: 3rem 0;
  }

  .cards-grid,
  .gallery-grid,
  .service-list-grid,
  .zone-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .trust-band {
    margin-top: 0;
  }

  .sticky-cta {
    display: flex;
  }

  .site-footer {
    padding-bottom: 7rem;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 36px 0;
  }

  .page-hero-grid,
  .prose-grid,
  .contact-map-grid {
    gap: 24px;
  }

  .page-side-image,
  .rounded-image {
    height: 260px;
    border-radius: 18px;
  }

  .map-card {
    border-radius: 18px;
  }

  .map-card iframe {
    min-height: 280px;
  }
}
/* 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 */
