/* frontend/assets/css/rab.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  /* ── Paleta derivada del logo · Fase 1 "Cromo & Azur" ────── */
  --navy:        #142A44;   /* azur profundo · fondos sólidos de marca      */
  --navy-light:  #2C6A9C;   /* azur medio · acción principal / estados      */
  --blue:        #3E9FCB;   /* AZUR · firma (del #3990BB del logo)          */
  --blue-light:  #5FC2DA;   /* azur brillante (del #55BBD4 del logo)        */
  --blue-pale:   #8FD3E6;   /* azur pálido · detalles y enlaces suaves      */
  --gold:        #E4A94E;   /* oro · chispa puntual (hilo del engranaje)    */
  --green-wa:    #25D366;   /* WhatsApp · marca, sin cambios                */
  --bg-dark:     #0A0E14;   /* fondo · noche fría azulada                   */
  --bg-card:     #1B2331;   /* superficie elevada                          */
  --bg-section:  #0C121B;   /* secciones alternas                          */
  --white:       #EEF2F5;   /* blanco cromo (frío)                         */
  --text-muted:  rgba(238,242,245,0.48);
  --border:      rgba(200,220,240,0.09);
  /* Cromo · motivo metálico (engranaje / emblema del logo) */
  --chrome-1:    #EDF1F4;
  --chrome-2:    #AEB8C0;
  --chrome-3:    #6E7882;
  --chrome-grad: linear-gradient(140deg,var(--chrome-1) 0%,var(--chrome-3) 42%,var(--chrome-2) 58%,var(--chrome-1) 100%);
  /* Tipografía · Bebas Neue (display tipo placa) + Montserrat (cuerpo) */
  --font-title:  'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:   'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-data:   'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
.font-title { font-family: var(--font-title); }
.label-tag {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.navbar-logo img { height: 44px; width: auto; object-fit: contain; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.navbar-links a:hover { color: var(--white); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-wa); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0;
  padding: 9px 18px; border-radius: 10px;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-light); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0;
  padding: 9px 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-nav-cta:hover { background: var(--blue); border-color: transparent; transform: translateY(-1px); }
.navbar-hamburger { display: none; color: var(--white); padding: 4px; }
.navbar-mobile {
  display: none; flex-direction: column; gap: 4px;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.5rem;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.75); padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: block; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  color: #06131C;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0;
  padding: 12px 24px; border-radius: 11px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px -12px var(--navy-light);
  transition: filter .2s, box-shadow .2s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 12px 28px -12px var(--navy-light); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0;
  padding: 12px 24px; border-radius: 11px;
  border: 1px solid rgba(200,220,240,.18);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-outline:hover { background: rgba(62,159,203,.10); border-color: rgba(62,159,203,.45); transform: translateY(-1px); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #EFBC6B, var(--gold)); color: #1A1206;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0;
  padding: 12px 24px; border-radius: 11px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 22px -12px #8a5a12;
  transition: filter .2s, box-shadow .2s, transform .15s;
}
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* Botones en mayúscula — aspecto automotora */
.btn-primary, .btn-outline, .btn-gold, .btn-nav-cta, .btn-whatsapp, .filter-btn {
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
}

/* ── Section layout ──────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 1.5rem; }
/* Compensa el navbar fijo (64px) al saltar a un ancla como #lavado */
.section[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--bg-section); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem); color: var(--white);
  line-height: 1.05; letter-spacing: .01em; margin-top: .4rem;
}

/* ── Vehicle Card ────────────────────────────────────────── */
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62,159,203,.5);
  box-shadow: 0 8px 30px rgba(62,159,203,.15);
}
.card-img {
  position: relative; height: 190px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(62,159,203,.2) 100%);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vehicle-card:hover .card-img > img { transform: scale(1.05); }

