/* ============================================================
   Cerrajería Urgente Quito — custom layer on top of Tailwind
   (keyframes, scroll-reveal, tilt, effects, reduced-motion)
   ============================================================ */

:root { --ease: cubic-bezier(.16, 1, .3, 1); }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

::selection { background: #ff1f1f; color: #fff; }

/* custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #ff1f1f; border: 3px solid #0a0a0a; border-radius: 99px; }

:focus-visible { outline: 2px solid #ff1f1f; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -120%; left: 12px; z-index: 2000;
  background: #ff1f1f; color: #fff; padding: 12px 22px; border-radius: 0 0 8px 8px;
  font-family: 'Montserrat', sans-serif; font-size: .8rem; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------------- NAVBAR ---------------- */
.nav-inner {
  margin-top: 10px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; transition: all .5s var(--ease);
}
#navbar.scrolled .nav-inner {
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px);
  border-color: rgba(0, 0, 0, .06); box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .25);
}
.nav-logo { color: #fff; transition: color .4s var(--ease); }
#navbar.scrolled .nav-logo { color: #0a0a0a; }
.nav-link { color: rgba(255, 255, 255, .82); position: relative; padding: 6px 0; transition: color .3s; }
#navbar.scrolled .nav-link { color: #141414; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: #ff1f1f; transition: width .3s var(--ease);
}
.nav-link:hover { color: #ff1f1f; }
.nav-link:hover::after { width: 100%; }

.ham-lines { display: grid; gap: 5px; }
.ham-lines span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .25s; }
#navbar.scrolled .ham-lines span { background: #0a0a0a; }
#hamburger.active .ham-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.active .ham-lines span:nth-child(2) { opacity: 0; }
#hamburger.active .ham-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobileMenu.open { display: flex; }
.m-link {
  font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; text-decoration: none;
  transition: color .3s, transform .3s var(--ease);
}
.m-link:hover { color: #ff1f1f; transform: translateY(-3px); }

/* ---------------- HERO ---------------- */
.hero-bg {
  background: url('https://img.freepik.com/free-photo/close-up-man-trying-break-into-car_23-2149133049.jpg') center/cover no-repeat;
  transform: scale(1.08); will-change: transform; filter: saturate(1.05);
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 18% 50%, rgba(255, 31, 31, .22), transparent 60%);
  animation: spotPulse 6s ease-in-out infinite;
}
@keyframes spotPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff1f1f; box-shadow: 0 0 0 0 rgba(255, 31, 31, .6); animation: liveDot 1.8s infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(255, 31, 31, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 31, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0); } }

.hero-eyebrow { opacity: 0; animation: fadeInUp .8s var(--ease) .1s forwards; }
.reveal-word { display: inline-block; opacity: 0; transform: translateY(40px); animation: fadeInUp .9s var(--ease) forwards; }
.reveal-word:nth-child(1) { animation-delay: .25s; }
.reveal-word:nth-child(2) { animation-delay: .35s; }
.reveal-word:nth-child(3) { animation-delay: .5s; }
.reveal-word:nth-child(4) { animation-delay: .6s; }
.reveal-word:nth-child(5) { animation-delay: .7s; }

