/* ============================================================
   Cerrajero El Grande — hoja de estilos principal
   Paleta: navy #1A2A44 · verde #2E7D32 · naranja #FF8C00
           gris #6B7280 · claro #F5F7FA
   ============================================================ */

:root {
  --navy: #1A2A44;
  --navy-dark: #101a2c;
  --green: #2E7D32;
  --orange: #FF8C00;
  --orange-dark: #e07b00;
  --gray: #6B7280;
  --light: #F5F7FA;
  --white: #ffffff;
  --border: #e3e7ee;
  --shadow: 0 8px 24px rgba(26, 42, 68, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 42, 68, 0.14);
  --radius: 14px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy a { color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Barra superior de urgencias ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar .container > * { min-width: 0; }
.topbar a { color: var(--orange); font-weight: 700; }
.topbar .topbar-badge { color: #cbd3e1; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link .logo-icon { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { color: var(--navy); font-size: 1.05rem; font-weight: 800; letter-spacing: .3px; }
.logo-text em { color: var(--orange); font-size: .82rem; font-weight: 800; font-style: normal; letter-spacing: .5px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-icon { height: 38px; width: auto; }
.footer-logo .logo-text strong { color: var(--white); }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a { font-weight: 600; font-size: .96rem; color: var(--navy); }
nav.main-nav a:hover { color: var(--orange); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block;
  color: #d7dce6;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: .4em; }
.hero p.lead { font-size: 1.1rem; color: #d7dce6; max-width: 55ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #d7dce6; }
.hero-trust svg { flex-shrink: 0; color: var(--orange); }
.hero-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--navy); margin-bottom: 12px; }
.hero-card ul { padding-left: 0; list-style: none; margin-bottom: 18px; }
.hero-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.hero-card ul li svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .84rem; color: var(--gray); padding: 14px 0; }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs .current { color: var(--navy); font-weight: 600; }

/* ---------- Page header (páginas interiores) ---------- */
.page-header { background: var(--light); padding: 34px 0 38px; border-bottom: 1px solid var(--border); }
.page-header .kicker { color: var(--green); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .6px; }
.page-header p.lead { color: var(--gray); max-width: 68ch; font-size: 1.05rem; }

/* ---------- Grids de tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon-badge {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--light);
  border-radius: 12px;
  color: var(--orange);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--navy); }
.card p { color: var(--gray); font-size: .95rem; flex-grow: 1; }
.card .card-link { font-weight: 700; color: var(--orange); font-size: .92rem; margin-top: 10px; }

.zone-card { border-left: 4px solid var(--green); }
.zone-card.pueblo { border-left-color: var(--orange); }

/* ---------- Secciones "por qué elegirnos" ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.reasons-grid .icon-badge {
  width: 60px; height: 60px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--green);
}

/* ---------- Pasos ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 22px 46px;
  border-left: 2px solid var(--border);
  margin-left: 17px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px; top: 0;
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}

/* ---------- Listas con check ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li svg { flex-shrink: 0; color: var(--green); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--gray); padding-bottom: 16px; margin: 0; }

/* ---------- Callout / CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 44px 0;
  border-radius: var(--radius);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn-navy { background: var(--navy); }
.cta-band .btn-outline { border-color: var(--white); }

/* ---------- Tarifas ---------- */
.tarifas-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tarifas-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tarifas-table th, .tarifas-table td { padding: 14px 18px; text-align: left; }
.tarifas-table thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.tarifas-table tbody tr:nth-child(even) { background: var(--light); }
.tarifas-table tbody tr:hover { background: #fdf1e0; }
.tarifas-table td.precio { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* ---------- Mapa de cobertura ---------- */
.leaflet-popup-content a { font-weight: 700; }

/* ---------- Tabla de zonas / mapa de cobertura ---------- */
.coverage-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 30px; padding: 0; list-style: none; }
.coverage-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 8px 0; }
.coverage-list li a { font-weight: 600; }
.coverage-list li span { color: var(--gray); font-size: .88rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #c7cede; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .92rem; }
.footer-grid a { color: #c7cede; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid p { color: #a4adc2; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .82rem; color: #8b95ab;
}
.footer-bottom a { color: #8b95ab; }
.footer-bottom a:hover { color: var(--orange); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Botón flotante llamada (móvil) ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--navy);
  padding: 10px 16px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.18);
}
.mobile-call-bar .btn { width: 100%; }

/* ---------- Formulario de contacto ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }

/* ---------- Contenido de artículo / página interior ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.4em; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.who-i-am-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.who-i-am-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.recognize-car-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.recognize-car-grid img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.recognize-car-solo { max-width: 720px; margin: 0 auto; }
.recognize-car-solo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.sidebar-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.sidebar-card h4 { margin-bottom: 10px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 16px; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card li a { font-weight: 600; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.tag-list li a, .tag-list li span {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.tag-list li a:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 70ch; margin-bottom: 34px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.muted { color: var(--gray); }
.small { font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .who-i-am-grid { grid-template-columns: 1fr; }
  .who-i-am-photo { max-width: 320px; margin: 0 auto; }
  .recognize-car-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .coverage-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed;
    top: 71px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-cta .btn-navy-desktop-only { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 40px 0; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 66px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .topbar .topbar-badge { font-size: .78rem; }
  .header-cta .btn-orange { padding: 11px 16px; font-size: .9rem; }
}
