/* =========================================================
   Cerrajería Wisky — estilos
   Colores tomados del logo: carbón #231F20 + dorado latón
   ========================================================= */

:root {
  --carbon: #231F20;
  --carbon-2: #2E2929;
  --carbon-3: #3A3434;
  --gold: #C9A043;
  --gold-light: #F0DC86;
  --gold-dark: #8F6A24;
  --cream: #F7F2E8;
  --cream-2: #EFE7D6;
  --ink: #231F20;
  --ink-soft: #5B5350;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1DA851;

  --gold-grad: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

section[id], [id="contacto"] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--carbon); padding: 10px 16px; z-index: 2000; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6em;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold-grad); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn i { font-size: 1.3em; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #06331A; }
.btn-wa:hover { background: var(--wa-dark); color: var(--white); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: var(--carbon); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--carbon);
  border-bottom: 1px solid rgba(201,160,67,.25);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: #E9E2D3; text-decoration: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right .2s ease;
}
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { right: 0; }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-grad); color: var(--carbon);
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em;
  padding: 9px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.header-call:hover { filter: brightness(1.08); }

.menu-btn { display: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(201,160,67,.16), transparent 70%),
    var(--carbon);
  color: #F2ECDF;
  padding: 72px 0 150px;
}
.hero-year {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-58%);
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(10rem, 30vw, 26rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201,160,67,.18);
  pointer-events: none; user-select: none;
}
.hero-inner { position: relative; max-width: 1180px; }
.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 800; text-transform: uppercase;
  max-width: 13ch; margin-bottom: .35em;
}
.hero h1 .gold { display: block; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40ch; color: #D9D1C1; }
.lead strong { color: var(--white); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #CFC6B4; font-size: .98rem; }
.hero-facts i { color: var(--gold); margin-right: 6px; }

.hero-key {
  position: absolute; left: -40px; bottom: 34px;
  width: min(900px, 95vw); height: auto;
  opacity: .9;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}

/* Estado abierto/cerrado */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 22px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #9A928A; }
.status.is-open .status-dot { background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
.status.is-closed .status-dot { background: #E0796B; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) { .status.is-open .status-dot { animation: none; } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }

/* Servicios */
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  border: 1px solid var(--cream-2);
  box-shadow: 0 1px 0 rgba(35,31,32,.04), 0 10px 30px -18px rgba(35,31,32,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px;
  background: var(--gold-grad); border-radius: 0 0 4px 4px;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(35,31,32,.45); }
.service-icon {
  width: 58px; height: 58px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--carbon); color: var(--gold-light);
  font-size: 1.5rem; margin-bottom: 20px;
}
.service p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.services-note { margin: 34px 0 0; color: var(--ink-soft); }
.services-note a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Cómo trabajamos */
.how { background: var(--cream-2); }
.how-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.how-text p { color: var(--ink-soft); max-width: 46ch; font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 20px 22px;
  border: 1px solid #E4DAC6;
}
.steps h3 { margin-bottom: .15em; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-n {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad); color: var(--carbon);
  font-family: var(--f-head); font-weight: 800; font-size: 1.4rem;
}

/* Historia */
.history { background: var(--carbon); color: #E9E2D3; }
.history h2 { color: var(--white); }
.history .eyebrow { color: var(--gold); }
.history-inner { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.history-text p { color: #CFC6B4; font-size: 1.1rem; max-width: 58ch; }
.history-badge {
  width: 240px; height: 240px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 10px var(--carbon), inset 0 0 0 12px rgba(201,160,67,.45);
  font-family: var(--f-head); text-transform: uppercase; text-align: center;
}
.hb-small { font-size: 1.1rem; letter-spacing: .25em; color: #CFC6B4; font-weight: 600; }
.hb-year {
  font-size: 4.6rem; font-weight: 800; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Horarios + contacto */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "hours contact" "map map";
  gap: 22px;
}
.hours-card, .contact-card {
  background: var(--white); border-radius: var(--radius); padding: 34px;
  border: 1px solid var(--cream-2);
  box-shadow: 0 10px 30px -20px rgba(35,31,32,.35);
}
.hours-card { grid-area: hours; }
.contact-card { grid-area: contact; scroll-margin-top: calc(var(--header-h) + 12px); }
.hours-card h2, .contact-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }

.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 1.05rem; }
.hours th, .hours td { padding: 14px 12px; border-bottom: 1px solid var(--cream-2); vertical-align: top; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today { background: #FBF5E4; }
.hours tr.today th { position: relative; }
.hours tr.today th::after {
  content: "Hoy"; margin-left: 10px;
  font-family: var(--f-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--carbon); color: var(--gold-light); padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
}
.hours tr.today td { color: var(--ink); font-weight: 600; }

.contact-list { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 6px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; padding: 10px 12px; margin: 0 -12px; border-radius: 10px;
  transition: background-color .15s ease;
}
.contact-list a:hover { background: var(--cream); }
.contact-list i {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--carbon); color: var(--gold-light); font-size: 1.15rem;
}
.contact-list .fa-whatsapp { background: var(--wa); color: var(--white); font-size: 1.4rem; }
.contact-list span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.contact-list strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { color: var(--ink-soft); font-size: .9rem; }

.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--cream-2); color: var(--ink); font-size: 1.15rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--carbon); border-color: var(--carbon); color: var(--gold-light); }

.map {
  grid-area: map; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--cream-2); min-height: 340px; background: var(--cream-2);
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--carbon); color: #BDB4A3; padding: 48px 0 40px; text-align: center; border-top: 1px solid rgba(201,160,67,.25); }
.footer-inner img { height: 64px; width: auto; margin: 0 auto 18px; }
.site-footer p { margin: 0 0 6px; font-size: .98rem; }
.site-footer a { color: #E9E2D3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.copy { font-size: .88rem; opacity: .75; }

/* ---------- Barra fija celular ---------- */
.mobile-bar { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
  .nav { gap: 20px; }
}

@media (max-width: 980px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .how-inner { grid-template-columns: 1fr; gap: 36px; }
  .history-inner { grid-template-columns: 1fr; gap: 36px; justify-items: start; }
  .history-badge { width: 190px; height: 190px; }
  .hb-year { font-size: 3.6rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .header-call { margin-left: auto; }

  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px;
    background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: #E9E2D3; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0;
    background: var(--carbon); border-bottom: 1px solid rgba(201,160,67,.25);
    padding: 6px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1.2rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .visit-grid { grid-template-columns: 1fr; grid-template-areas: "hours" "contact" "map"; }
  .hours-card, .contact-card { padding: 26px 22px; }

  /* barra inferior */
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--carbon); border-top: 1px solid rgba(201,160,67,.3);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; border-radius: 10px; text-decoration: none;
    font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase;
  }
  .mobile-bar i { font-size: 1.25em; }
  .mb-call { background: var(--gold-grad); color: var(--carbon); }
  .mb-wa { background: var(--wa); color: #06331A; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 110px; }
  .hero-key { bottom: 24px; left: -30px; width: 120vw; }
  .cta .btn { flex: 1 1 100%; }
  .hero-facts { flex-direction: column; }
  .grid-services { grid-template-columns: 1fr; gap: 14px; }
  .service { padding: 24px 20px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  .service::before { left: 20px; right: 20px; }
  .service-icon { width: 50px; height: 50px; margin: 0; grid-row: span 2; font-size: 1.3rem; }
  .service h3 { margin: 0 0 .15em; font-size: 1.3rem; }
  .hours th, .hours td { padding: 12px 6px; }
  .map, .map iframe { min-height: 280px; }
}

/* =========================================================
   Urgencias 24 hs + Historia (línea de tiempo)
   ========================================================= */
.urgent {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(224,121,107,.12); border: 1px solid rgba(224,121,107,.45);
  color: #F6DCD6; text-decoration: none; font-size: 1rem;
  transition: background-color .2s ease;
}
.urgent:hover { background: rgba(224,121,107,.22); }
.urgent strong { color: var(--white); }
.urgent-tag {
  flex: none;
  font-family: var(--f-head); font-weight: 800; font-size: 1rem; letter-spacing: .05em;
  background: #D9534A; color: var(--white); padding: 4px 10px; border-radius: 999px;
}

.grid-services { grid-template-columns: repeat(3, 1fr); }
.service p a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.service-urgent { background: var(--carbon); border-color: var(--carbon); color: #EDE6D8; }
.service-urgent::before { background: #D9534A; }
.service-urgent .service-icon { background: #D9534A; color: var(--white); }
.service-urgent h3 { color: var(--white); }
.service-urgent p { color: #CFC6B4; }
.service-urgent p a { color: var(--gold-light); }

.how-urgent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-left: 4px solid #D9534A;
  padding: 16px 18px; border-radius: 0 10px 10px 0;
  color: var(--ink) !important; max-width: 52ch;
}
.how-urgent i { color: #D9534A; margin-top: 4px; }
.how-urgent a { color: var(--ink); font-weight: 600; white-space: nowrap; }

.hours tr.hours-urgent th { color: #B8433B; }
.hours tr.hours-urgent td { color: var(--ink); }
.hours tr.hours-urgent a { color: var(--ink); font-weight: 600; }

.timeline {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px;
  background: var(--gold-grad); opacity: .55; border-radius: 2px;
}
.timeline li { position: relative; padding: 38px 18px 0 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--carbon); border: 3px solid var(--gold);
}
.timeline li:last-child::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(201,160,67,.2); }
.tl-year {
  display: block; font-family: var(--f-head); font-weight: 800; font-size: 2.1rem; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.timeline h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .3em; }
.timeline p { color: #BDB4A3; font-size: .97rem; margin: 0; }


@media (max-width: 980px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; padding-left: 4px; }
  .timeline::before { left: 13px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
  .timeline li { padding: 0 0 0 44px; }
  .timeline li::before { left: 4px; top: 4px; }
  .tl-year { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .grid-services { grid-template-columns: 1fr; }
  .urgent { border-radius: 14px; align-items: flex-start; padding: 10px 14px 10px 10px; }
}
.nowrap { white-space: nowrap; }

/* Fotos de la historia */
.photos {
  display: grid; gap: 18px; margin-top: 56px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-width: 920px;
}
.photo { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--carbon-2); border: 1px solid rgba(201,160,67,.3); }
.photo-main { grid-row: span 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.03); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(20,17,17,.88));
  color: #EDE6D8; font-size: .92rem; font-weight: 500;
}
@media (max-width: 560px) {
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; margin-top: 40px; }
  .photo-main { grid-column: span 2; grid-row: auto; }
  .photo:not(.photo-main) img { aspect-ratio: 300 / 209; }
  .photo figcaption { font-size: .8rem; padding: 20px 10px 8px; }
}
@media (max-width: 560px) {
  .photo:not(.photo-main) figcaption { position: static; background: none; padding: 8px 10px 9px; color: #CFC6B4; line-height: 1.3; }
}