.scroll-cue .scroll-dot {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 4px;
  background: currentColor; transform: translateX(-50%); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* button sheen */
.btn-sheen { position: relative; overflow: hidden; transition: background-color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn-sheen::before {
  content: ''; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-sheen:hover::before { left: 130%; }

/* ---------------- SHARED SECTION BITS ---------------- */
.eyebrow { font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: #ff1f1f; }
.section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; text-transform: uppercase; color: #0a0a0a; margin-top: 12px; text-align: center; text-wrap: balance; }
.section-title.text-white { color: #fff; }
.section-sub { font-size: 1.05rem; color: #6b6b6b; line-height: 1.7; margin-top: 16px; text-align: center; }

.blob { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; z-index: 0; }
.blob--red { background: #ff1f1f; }

/* ---------------- SCROLL REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- CARD TILT ---------------- */
.tilt { transform-style: preserve-3d; transition: transform .4s var(--ease); will-change: transform; }

/* ---------------- WHY-US CARD ---------------- */
.why-card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 16px; padding: 34px 26px;
  text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(255, 31, 31, .4); box-shadow: 0 26px 60px -24px rgba(255, 31, 31, .35); }
.why-ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 31, 31, .08); color: #ff1f1f; font-size: 1.5rem; transition: transform .4s var(--ease), background .4s; }
.why-card:hover .why-ico { transform: rotate(-8deg) scale(1.08); background: #ff1f1f; color: #fff; }
.why-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; color: #0a0a0a; margin-bottom: 8px; }
.why-card p { font-size: .92rem; color: #6b6b6b; line-height: 1.65; }

/* ---------------- SERVICE CARD ---------------- */
.svc-card {
  position: relative; background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 18px;
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.svc-card:hover { border-color: rgba(255, 31, 31, .45); box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .35); }
.svc-media { position: relative; height: 210px; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.08); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .55), transparent 55%); }
.svc-badge {
  position: absolute; left: 20px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: #ff1f1f; color: #fff; font-size: 1.25rem;
  box-shadow: 0 12px 28px -8px rgba(255, 31, 31, .6); transition: transform .45s var(--ease);
}
.svc-card:hover .svc-badge { transform: translateY(-4px) rotate(-6deg); }
.svc-body { padding: 34px 24px 26px; }
.svc-body h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.12rem; color: #0a0a0a; }
.svc-body p { font-size: .92rem; color: #6b6b6b; line-height: 1.65; margin: 8px 0 16px; }
.svc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.svc-list li { font-size: .86rem; color: #444; display: flex; align-items: center; gap: 8px; }
.svc-list i { color: #ff1f1f; font-size: .75rem; }
.svc-cta { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ff1f1f; text-decoration: none; }
.svc-cta i { transition: transform .3s var(--ease); }
.svc-cta:hover i { transform: translateX(5px); }
/* featured (RFID) card */
.svc-card.is-featured { border-color: rgba(255, 31, 31, .5); box-shadow: 0 24px 60px -26px rgba(255, 31, 31, .4); }
.svc-flag { position: absolute; top: 14px; right: 14px; z-index: 3; background: #0a0a0a; color: #fff; font-family: 'Montserrat', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.svc-flag i { color: #ff1f1f; margin-right: 5px; }

/* ---------------- TIMELINE ---------------- */
.tl-step { display: flex; gap: 18px; align-items: flex-start; }
.tl-num { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 31, 31, .08); color: #ff1f1f; font-family: 'Montserrat', sans-serif; font-weight: 800; display: grid; place-items: center; transition: all .4s var(--ease); }
.tl-step:hover .tl-num { background: #ff1f1f; color: #fff; transform: rotate(-6deg); }
.tl-step h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; color: #0a0a0a; }
.tl-step p { font-size: .92rem; color: #6b6b6b; line-height: 1.65; margin-top: 4px; }

/* ---------------- GALLERY ---------------- */
.gal-item { position: relative; height: 280px; border-radius: 16px; overflow: hidden; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.1); }
.gal-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.6), transparent 60%); opacity: .6; transition: opacity .4s; }
.gal-item:hover::after { opacity: .95; }
.gal-cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .04em; transform: translateY(8px); opacity: 0; transition: all .4s var(--ease); }
.gal-item:hover .gal-cap { transform: none; opacity: 1; }

/* ---------------- TESTIMONIALS ---------------- */
.tm-card { position: relative; background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 18px; padding: 32px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.tm-card:hover { transform: translateY(-6px); border-color: rgba(255, 31, 31, .35); box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .3); }
.tm-quote { font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; color: #ff1f1f; opacity: .18; }
.tm-text { font-size: .96rem; color: #333; line-height: 1.7; font-style: italic; margin: 4px 0 18px; }
.tm-stars { color: #f59e0b; display: flex; gap: 3px; margin-bottom: 16px; font-size: .85rem; }
.tm-foot { display: flex; align-items: center; gap: 12px; }
.tm-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 31, 31, .3); }
.tm-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .92rem; color: #0a0a0a; }
.tm-role { font-size: .8rem; color: #6b6b6b; }

/* ---------------- FAQ ---------------- */
.faq-item { border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: rgba(255, 31, 31, .4); box-shadow: 0 18px 44px -24px rgba(255,31,31,.3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; color: #0a0a0a; transition: color .3s; }
.faq-q:hover { color: #ff1f1f; }
.faq-q i { flex: none; color: #ff1f1f; transition: transform .35s var(--ease); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 22px 20px; color: #6b6b6b; font-size: .94rem; line-height: 1.7; }

/* ---------------- FORM + CONTACT INFO ---------------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #141414; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 1rem; color: #141414; background: #fff; transition: border-color .3s, box-shadow .3s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #b3b3b3; }
.form-group input:focus, .form-group textarea:focus { border-color: #ff1f1f; box-shadow: 0 0 0 3px rgba(255, 31, 31, .12); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }

.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 31, 31, .08); color: #ff1f1f; font-size: 1.1rem; transition: all .4s var(--ease); }
.info-item:hover .info-ico { background: #ff1f1f; color: #fff; transform: translateY(-3px); }
.info-item h3 { font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0a0a0a; margin-bottom: 3px; }
.info-item p, .info-item a { font-size: .94rem; color: #6b6b6b; text-decoration: none; transition: color .3s; }
.info-item a:hover { color: #ff1f1f; }

/* ---------------- FOOTER ---------------- */
.foot-h { font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a, .foot-links li { font-size: .9rem; color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .3s; }
.foot-links a:hover { color: #ff1f1f; }
.soc { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; color: rgba(255, 255, 255, .65); text-decoration: none; transition: all .3s var(--ease); }
.soc:hover { background: #ff1f1f; border-color: #ff1f1f; color: #fff; transform: translateY(-3px); }

/* ---------------- WHATSAPP FLOAT ---------------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.7rem; text-decoration: none; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6); animation: waPulse 2.4s infinite; transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse { 0%, 100% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6); } 50% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6), 0 0 0 12px rgba(37, 211, 102, .12); } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-word, .hero-eyebrow { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none; }
}