/* Carrusel de fotos en hover (solo cuando hay ≥2 fotos) */
.card-slider {
  position: absolute; inset: 0; display: flex;
  transition: transform .42s cubic-bezier(.5,0,.2,1);
}
.card-slider.no-anim { transition: none; }
.vehicle-card:hover .card-slider { will-change: transform; }
.card-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.vehicle-card:hover .card-img .card-slide { transform: none; }   /* evita doble movimiento con el zoom */
.card-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 5px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.vehicle-card:hover .card-dots { opacity: 1; }
.card-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.45); box-shadow: 0 0 4px rgba(0,0,0,.5);
  transition: background .2s, transform .2s;
}
.card-dot.active { background: #fff; transform: scale(1.35); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,.15);
}
.card-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 8px; border: 1px solid;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.card-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
/* Fondo translúcido oscuro tintado por color → legible sobre fotos claras u oscuras */
.badge-available { background: rgba(10,58,42,.62);  color: #7fe8c1; border-color: rgba(116,220,181,.5); }
.badge-sold      { background: rgba(34,40,48,.64);  color: #d0d8df; border-color: rgba(194,203,212,.42); }
.badge-upcoming  { background: rgba(74,50,10,.62);  color: #f1c26c; border-color: rgba(233,182,98,.5); }
.badge-featured  {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(74,50,10,.62); color: var(--gold);
  border: 1px solid rgba(228,169,78,.5);
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.badge-featured svg { width: 11px; height: 11px; }
.card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.card-name {
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; letter-spacing: .01em; color: var(--white); margin-bottom: 6px;
  transition: color .2s;
}
.card-name:hover { color: var(--blue-light); }
.card-price {
  font-family: var(--font-data); font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  color: var(--white); margin-bottom: .85rem;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .85rem; }
.card-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-data); font-variant-numeric: tabular-nums;
  font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 7px;
}
.card-meta svg { width: 11px; height: 11px; opacity: .55; }
.card-divider { border: none; border-top: 1px solid var(--border); margin-bottom: .75rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card-category {
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--blue-light);
}
.card-actions { display: flex; align-items: center; gap: 8px; }
.btn-card-wa {
  padding: 6px 7px; border-radius: 8px;
  color: var(--green-wa); border: 1px solid rgba(37,211,102,.3);
  background: rgba(37,211,102,.08);
  transition: all .2s; display: flex;
}
.btn-card-wa:hover { background: var(--green-wa); color: var(--white); border-color: var(--green-wa); }
.btn-card-detail {
  font-size: 12px; font-weight: 600; color: var(--blue-pale);
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.btn-card-detail:hover { color: var(--white); }

/* ── Filter pills ────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.filter-btn {
  padding: 8px 16px; border-radius: 9px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted); border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: all .15s;
}
.filter-btn:hover { background: rgba(255,255,255,.07); color: rgba(238,242,245,.85); }
.filter-btn.active {
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  color: #06131C; border-color: transparent; font-weight: 600;
}
/* Mientras carga un filtro: bloquea todos y muestra spinner en el activo */
.filter-btn:disabled { cursor: wait; opacity: .5; }
.filter-btn.active:disabled { opacity: 1; }
.filter-spinner {
  display: inline-block; width: 12px; height: 12px; vertical-align: -1px;
  margin-right: 7px; border-radius: 50%;
  border: 2px solid rgba(6,19,28,.35); border-top-color: #06131C;
  animation: spin .6s linear infinite;
}

/* ── Grid ────────────────────────────────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}

/* ── Washing cards ───────────────────────────────────────── */
.wash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 760px; }
@media (max-width: 640px) { .wash-grid { grid-template-columns: 1fr; } }
.wash-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
/* Resalta la tarjeta Premium con borde y glow dorado */
.wash-card:has(.wash-header-premium) {
  border-color: rgba(228,169,78,.55);
  box-shadow: 0 0 0 1px rgba(228,169,78,.28), 0 18px 44px -18px rgba(228,169,78,.30);
}
/* Tarjeta Standard con borde y glow celeste (azur del sitio) */
.wash-card:has(.wash-header-standard) {
  border-color: rgba(95,194,218,.45);
  box-shadow: 0 0 0 1px rgba(95,194,218,.22), 0 18px 44px -18px rgba(95,194,218,.26);
}
.wash-header { padding: 1.5rem; }
.wash-header-standard { background: #16212E; }
.wash-header-premium  { background: linear-gradient(135deg, #142A44, #2C6A9Ccc); }
.wash-plan-name { font-family: var(--font-body); font-weight: 800; font-size: 20px; color: var(--white); margin-top: .5rem; }
.wash-plan-desc { font-size: 13px; margin-top: 2px; }
.wash-plan-desc-standard { color: var(--blue-pale); }
.wash-plan-desc-premium  { color: var(--gold); }
.badge-recommended {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(228,169,78,.15); color: var(--gold);
  border: 1px solid rgba(228,169,78,.3);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 20px; margin-top: 8px;
  animation: pulse-badge 2s ease-in-out infinite;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dot-blink 1.5s ease-in-out infinite; }
@keyframes pulse-badge { 0%,100% { box-shadow: 0 0 0 0 rgba(228,169,78,.4); } 50% { box-shadow: 0 0 0 6px rgba(228,169,78,0); } }
@keyframes dot-blink   { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.wash-prices { padding: .5rem 1.5rem 1rem; flex: 1; }
.wash-prices-standard { background: #0C141E; }
.wash-prices-premium  { background: #142236; }
.wash-price-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.wash-price-row:last-child { border-bottom: none; }
.wash-price-size  { font-size: 13px; color: rgba(255,255,255,.55); }
.wash-price-value { font-family: var(--font-body); font-weight: 700; font-size: 14px; }
.wash-price-value-standard { color: var(--white); }
.wash-price-value-premium  { color: var(--blue-light); }
.wash-features { padding: 1rem 1.5rem; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.05); display: flex; flex-wrap: wrap; gap: 6px; }
.wash-feature { font-size: 11px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: 4px 10px; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.wash-cta { padding: 1rem 1.5rem 1.5rem; background: var(--bg-dark); }

/* ── Instagram / Social CTA ──────────────────────────────── */
:root {
  --ig-grad: linear-gradient(115deg, #FEDA75 0%, #FA7E1E 22%, #D62976 52%, #962FBF 76%, #4F5BD5 100%);
}
.ig-cta {
  position: relative; overflow: hidden;
  max-width: 1000px; margin: 0 auto;
  border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 10% 0%,   rgba(214,41,118,.16), transparent 55%),
    radial-gradient(70% 120% at 90% 100%, rgba(79,91,213,.16),  transparent 55%),
    var(--bg-card);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.ig-media { position: relative; flex-shrink: 0; margin: 0 auto; }
.ig-glow {
  position: absolute; inset: -16%; z-index: 0;
  background: rgba(214,41,118,.16); filter: blur(70px);
  border-radius: 50%; pointer-events: none;
}
.ig-reel {
  position: relative; z-index: 1;
  width: clamp(220px, 32vw, 300px);
  padding: 4px; border-radius: 26px;
  background: var(--ig-grad);
  box-shadow: 0 22px 52px -18px rgba(214,41,118,.5), inset 0 1px 0 rgba(255,255,255,.35);
  animation: ig-float 6s ease-in-out infinite;
}
.ig-reel video {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: 22px; background: #0B0F16;
}
.ig-mute {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  transition: background .2s, transform .15s;
}
.ig-mute:hover { background: rgba(0,0,0,.65); transform: scale(1.06); }
.ig-mute:active { transform: scale(.94); }
@keyframes ig-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ig-copy { flex: 1 1 300px; min-width: 260px; }
.ig-glyph {
  position: relative;
  width: 60px; height: 60px; border-radius: 18px;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ig-grad); color: #fff;
  box-shadow: 0 14px 34px -8px rgba(214,41,118,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.ig-message {
  position: relative;
  color: var(--text-muted); font-size: 15px; line-height: 1.7;
  max-width: 460px; margin-top: .85rem;
}
@media (max-width: 820px) {
  .ig-cta { flex-direction: column; text-align: center; }
  .ig-copy { min-width: 0; }
  .ig-glyph, .ig-message { margin-inline: auto; }
}
.btn-instagram {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 1.75rem;
  background: var(--ig-grad); background-size: 180% 180%; background-position: 0% 0%;
  color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: 0;
  padding: 14px 30px; border-radius: 12px; border: 1px solid transparent;
  box-shadow: 0 10px 28px -10px rgba(214,41,118,.6), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .2s, background-position .5s ease;
}
.btn-instagram:hover {
  transform: translateY(-2px); background-position: 100% 100%;
  box-shadow: 0 16px 38px -10px rgba(214,41,118,.7), inset 0 1px 0 rgba(255,255,255,.42);
}
.btn-instagram:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.ig-handle {
  position: relative;
  font-family: var(--font-data); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--blue-pale);
  margin-top: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: #0D1622; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 36px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.7; }
.footer-heading { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.25); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-link-admin { font-size: 12px; color: rgba(255,255,255,.18) !important; }
.footer-schedule { display: flex; flex-direction: column; gap: 6px; }
.footer-schedule-row { display: flex; justify-content: space-between; font-size: 12px; }
.footer-schedule-day   { color: rgba(255,255,255,.4); }
.footer-schedule-hours { font-weight: 500; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .4; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.04); font-size: 11px; color: rgba(255,255,255,.2); flex-wrap: wrap; gap: 8px; }

/* ── Toast ───────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: .75rem 1.25rem; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.success { background: #064e3b; color: #6ee7b7; border: 1px solid rgba(110,231,183,.2); }
#toast.error   { background: #450a0a; color: #fca5a5; border: 1px solid rgba(252,165,165,.2); }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--blue);
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin layout ────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: #0D1622;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
}
.admin-sidebar-logo { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-sidebar-logo img { height: 36px; width: auto; object-fit: contain; }
.admin-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: .65rem .75rem; border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,.45);
  transition: all .15s; border: 1px solid transparent;
  cursor: pointer;
}
.admin-nav-item:hover { background: rgba(255,255,255,.05); color: var(--white); }
.admin-nav-item.active {
  background: rgba(62,159,203,.2); color: var(--white); font-weight: 600;
  border-color: rgba(62,159,203,.3);
}
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-sidebar-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.06); }
.admin-main { flex: 1; min-width: 0; overflow: auto; padding: 2rem 2.5rem; }
.admin-page { display: none; }
.admin-page.active { display: block; }

/* ── Admin form ──────────────────────────────────────────── */
.form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.form-section-title { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 1.25rem; }

/* ── Acordeón de planes de lavado (admin) ────────────────── */
.wash-accordion {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 1rem; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.wash-accordion.open { border-color: rgba(62,159,203,.35); box-shadow: 0 0 0 1px rgba(62,159,203,.15); }
.wash-accordion-head {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left; cursor: pointer;
  transition: background .15s;
}
.wash-accordion-head:hover { background: rgba(255,255,255,.02); }
.wash-accordion-titles { flex: 1; min-width: 0; }
.wash-accordion-title-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wash-accordion-title { font-family: var(--font-body); font-weight: 800; font-size: 15px; color: var(--white); }
.wash-accordion-sub {
  display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wash-accordion-chevron {
  width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.4);
  transition: transform .3s ease, color .2s;
}
.wash-accordion.open .wash-accordion-chevron { transform: rotate(180deg); color: var(--blue-light); }
/* Cuerpo colapsable — grid 0fr→1fr se adapta a la altura del contenido */
.wash-accordion-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1);
}
.wash-accordion.open .wash-accordion-body { grid-template-rows: 1fr; }
.wash-accordion-inner { overflow: hidden; min-height: 0; }
.wash-accordion-content { padding: 1.25rem 1.4rem 1.4rem; border-top: 1px solid rgba(255,255,255,.06); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.35); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .65rem 1rem;
  color: var(--white); font-size: 13px; font-family: inherit;
  transition: border-color .2s; outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62,159,203,.16); }
.form-select option { background: #141B26; }
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Interruptor (toggle switch) ─────────────────────────── */
.switch-field { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.switch-text { color: rgba(255,255,255,.7); font-size: 13px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; transition: background .2s, border-color .2s;
}
.switch-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.switch input:checked + .switch-slider { background: var(--blue); border-color: var(--blue); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }
.switch input:focus-visible + .switch-slider { box-shadow: 0 0 0 3px rgba(62,159,203,.28); }

/* ── Card unificado del formulario de vehículo ───────────── */
.vehicle-form-card { padding: 1.75rem; }
@media (max-width: 480px) { .vehicle-form-card { padding: 1.25rem; } }
.form-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.form-card-head .form-section-title { margin-bottom: 0; font-size: 16px; }
.form-card-close {
  display: flex; color: rgba(255,255,255,.4); background: none; border: none;
  cursor: pointer; padding: 4px; border-radius: 8px; transition: color .15s, background .15s;
}
.form-card-close:hover { color: var(--white); background: rgba(255,255,255,.06); }
/* Subtítulos de sección dentro del card */
.form-subhead {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue-light); margin-bottom: 1rem;
}
.form-subsection { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
/* Barra de acciones al final */
.form-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: .75rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.btn-ghost {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: .6rem 1.2rem; border-radius: 10px; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.09); color: var(--white); }
@media (max-width: 480px) {
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn-primary, .form-actions .btn-ghost { justify-content: center; text-align: center; }
}

/* ── Admin table ─────────────────────────────────────────── */
.admin-table-wrap { background: rgba(27,35,49,.3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.3); padding: .75rem 1.25rem; background: rgba(255,255,255,.02); text-align: left; }
.admin-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s; }
.admin-table th.sortable:hover { color: rgba(255,255,255,.6); }
.admin-table th.sortable.active { color: var(--blue-light); }
.sort-ind { display: inline-block; margin-left: 3px; font-size: 9px; vertical-align: middle; }
.admin-table th.sortable:not(.active) .sort-ind { opacity: .25; }

/* ── Toolbar / búsqueda de tabla ─────────────────────────── */
.table-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.search-box { position: relative; width: 100%; max-width: 340px; }
.search-box > svg {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: rgba(255,255,255,.3); pointer-events: none;
}
.search-box input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .6rem .9rem .6rem 2.4rem;
  color: var(--white); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62,159,203,.16); }
.search-box input::placeholder { color: rgba(255,255,255,.3); }
@media (max-width: 560px) { .search-box { max-width: none; } }
.admin-table td { padding: .85rem 1.25rem; border-top: 1px solid rgba(255,255,255,.04); color: rgba(255,255,255,.75); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
/* Fila recién creada/editada — destello temporal */
.admin-table tr.row-highlight td { animation: rowHighlight 3.6s ease forwards; }
.admin-table tr.row-highlight td:first-child { box-shadow: inset 3px 0 0 var(--blue-light); }
@keyframes rowHighlight {
  0%   { background: rgba(62,159,203,.30); }
  15%  { background: rgba(62,159,203,.22); }
  80%  { background: rgba(62,159,203,.14); }
  100% { background: transparent; }
}

/* ── Icon buttons + tooltip (tabla de acciones) ──────────── */
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: all .15s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--white); }
.icon-btn-edit:hover   { color: var(--blue-light); background: rgba(62,159,203,.14); border-color: rgba(62,159,203,.4); }
.icon-btn-danger:hover { color: #f87171;           background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(62,159,203,.28); }

/* Tooltip por atributo data-tip */
.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0D1622; color: var(--white);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  white-space: nowrap; padding: 5px 9px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .15s, transform .15s;
}
.icon-btn[data-tip]::before {
  content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent; border-top-color: #0D1622;
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .15s, transform .15s;
}
.icon-btn[data-tip]:hover::after,
.icon-btn[data-tip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Modal de confirmación / alerta (RAB.confirm) ────────── */
.rab-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(6,12,26,.72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s ease;
}
.rab-modal-overlay.show { opacity: 1; }
.rab-modal {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem 1.5rem;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
  transform: translateY(12px) scale(.97);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.rab-modal-overlay.show .rab-modal { transform: translateY(0) scale(1); }
.rab-modal-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  background: rgba(62,159,203,.14); color: var(--blue-light);
  border: 1px solid rgba(62,159,203,.28);
}
.rab-modal-icon svg { width: 24px; height: 24px; }
.rab-modal-icon.danger {
  background: rgba(248,113,113,.13); color: #f87171;
  border-color: rgba(248,113,113,.3);
}
.rab-modal-title {
  font-family: var(--font-body); font-weight: 800; font-size: 1.15rem;
  color: var(--white); margin-bottom: .5rem;
}
.rab-modal-msg { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.55); }
.rab-modal-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.rab-modal-btn {
  flex: 1; padding: .7rem 1rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; border: 1px solid transparent;
}
.rab-modal-cancel {
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.1);
}
.rab-modal-cancel:hover { background: rgba(255,255,255,.09); color: var(--white); }
.rab-modal-confirm { background: var(--blue); color: #fff; }
.rab-modal-confirm:hover { filter: brightness(1.08); }
.rab-modal-confirm.danger { background: #dc2626; }
.rab-modal-confirm.danger:hover { background: #ef4444; }
@media (max-width: 420px) { .rab-modal-actions { flex-direction: column-reverse; } }

/* ── Stat card ───────────────────────────────────────────── */
.stat-card { border-radius: 12px; padding: 1.25rem; border: 1px solid; }
.stat-card-available { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); }
.stat-card-sold      { background: rgba(62,159,203,.08); border-color: rgba(62,159,203,.2); }
.stat-card-upcoming  { background: rgba(228,169,78,.08); border-color: rgba(228,169,78,.2); }
.stat-card-total     { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.stat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.stat-value { font-family: var(--font-title); font-weight: 900; font-size: 2rem; color: var(--white); }

/* ── Entrance Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1),
              transform .55s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Variantes de dirección — el offset SOLO aplica antes de ser visible, así
   .reveal.visible (transform:none) gana siempre al revelarse y no queda corrido. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.from-left:not(.visible)  { transform: translateX(-28px); }
  .reveal.from-right:not(.visible) { transform: translateX(28px); }
}

/* Admin page entrance */
.admin-page.active { animation: fadeUp .32s cubic-bezier(.22,1,.36,1) both; }

/* Button press feedback */
.btn-primary:active,
.btn-outline:active,
.btn-gold:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

/* Mobile navbar slide-down */
.navbar-mobile.open { animation: slideDown .2s ease both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.visible { transition: none; opacity: 1; transform: none; }
  .admin-page.active { animation: none; }
  .navbar-mobile.open { animation: none; }
  .btn-primary:active,
  .btn-outline:active,
  .btn-gold:active,
  .btn-instagram:active { transform: none; }
  .btn-instagram:hover { transform: none; }
  .ig-reel { animation: none; }
  .ig-mute:hover, .ig-mute:active { transform: none; }
}

/* ── Botón flotante de WhatsApp (FAB) ─────────────────────── */
.wa-fab {
  position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px);
  z-index: 900; display: inline-flex; align-items: center; text-decoration: none;
}
.wa-fab-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.5), 0 4px 12px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab-btn svg { fill: #fff; width: 30px; height: 30px; }
.wa-fab-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.45);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-fab:hover .wa-fab-btn,
.wa-fab:focus-visible .wa-fab-btn {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 34px -6px rgba(37,211,102,.6), 0 6px 16px rgba(0,0,0,.4);
}
.wa-fab-tip {
  position: absolute; top: 50%; right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px);
  background: var(--bg-card); color: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .55rem .85rem; font-family: var(--font-body); font-size: 13px; line-height: 1.3;
  white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wa-fab-tip::after {
  content: ""; position: absolute; top: 50%; right: -5px;
  width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg);
  background: var(--bg-card); border-right: 1px solid var(--border); border-top: 1px solid var(--border);
}
.wa-fab:hover .wa-fab-tip,
.wa-fab:focus-visible .wa-fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 600px) {
  .wa-fab-btn { width: 52px; height: 52px; }
  .wa-fab-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab-btn::before { animation: none; }
  .wa-fab:hover .wa-fab-btn, .wa-fab:focus-visible .wa-fab-btn { transform: none; }
  .wa-fab-tip { transition: none; }
}
