/* =============================================
   CARFILMS ESTÉTICA VEHICULAR — OPTIMIZADO
   ============================================= */

/* ── RESET & BASE ─────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --black:#080808;--dark:#111111;--card:#1a1a1a;--border:#2a2a2a;
  --muted:#6e6a65;--white:#f0ede8;--gold:#c9a84c;--gold-lt:#e2c26e;
  --gold-dk:#b8941f;--font-d:'Cormorant Garamond',serif;
  --font-b:'Barlow',sans-serif;--font-l:'Barlow Condensed',sans-serif
}
html{scroll-behavior:smooth;font-size:14px}
body{
  background:var(--black);color:var(--white);font-family:var(--font-b);
  line-height:1.6;-webkit-font-smoothing:antialiased
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none;transition:color .3s ease}
a:hover{color:var(--gold)}
ul{list-style:none}

/* ── PREMIUM SCROLLBAR ────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2a2a, #ff0000);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #ff0000; }

/* ── UTILITIES ────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }

.lbl {
  display: block;
  font-family: var(--font-l);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 20px;
}

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-l);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(201,168,76,0.3); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); color: var(--black); border: 2px solid var(--gold); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-lt), var(--gold)); box-shadow: 0 12px 35px rgba(201,168,76,0.4); }

.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }

/* ── NAVIGATION ───────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
  background: rgba(8,8,8,0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#nav.scrolled {
  background: rgba(8,8,8,0.95);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-name {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}
.nav-brand-sub {
  font-family: var(--font-l);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-l);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }

/* ── BURGER ───────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ───────────────────────────── */
#mob-nav {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mob-nav.open { transform: translateX(0); }

.mob-links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mob-lnk {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}
.mob-lnk:hover { color: var(--gold); }
.mob-lnk.btn { font-family: var(--font-l); font-size: 13px; margin-top: 12px; }

/* ── HERO ─────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* El video del hero usa position: fixed para simular parallax real */
.hero-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Placeholder para que el hero tenga altura cuando el video está fixed */
#hero::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.55) 50%, rgba(8,8,8,0.82) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 80px;
  width: 100%;
  min-height: 100svh;
}

/* Llanta decorativa — animada solo por CSS, no hay conflicto con JS */
.rotating-wheel {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.15;
  animation: spinWheel 28s linear infinite;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.35));
  pointer-events: none;
}

@keyframes spinWheel {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* Logo en el hero */
.brand-info {
  margin-bottom: 44px;
  animation: fadeUp 1s ease both;
}

.brand-logo {
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 20px rgba(201,168,76,0.4));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

.brand-name {
  font-family: var(--font-d);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 5px;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(201,168,76,0.3);
}

.brand-tagline {
  font-family: var(--font-l);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
}

.hero-content {
  max-width: 640px;
  animation: fadeUp 1s 0.25s ease both;
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-sub {
  font-family: var(--font-b);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 44px;
}

.hero-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--black);
  padding: 22px 52px;
  border-radius: 50px;
  font-family: var(--font-l);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 44px rgba(201,168,76,0.4);
}
.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(201,168,76,0.5);
  color: var(--black);
}

/* ── SERVICE SECTIONS (VIDEO FULLSCREEN) ─── */
.service-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Importante: isolate para que el video fixed no traspase */
  isolation: isolate;
}

.service-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 110%;
  min-height: 110%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  will-change: transform;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.7) 100%);
  z-index: 2;
}

.service-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 48px 24px;
  max-width: 760px;
}

/* Animación de entrada — controlada por la clase .on */
.service-title {
  font-family: var(--font-d);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 4px 30px rgba(201,168,76,0.2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.service-desc {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.75;
  margin-bottom: 44px;
  color: rgba(255,255,255,0.9);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s 0.12s ease, transform 0.9s 0.12s ease;
}

.service-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--black);
  padding: 20px 44px;
  border-radius: 50px;
  font-family: var(--font-l);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s 0.24s ease, transform 0.9s 0.24s ease;
}
.service-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 44px rgba(201,168,76,0.55);
  color: var(--black);
}

