/* =========================================================
   CERRAJERO SAN JOSÉ — Hoja de estilos común
   ========================================================= */

:root {
  --navy: #0b1220;
  --navy-2: #121c30;
  --navy-3: #1a2740;
  --amber: #ffb400;
  --amber-2: #ff8a00;
  --red: #e63946;
  --green: #25d366;
  --white: #ffffff;
  --light: #f3f5f9;
  --text: #1c2536;
  --muted: #8b98b0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.18);
  --font-title: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.05; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.accent { color: var(--amber); }

/* ---------- Barra superior de urgencias ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red), #c1121f);
  color: var(--white);
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  padding: 8px 12px;
}
.topbar a { text-decoration: underline; font-weight: 800; }
.topbar .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; margin-right: 8px; animation: blink 1.2s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Cabecera / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 4px 14px rgba(255, 180, 0, .4);
}
.logo-text { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--amber); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: #d7deeb; font-weight: 600; font-size: .95rem; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--amber); }

.nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: var(--navy); font-weight: 800; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 138, 0, .35); transition: transform .2s;
  white-space: nowrap;
}
.nav-call:hover { transform: translateY(-2px); }

/* Menú móvil sin JavaScript */
.menu-toggle { display: none; }
.menu-btn {
  display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-3); color: var(--white); font-size: 1.4rem; place-items: center;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--navy);
  box-shadow: 0 10px 26px rgba(255, 138, 0, .4);
}
.btn-whatsapp { background: var(--green); color: #063b1a; box-shadow: 0 10px 26px rgba(37, 211, 102, .35); }
.btn-outline { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 180, 0, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(230, 57, 70, .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 80px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: stretch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 180, 0, .12); border: 1px solid rgba(255, 180, 0, .4);
  color: var(--amber); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: #c9d3e6; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #c9d3e6; font-weight: 600; font-size: .95rem; }
.hero-badges span::before { content: "✔"; color: var(--amber); margin-right: 8px; font-weight: 800; }

.emergency-card {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(255, 180, 0, .35); border-radius: 24px; padding: 32px 28px; text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45); position: relative;
}
.emergency-card .siren { font-size: 3rem; animation: shake 2.4s infinite; }
@keyframes shake { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(12deg); } }
.emergency-card h3 { font-size: 1.9rem; margin-bottom: 6px; }
.emergency-card .big-phone {
  display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--amber); margin: 8px 0 18px; letter-spacing: .02em;
}
.emergency-card .btn { width: 100%; margin-top: 10px; }
.emergency-card small { display: block; margin-top: 14px; color: var(--muted); }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--amber); color: var(--navy); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 16px; text-align: center; font-weight: 800; border-right: 1px solid rgba(11, 18, 32, .15); }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: block; font-size: 1.7rem; }
.trust-item small { font-weight: 600; opacity: .8; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: #5c6a83; font-size: 1.1rem; }
.section-dark .section-head p { color: #b4c0d6; }
.kicker { color: var(--amber-2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-bottom: 8px; display: block; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border-top: 5px solid var(--amber); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 18, 32, .25); }
.card .icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 180, 0, .25), rgba(255, 138, 0, .15));
}
.card p { color: #5c6a83; margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: #5c6a83; }
.card ul li { margin-bottom: 4px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 34px 26px 28px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 24px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1.7rem;
  background: var(--amber); color: var(--navy);
}
.step p { color: #b4c0d6; margin: 0; }

/* ---------- Por qué elegirnos ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #dde3ee; }
.checklist li::before {
  content: "✔"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}
.checklist strong { display: block; }
.checklist span { color: #5c6a83; font-size: .95rem; }

.stat-box {
  background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: var(--white);
  border-radius: 24px; padding: 40px 34px; box-shadow: var(--shadow);
}
.stat-box .row { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.stat-box .row:last-child { border-bottom: 0; }
.stat-box .num { font-family: var(--font-title); font-size: 2.6rem; font-weight: 800; color: var(--amber); min-width: 90px; line-height: 1; }
.stat-box .row p { margin: 0; color: #c9d3e6; }

/* ---------- Zonas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--navy-3); color: var(--white); border: 1px solid rgba(255, 180, 0, .3);
}
.chip.main { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.section:not(.section-dark) .chip { background: var(--white); color: var(--navy); border-color: #d6ddea; }
.section:not(.section-dark) .chip.main { background: var(--amber); border-color: var(--amber); }

.zone-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.zone-box { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.zone-box h3 { display: flex; align-items: center; gap: 10px; }
.zone-box .chips { justify-content: flex-start; margin-top: 12px; }

/* ---------- Banda CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--navy);
  padding: 64px 0; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { font-size: 1.15rem; font-weight: 600; max-width: 60ch; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Páginas interiores ---------- */
.page-hero {
  color: var(--white); text-align: center; padding: 70px 0 60px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 180, 0, .2), transparent 70%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}
.page-hero p { color: #c9d3e6; max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--amber);
  border: 2px dashed rgba(255, 180, 0, .5); font-weight: 700; padding: 20px;
}
.photo-placeholder span { font-size: 4rem; display: block; }
.photo-placeholder small { color: #b4c0d6; font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  text-align: center; background: var(--white); border-radius: var(--radius); padding: 34px 24px;
  box-shadow: var(--shadow); border-bottom: 5px solid var(--amber);
}
.contact-card .icon { font-size: 2.6rem; margin-bottom: 8px; }
.contact-card .value { font-family: var(--font-title); font-size: 1.7rem; font-weight: 800; word-break: break-word; display: block; margin: 6px 0 16px; }
.contact-card .btn { width: 100%; }
.note-box {
  background: #fff8e5; border-left: 6px solid var(--amber); padding: 22px 26px; border-radius: 12px; margin-top: 40px;
}
.note-box ul { margin: 8px 0 0; padding-left: 20px; }

details {
  background: var(--white); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(11, 18, 32, .08);
}
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { margin: 12px 0 0; color: #5c6a83; }
.faq { max-width: 820px; margin: 0 auto; }

/* ---------- Pie de página ---------- */
.site-footer { background: #070c17; color: #b4c0d6; padding: 60px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 1.3rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--amber); }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; text-align: center; }

/* ---------- Botones flotantes ---------- */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.float-call { background: linear-gradient(135deg, var(--amber), var(--amber-2)); animation: pulse 2s infinite; }
.float-wa { background: var(--green); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 0, .65), 0 10px 26px rgba(0, 0, 0, .35); }
  70% { box-shadow: 0 0 0 18px rgba(255, 180, 0, 0), 0 10px 26px rgba(0, 0, 0, .35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0), 0 10px 26px rgba(0, 0, 0, .35); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .why-grid, .two-col { grid-template-columns: 1fr; }
  .cards, .steps, .values, .contact-cards { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(11, 18, 32, .15); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-call { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: 10px 4%; display: none; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  .nav { position: relative; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 54px 0 64px; }
  .cards, .steps, .values, .contact-cards, .zone-groups, .footer-grid { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Titular y botón de llamada (hero) ---------- */
.tagline {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--white);
  max-width: 20ch;
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 5px solid var(--amber);
}
.tagline span {
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-call {
  padding: 10px 28px 10px 12px;
  gap: 14px;
  animation: pulse 2s infinite;
}
.btn-call-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--navy); color: var(--white);
}
.btn-call-txt { display: flex; flex-direction: column; text-align: left; line-height: 1; }
.btn-call-txt small {
  font-family: var(--font-body); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px;
}
.btn-call-txt strong {
  font-family: var(--font-title); font-weight: 800;
  font-size: 2rem; letter-spacing: .02em;
}
