/* Cerrajería Matías — estilos. Paleta tomada de las piezas originales (amarillo, negro, rojo). */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --yellow: #fff100;
  --yellow-soft: #fff7a3;
  --black: #121212;
  --ink: #1d1d1b;
  --muted: #55554f;
  --red: #d91f1b;
  --gray: #f4f4f0;
  --line: #e2e2dc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 18, 18, .10);
  --wrap: 1160px;
  --header-h: 72px;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-num: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--black); }
h1 { font-weight: 900; font-size: clamp(2rem, 6.4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-weight: 900; font-size: clamp(1.6rem, 4.4vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-weight: 800; font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: var(--yellow); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; border-radius: 999px; font-weight: 800; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn--dark { background: var(--black); color: var(--yellow); }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(18, 18, 18, .25); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--ghost { border-color: var(--black); color: var(--black); background: transparent; }
.btn--ghost:hover { background: var(--black); color: var(--yellow); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--line:hover { border-color: var(--yellow); color: var(--yellow); }

.eyebrow { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--black); background: var(--yellow); padding: .3em .7em; border-radius: 4px; margin-bottom: 1rem; }

/* Topbar */
.topbar { display: none; background: var(--black); color: #e9e9e4; font-size: .82rem; font-weight: 600; }
.topbar__in { display: flex; justify-content: flex-end; gap: 28px; padding-block: 7px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.topbar .ic { color: var(--yellow); }
.topbar a:hover { color: var(--yellow); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 4px solid var(--yellow); transition: box-shadow .2s ease; }
.header.is-scrolled { box-shadow: 0 6px 18px rgba(18, 18, 18, .08); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 54px; width: auto; }
.menu-btn { width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--black); display: grid; place-items: center; cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { content: ""; display: block; width: 22px; height: 2.5px; background: var(--yellow); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.menu-btn__bars::before { position: absolute; top: -7px; }
.menu-btn__bars::after { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 4px solid var(--yellow); padding: 8px 16px 20px; box-shadow: var(--shadow); display: none; }
.nav.is-open { display: block; }
.nav ul { list-style: none; }
.nav li a { display: block; padding: 14px 4px; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav li a:hover { color: var(--red); }
.nav__cta { margin-top: 16px; width: 100%; }

/* Hero */
.hero { background: var(--yellow); padding: 40px 0 48px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border: 22px solid rgba(18, 18, 18, .06); border-radius: 50%; pointer-events: none; }
.hero__in { display: grid; gap: 32px; position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: .45em; background: var(--red); color: var(--white); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; margin-bottom: 1.1rem; }
.hero__lead { font-size: 1.08rem; font-weight: 600; max-width: 34em; color: #2a2a26; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero__ctas .btn { flex: 1 1 220px; }

.contact-card { background: var(--black); color: var(--white); border-radius: 18px; padding: 26px 24px; box-shadow: 0 20px 40px rgba(18, 18, 18, .22); }
.contact-card__label { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #bdbdb5; }
.contact-card__big { display: block; font-family: var(--f-num); font-size: clamp(3rem, 13vw, 4.4rem); line-height: 1; color: var(--yellow); text-decoration: none; margin: 4px 0 14px; letter-spacing: .01em; }
.contact-card__mid { display: block; font-family: var(--f-num); font-size: 2.4rem; line-height: 1; color: var(--white); text-decoration: none; margin-top: 4px; }
.contact-card__big:hover, .contact-card__mid:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.contact-card hr { border: 0; border-top: 1px solid #3a3a36; margin: 18px 0; }
.contact-card__addr { display: flex; gap: .6em; font-weight: 600; margin-bottom: 18px; }
.contact-card__addr .ic { color: var(--yellow); margin-top: .2em; }
.contact-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Secciones */
.section { padding: 64px 0; }
.section--gray { background: var(--gray); }
.section__head { max-width: 640px; margin-bottom: 32px; }
.section__head p:last-child { color: var(--muted); }

.cards { list-style: none; display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--black); }
.card__ic { width: 52px; height: 52px; padding: 11px; border-radius: 12px; background: var(--yellow); color: var(--black); margin-bottom: 16px; }
.card p { color: var(--muted); flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; text-decoration: none; color: var(--black); min-height: 44px; align-self: flex-start; border-bottom: 2px solid var(--yellow); }
.card__link:hover { border-color: var(--black); }
.card--accent { background: var(--black); border-color: var(--black); }
.card--accent h3 { color: var(--yellow); }
.card--accent p { color: #d6d6cf; }
.card--accent .card__ic { background: var(--red); color: var(--white); }
.card--accent .card__link { color: var(--white); border-color: var(--red); }

/* Bloques destacados */
.feature { padding: 56px 0; background: var(--black); color: #e9e9e4; }
.feature h2 { color: var(--white); }
.feature--alt { background: var(--white); color: var(--ink); }
.feature--alt h2 { color: var(--black); }
.feature__in { display: grid; gap: 28px; align-items: center; }
.feature__media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--yellow); }
.feature__media img { width: 100%; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 5px var(--yellow), inset 0 0 0 9px var(--black); }
.feature .btn--dark { background: var(--yellow); color: var(--black); }
.feature--alt .btn--dark { background: var(--black); color: var(--yellow); }
.hint { font-size: .9rem; color: #bdbdb5; margin-top: 14px; }
.brands { font-size: .95rem; color: var(--muted); background: var(--gray); border-left: 4px solid var(--yellow); padding: 14px 16px; border-radius: 0 10px 10px 0; margin-bottom: 24px; }
.brands strong { color: var(--black); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* Nosotros */
.about { display: grid; gap: 36px; }
.about__copy p { color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--gray); border-radius: var(--radius); padding: 18px 18px; }
.steps__n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--yellow); font-family: var(--f-num); font-size: 1.7rem; line-height: 1; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Ubicación */
.location { display: grid; gap: 28px; align-items: center; }
.location__addr, .location__hours { display: flex; gap: .6em; font-weight: 600; }
.location__addr { font-size: 1.15rem; color: var(--black); }
.location__hours { color: var(--muted); }
.location__addr .ic, .location__hours .ic { margin-top: .25em; }
.location__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.location__panel { background: var(--yellow); border-radius: 18px; padding: 32px 28px; display: grid; position: relative; overflow: hidden; min-height: 220px; align-content: end; }
.location__panel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(18, 18, 18, .07) 46px 50px), repeating-linear-gradient(0deg, transparent 0 46px, rgba(18, 18, 18, .07) 46px 50px); }
.location__street, .location__num, .location__city { position: relative; font-family: var(--f-num); line-height: .95; color: var(--black); }
.location__street { font-size: 2.2rem; }
.location__num { font-size: 5.4rem; color: var(--red); }
.location__city { font-size: 1.6rem; }

/* FAQ */
.faq__list { display: grid; gap: 10px; max-width: 820px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
details[open] { border-color: var(--black); }
summary { list-style: none; cursor: pointer; font-weight: 800; padding: 18px 54px 18px 20px; position: relative; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA final */
.cta { background: var(--yellow); padding: 56px 0; }
.cta__in { display: grid; gap: 24px; align-items: center; }
.cta p { font-weight: 600; margin: 0; }
.cta__nums { display: grid; gap: 10px; }
.cta__big { display: inline-flex; align-items: center; justify-content: center; gap: .3em; background: var(--black); color: var(--yellow); text-decoration: none; font-family: var(--f-num); font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; padding: .3em .6em; border-radius: 14px; }
.cta__big .ic { width: .8em; height: .8em; }
.cta__small { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-weight: 800; text-decoration: none; min-height: 44px; }
.cta__big:hover { background: #000; }

/* Footer */
.footer { background: var(--black); color: #cfcfc8; padding: 48px 0 calc(28px + 76px); font-size: .95rem; }
.footer__in { display: grid; gap: 28px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer__nav { list-style: none; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__nav a { display: inline-block; padding: 6px 0; font-weight: 600; }
.footer__contact { display: grid; gap: 6px; align-content: start; font-weight: 700; color: var(--white); }
.footer__contact a { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; }
.footer__contact .ic { color: var(--yellow); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #2f2f2b; margin-top: 32px; padding-top: 20px; font-size: .82rem; color: #9a9a92; }
.footer__legal p { margin: 0; }
.footer__legal a { color: #cfcfc8; text-decoration: underline; text-underline-offset: 3px; }

/* Botón flotante WhatsApp (móvil) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: .5em; background: var(--black); color: var(--yellow); font-weight: 800; text-decoration: none; padding: 14px 20px; border-radius: 999px; box-shadow: 0 10px 24px rgba(18, 18, 18, .3); border: 2px solid var(--yellow); transition: opacity .2s ease, transform .2s ease; }
.wa-float .ic { width: 1.4em; height: 1.4em; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Tablet */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .footer__in { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Escritorio */
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .topbar { display: block; }
  .brand img { height: 64px; }
  .menu-btn { display: none; }
  .nav { position: static; display: flex; align-items: center; gap: 28px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; gap: 26px; }
  .nav li a { padding: 8px 0; border: 0; font-size: .95rem; position: relative; }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 3px; background: var(--yellow); transition: right .2s ease; }
  .nav li a:hover { color: var(--black); }
  .nav li a:hover::after { right: 0; }
  .nav__cta { margin: 0; width: auto; }
  .hero { padding: 72px 0 80px; }
  .hero__in { grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .section { padding: 88px 0; }
  .feature { padding: 80px 0; }
  .feature__in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .feature--alt .feature__in { grid-template-columns: .9fr 1.1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .location { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .cta__in { grid-template-columns: 1.2fr auto; gap: 40px; }
  .footer { padding-bottom: 28px; }
  .wa-float { display: none; }
}