/* Al intersectar */
.service-section.on .service-title,
.service-section.on .service-desc,
.service-section.on .service-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESEÑAS ──────────────────────────────── */
.reviews {
  padding: 100px 20px;
  background: var(--dark);
  text-align: center;
}
.reviews-content { max-width: 600px; margin: 0 auto; }
.reviews-stars { font-size: 2.2rem; color: var(--gold); margin-bottom: 12px; }
.reviews-rating { font-family: var(--font-d); font-size: 3rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.reviews-count { font-size: 0.95rem; color: var(--muted); margin-bottom: 36px; }
.reviews-avatars { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
}
.reviews-text { font-family: var(--font-b); font-size: 1.1rem; line-height: 1.7; color: var(--white); margin-bottom: 20px; font-style: italic; }
.reviews-author { font-family: var(--font-l); font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 40px; }

/* ── CONTACTO ─────────────────────────────── */
#contacto { padding: 110px 0; background: var(--black); }

.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ct-info p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; font-size: 1rem; }
.ct-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ct-item { display: flex; align-items: flex-start; gap: 14px; }
.ct-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.ct-lbl { font-family: var(--font-l); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ct-val { font-size: 0.95rem; color: var(--white); }
.ct-val a { color: var(--white); }
.ct-val a:hover { color: var(--gold); }

.socials { display: flex; gap: 12px; }
.soc {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}
.soc:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }

.map-box { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); height: 380px; }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* ── FOOTER ───────────────────────────────── */
footer { background: var(--dark); border-top: 1px solid var(--border); padding: 32px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-brand { display: flex; flex-direction: column; }
.foot-logo { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.foot-year { font-family: var(--font-l); font-size: 10px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.foot-copy { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.foot-links { display: flex; gap: 20px; }
.foot-link { font-family: var(--font-l); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.foot-link:hover { color: var(--gold); }

/* ── WHATSAPP FLOAT ───────────────────────── */
.wa {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa:hover { transform: scale(1.09); box-shadow: 0 6px 28px rgba(37,211,102,0.5); color: inherit; }
.wa svg { width: 26px; height: 26px; }

/* ── SCROLL REVEAL ────────────────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }

/* ── PERFORMANCE OPTIMIZATIONS ───────────────── */
.low-performance *{
  animation-duration:0.1s!important;
  transition-duration:0.1s!important
}
.low-performance .rotating-wheel{display:none}
.low-performance .service-video{transform:none!important}

/* ── KEYFRAMES OPTIMIZADOS ──────────────────── */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes spinWheel{
  from{transform:translateY(-50%)rotate(0)}
  to{transform:translateY(-50%)rotate(360deg)}
}
@keyframes logoFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .ct-wrap { grid-template-columns: 1fr; gap: 40px; }
  .map-box { height: 300px; }
}

/* ── MOBILE FIRST (hasta 768px) ─────────────── */
@media (max-width:768px){
  .container{padding:0 16px}
  #nav{padding:0 16px;height:56px}
  #mob-nav{top:56px}
  .nav-links{display:none}
  .burger{display:flex}
  #hero{min-height:100svh}
  .hero-body{padding:80px 16px 60px}
  .rotating-wheel{display:none}
  .service-section{min-height:80svh;padding:40px 16px}
  .service-title{font-size:clamp(2rem,6vw,2.8rem)}
  .service-desc{font-size:clamp(1rem,2.5vw,1.1rem)}
  .service-btn{padding:16px 28px;font-size:14px}
  .reviews{padding:60px 16px}
  .foot-inner{flex-direction:column;align-items:flex-start;gap:20px}
  ::-webkit-scrollbar{width:4px}
  .hero-cta{padding:16px 32px;font-size:14px;width:100%;max-width:280px}
  .brand-name{font-size:clamp(2.5rem,8vw,3.5rem)}
  .hero-title{font-size:clamp(1.8rem,5vw,2.2rem)}
  .hero-sub{font-size:clamp(0.9rem,2.5vw,1rem)}
}

@media (max-width: 480px) {
  .hero-cta { width: 100%; justify-content: center; }
  .service-btn { padding: 18px 32px; }
  .brand-name { letter-spacing: 3px; }
}

@media (min-width: 769px) {
  .burger { display: none; }
  #mob-nav { display: none !important; }
}