/* ============================================================
   ANIVAL CERRAJERO 24H — anivalcerrajero24h.com
   Design System: Dark Mode Operativo + Amarillo Seguridad
   Colores: Negro #0a0a0a · Amarillo Seguridad #FFD600 · Blanco #fff
   Tipografía: Bebas Neue (display) · Rajdhani (subtítulos) · Inter (texto)
   Autónomo — sin frameworks. Optimizado para Cloudflare Pages.
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

:root {
  --black: #0a0a0a;
  --black-2: #0d0d0d;
  --black-3: #060606;
  --card: #111111;
  --border: #1e1e1e;
  --yellow: #FFD600;
  --yellow-h: #FFE033;
  --wa: #25D366;
  --txt: #f5f5f5;
  --muted: #9a9a9a;
  --muted-2: #666;
  --dim: #555;
  --f-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --f-sub: 'Rajdhani', 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
}

body {
  font-family: var(--f-body);
  background: var(--black);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 5rem 0; }
.section--alt { background: var(--black-2); border-top: 1px solid #1a1a1a; }
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ticker-track, .float-call-btn, .pulse-dot { animation: none !important; }
}

/* ── Typography ──────────────────────────────────────────── */
.display-heading { font-family: var(--f-display); letter-spacing: .02em; line-height: .95; color: #fff; font-weight: 400; }
.sub-heading { font-family: var(--f-sub); font-weight: 600; color: #fff; }
.body-text { font-family: var(--f-body); color: var(--muted); line-height: 1.7; }
.section-label { font-family: var(--f-sub); font-weight: 700; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--yellow); margin-bottom: .75rem; }
.yellow-line { height: 3px; width: 60px; background: var(--yellow); display: block; }
.hl { color: var(--yellow); }
.hl-w { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--f-sub); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: .85rem 1.75rem; border: none; transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,214,0,.35); }
.btn-yellow:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); padding: calc(.85rem - 2px) calc(1.75rem - 2px); }
.btn-outline:hover { background: rgba(255,214,0,.1); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb857; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: #1a1a1a; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,10,.85); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,10,10,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { width: 36px; height: 36px; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand__name { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .08em; color: #fff; line-height: 1; }
.brand__sub { font-family: var(--f-sub); font-size: .65rem; letter-spacing: .2em; color: var(--yellow); line-height: 1; font-weight: 700; }
.nav__links { display: none; align-items: center; gap: 1.5rem; }
.nav__links a { font-family: var(--f-sub); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #aaa; transition: color .2s; }
.nav__links a:hover { color: var(--yellow); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__phone { padding: .6rem 1.25rem; font-size: .88rem; }
.nav__phone--icon { display: none; padding: .6rem .9rem; }
.hamburger { background: none; border: none; color: #fff; padding: .4rem; display: flex; }
.nav__mobile { background: #111; border-top: 1px solid var(--border); padding-bottom: 1rem; }
.nav__mobile a { display: block; padding: .75rem 0; font-family: var(--f-sub); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: #ccc; border-bottom: 1px solid #1a1a1a; }
.nav__mobile .btn { margin-top: 1rem; width: 100%; }
.is-hidden { display: none !important; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .hamburger { display: none; }
  .nav__mobile { display: none !important; }
}
@media (max-width: 639px) {
  .nav__phone { display: none; }
  .nav__phone--icon { display: inline-flex; }
}

/* ── Hero (split) ────────────────────────────────────────── */
.hero { position: relative; background: var(--black); overflow: hidden; padding-top: 96px; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(255,214,0,.10), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; padding: 2.5rem 0 3.5rem; position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,214,0,.12); border: 1px solid rgba(255,214,0,.3); padding: .4rem 1rem; margin-bottom: 1.5rem; }
.badge span:last-child { font-family: var(--f-sub); font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(255,214,0,.6);} 50% { box-shadow: 0 0 0 6px rgba(255,214,0,0);} }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: .3rem; }
.hero__sub { font-family: var(--f-sub); font-weight: 600; font-size: clamp(1rem, 3vw, 1.4rem); color: #ccc; margin: 1.25rem 0 1.25rem; letter-spacing: .05em; }
.hero__desc { max-width: 540px; font-size: clamp(.92rem, 2vw, 1.02rem); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__cta .btn { font-size: 1.05rem; padding: 1rem 2rem; }
.hero__cta .btn-outline { padding: calc(1rem - 2px) calc(2rem - 2px); }
.trust { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.trust__item { display: flex; align-items: center; gap: .4rem; }
.trust__item span { font-family: var(--f-sub); font-weight: 600; font-size: .82rem; color: #aaa; letter-spacing: .05em; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__photo { position: relative; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 4px rgba(255,214,0,.15); pointer-events: none; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: .5rem; background: var(--black); border: 1px solid var(--border); padding: .7rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.hero__chip--rating { top: 1rem; left: -.75rem; }
.hero__chip--time { bottom: 1rem; right: -.75rem; }
.hero__chip .big { font-family: var(--f-display); font-size: 1.7rem; color: var(--yellow); line-height: 1; }
.hero__chip .small { font-family: var(--f-sub); font-weight: 600; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* Stats bar */
.stats { position: relative; z-index: 2; border-top: 1px solid var(--border); background: rgba(10,10,10,.95); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats__item { padding: 1.25rem 1rem; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__item:nth-child(2n) { border-right: none; }
.stats__item:nth-child(n+3) { border-bottom: none; }
.stats__num { font-family: var(--f-display); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--yellow); letter-spacing: .05em; line-height: 1; }
.stats__label { font-family: var(--f-sub); font-weight: 600; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-2); margin-top: .25rem; }

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__item { border-bottom: none; }
  .stats__item:nth-child(2n) { border-right: 1px solid var(--border); }
  .stats__item:last-child { border-right: none; }
}
@media (min-width: 992px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
}

/* ── Ticker ──────────────────────────────────────────────── */
.ticker { overflow: hidden; background: var(--yellow); padding: .55rem 0; }
.ticker-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { font-family: var(--f-sub); font-weight: 700; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--black); }
.ticker-track span i { margin: 0 1.5rem; opacity: .4; font-style: normal; }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ── Services ────────────────────────────────────────────── */
.head { max-width: 620px; margin: 0 auto 3.5rem; }
.head .yellow-line { margin: 1.25rem auto; }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s; z-index: 3; }
.card:hover { border-color: rgba(255,214,0,.4); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.card:hover::before { transform: scaleX(1); }
.card__media { height: 180px; position: relative; overflow: hidden; background: #151515; }
.card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s, opacity .3s; }
.card:hover .card__media img { transform: scale(1.05); opacity: .95; }
.card__media--pattern { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1c1c1c, #0d0d0d); }
.card__media--pattern svg { width: 68px; height: 68px; color: rgba(255,214,0,.28); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--card) 2%, transparent 55%); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; background: rgba(255,214,0,.1); border: 1px solid rgba(255,214,0,.25); padding: .2rem .6rem; margin-bottom: 1rem; font-family: var(--f-sub); font-weight: 700; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.card__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.card__icon { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.card__title { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .05em; color: #fff; line-height: 1; margin-bottom: .2rem; font-weight: 400; }
.card__subtitle { font-family: var(--f-sub); font-weight: 600; font-size: .78rem; color: var(--yellow); letter-spacing: .1em; text-transform: uppercase; }
.card__desc { font-size: .88rem; color: #888; line-height: 1.7; margin-bottom: 1rem; }
.checklist { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; }
.checklist li { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: #999; }
.checklist svg { flex-shrink: 0; margin-top: 3px; }

/* ── About / Why ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } }
.about__photo { position: relative; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.about__photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 4px rgba(255,214,0,.12); pointer-events: none; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reason { background: var(--card); border: 1px solid var(--border); padding: 1.25rem; transition: border-color .3s, transform .3s; }
.reason:hover { border-color: rgba(255,214,0,.35); transform: translateY(-3px); }
.reason__icon { font-size: 1.5rem; margin-bottom: .6rem; }
.reason h3 { font-family: var(--f-sub); font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: .35rem; letter-spacing: .05em; }
.reason p { font-size: .8rem; color: var(--muted-2); line-height: 1.6; }

/* ── Reviews ─────────────────────────────────────────────── */
.rating-row { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.stars { color: var(--yellow); letter-spacing: 2px; }
.rating-row .score { font-family: var(--f-display); font-size: 2rem; color: var(--yellow); }
.rating-row .src { font-family: var(--f-sub); font-weight: 600; font-size: .85rem; color: var(--muted-2); letter-spacing: .1em; }
.review { background: var(--card); border: 1px solid var(--border); padding: 1.5rem; display: flex; flex-direction: column; }
.review .stars { font-size: .9rem; margin-bottom: .75rem; }
.review p { font-size: .88rem; color: #999; line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.review__foot { display: flex; justify-content: space-between; align-items: center; }
.review__name { font-family: var(--f-sub); font-weight: 700; font-size: .85rem; color: #ccc; }
.review__date { font-size: .72rem; color: #444; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-band { background: var(--yellow); padding: 4rem 0; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--black); margin-bottom: .5rem; }
.cta-band p { font-family: var(--f-sub); font-weight: 600; font-size: 1.1rem; color: #333; letter-spacing: .05em; }
.cta-band__btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.cta-band__btns .btn { font-size: 1.1rem; padding: 1rem 2rem; font-weight: 800; }
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); background: var(--card); margin-bottom: .75rem; }
.faq__q { width: 100%; text-align: left; background: none; border: none; color: #fff; font-family: var(--f-sub); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; padding: 1.15rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q:hover { color: var(--yellow); }
.faq__q .plus { color: var(--yellow); flex-shrink: 0; transition: transform .3s; font-size: 1.4rem; line-height: 1; }
.faq__item.open .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 1.25rem 1.15rem; color: var(--muted); font-size: .9rem; line-height: 1.75; }

/* ── Contact / Map ───────────────────────────────────────── */
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); }
.contact-item__icon { color: var(--yellow); flex-shrink: 0; }
.contact-item__label { font-family: var(--f-sub); font-weight: 700; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); margin-bottom: .15rem; }
.contact-item__value { font-family: var(--f-sub); font-weight: 700; font-size: 1.1rem; color: var(--yellow); letter-spacing: .05em; }
.contact-item__value--plain { color: #ccc; font-weight: 600; font-size: 1rem; }
.map-frame { height: 420px; border: 1px solid var(--border); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--black-3); border-top: 1px solid #1a1a1a; padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__brand p { font-size: .82rem; color: var(--dim); line-height: 1.7; margin: 1rem 0; }
.footer__phone { font-family: var(--f-display); font-size: 1.4rem; color: var(--yellow); letter-spacing: .05em; }
.footer h4 { font-family: var(--f-sub); font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer ul a, .footer ul li { font-size: .82rem; color: var(--dim); transition: color .2s; }
.footer ul a:hover { color: var(--yellow); }
.footer__contact { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact .btn { justify-content: center; font-size: .9rem; padding: .75rem; }
.footer__bottom { border-top: 1px solid #1a1a1a; padding-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
.footer__bottom p { font-size: .75rem; color: #3a3a3a; }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ── Floating buttons ────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 98; width: 54px; height: 54px; background: var(--wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.45); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }
.float-call-btn { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--yellow); color: var(--black); font-family: var(--f-sub); font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: 1rem 1.75rem; box-shadow: 0 4px 24px rgba(255,214,0,.5); display: flex; align-items: center; gap: .6rem; animation: pulse-call 2.5s infinite; white-space: nowrap; }
@keyframes pulse-call { 0%,100% { box-shadow: 0 4px 24px rgba(255,214,0,.5);} 50% { box-shadow: 0 4px 40px rgba(255,214,0,.85);} }
@media (min-width: 768px) { .float-call-btn { display: none !important; } }

/* ── A11y ────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--yellow); color: var(--black); padding: .75rem 1.25rem; font-family: var(--f-sub); font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
