/* ============ ServiAutos Plaza España ============ */
:root {
  --bg: #0f1115;
  --bg-soft: #161a21;
  --card: #1c212b;
  --line: #2a3140;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent: #f97316;       /* naranja taller */
  --accent-dark: #ea580c;
  --whatsapp: #25d366;
  --radius: 14px;
  --header-bg: rgba(15, 17, 21, 0.85);
  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ===== Tema claro ===== */
[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-soft: #eaecf1;
  --card: #ffffff;
  --line: #dbe0e9;
  --text: #181d27;
  --muted: #5a6373;
  --header-bg: rgba(255, 255, 255, 0.88);
}

/* Logo original de Facebook: el fondo del logo se funde con el color del navbar.
   Oscuro → negativo + blend "screen" (el negro desaparece, queda el arte en blanco).
   Claro  → original + blend "multiply" (el blanco desaparece, queda el arte en negro). */
.brand-logo img { filter: invert(1); mix-blend-mode: screen; }
[data-theme="light"] .brand-logo img { filter: none; mix-blend-mode: multiply; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* marca de contenido pendiente de confirmar */
.pending { color: #fbbf24; font-style: normal; font-size: 0.8em; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; border: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-outline {
  border: 1.5px solid var(--line); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp {
  background: var(--whatsapp); color: #06281a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-logo { background: transparent; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 0.5px; text-transform: uppercase; }
.brand-text small { color: var(--accent); font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 1rem;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(15deg); }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,17,21,0.96) 35%, rgba(15,17,21,0.55) 70%, rgba(15,17,21,0.35)),
    url("https://images.unsplash.com/photo-1625047509248-ec889cbff17f?q=80&w=1800&auto=format&fit=crop") center/cover no-repeat;
}
.hero-inner { position: relative; max-width: 640px; padding: 4rem 0; }
.hero-kicker {
  color: var(--accent); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem;
}
/* el hero siempre va sobre foto oscura: texto claro fijo en ambos temas */
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 4.6rem); color: #eef1f6;
  line-height: 1.02; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem;
}
.accent { color: var(--accent); }
.hero-sub { color: #b6bdc9; font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; color: #b6bdc9; font-size: 0.9rem; }
.hero .btn-outline { border-color: #4a5364; color: #eef1f6; }
.hero .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============ TRUST BAR ============ */
.trustbar { background: var(--bg-soft); border-block: 1px solid var(--line); }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0;
}
.trust-item { display: flex; flex-direction: column; gap: 0.2rem; }
.trust-item strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--accent); text-transform: uppercase; }
.trust-item span { color: var(--muted); font-size: 0.9rem; }

/* ============ SECCIONES ============ */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-kicker {
  color: var(--accent); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; line-height: 1.05;
}
.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 2.8rem; }

/* ============ SERVICIOS ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }
.services-note { margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; }

/* versión compacta: solo icono + título */
.services-compact { grid-template-columns: repeat(4, 1fr); }
.services-compact .service-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.7rem; padding: 1.6rem 1rem;
}
.services-compact .service-card i {
  font-size: 2rem; color: var(--accent);
  width: 60px; height: 60px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.services-compact .service-card:hover i { transform: scale(1.12); }
.services-compact .service-card h3 { font-size: 0.98rem; margin: 0; line-height: 1.25; }

/* ============ SPLIT (nosotros / contacto) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-media { position: relative; }
.split-media img, .split-media iframe {
  width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.split-media iframe { border: 1px solid var(--line); }
.split-media-badge {
  position: absolute; bottom: -18px; left: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px; padding: 0.9rem 1.4rem; color: #fff;
  display: flex; flex-direction: column; line-height: 1.2;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.split-media-badge strong { font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; }
.split-media-badge span { font-size: 0.8rem; opacity: 0.9; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin: 0 0 2rem; }
.feature-list li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 1.2rem; border-left: 3px solid var(--accent); }
.feature-list strong { font-size: 1.02rem; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }

/* ============ GALERÍA ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-grid img { height: 230px; width: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* ============ TESTIMONIOS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; font-size: 0.95rem;
}
.testimonial p { margin-bottom: 1rem; color: var(--text); }
.testimonial footer { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* ============ CONTACTO ============ */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
/* cada dato de contacto como apartado/tarjeta bien delimitado */
.contact-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}
.contact-icon {
  font-size: 1.3rem; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  display: grid; place-items: center;
}

/* Botones de agendar cita (llamar / SMS / WhatsApp) */
.cita-buttons { display: flex; gap: 0.6rem; margin: 0.35rem 0; }
.cita-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important; font-size: 1.1rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform 0.15s ease;
}
.cita-btn:hover { transform: translateY(-3px); }
.cita-wa { background: var(--whatsapp); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }

/* Badge de abierto/cerrado (con API de Google conectada) */
#openBadge .badge-open, #openBadge .badge-closed {
  font-size: 0.68rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.5px; vertical-align: middle; margin-left: 0.3rem;
}
#openBadge .badge-open { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp); }
#openBadge .badge-closed { background: rgba(248, 113, 113, 0.15); color: #f87171; }
/* Tabla de horario: día | horas, con el día actual resaltado */
.hours-table {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 0.18rem 1.4rem; margin-top: 0.35rem;
}
.hours-row { display: contents; }
.hours-day {
  font-weight: 600; color: var(--text); font-size: 0.9rem;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  display: flex; align-items: center; min-height: 0; line-height: 1.5;
}
.hours-hrs {
  color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; line-height: 1.5;
}
.hours-now .hours-day, .hours-now .hours-hrs { color: var(--accent); font-weight: 700; }
.hoy-badge {
  background: var(--accent); color: #fff; font-style: normal;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 1px;
  padding: 0.12rem 0.5rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: 1px;
}

/* Carrusel/rail de redes sociales (solo iconos) */
.social-rail { display: flex; gap: 0.8rem; align-items: center; }
.social-rail a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: 1.15rem; position: relative;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: railFloat 3.4s ease-in-out infinite;
}
.social-rail a:nth-child(2) { animation-delay: 0.4s; }
.social-rail a:nth-child(3) { animation-delay: 0.8s; }
.social-rail a:nth-child(4) { animation-delay: 1.2s; }
.social-rail a:hover {
  color: #fff; border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
  animation-play-state: paused; transform: translateY(-4px) scale(1.08);
}
@keyframes railFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.footer .social-rail { justify-content: center; margin: 0.4rem 0; }
#contacto .social-rail { margin: 1.6rem 0 2rem; }
/* el título queda centrado verticalmente con su icono, y más grande
   (solo el título directo: los strong internos, como los días del horario, no) */
.contact-list li > div { flex: 1; min-width: 0; }
.contact-list li > div > strong {
  display: flex; align-items: center; gap: 0.4rem;
  min-height: 46px; font-size: 1.15rem; line-height: 1.25;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-list span { color: var(--muted); font-size: 0.95rem; }
.contact-list a { color: var(--accent); }

/* ============ REDES SOCIALES (solo iconos) ============ */
.social-icons { display: inline-flex; gap: 0.7rem; align-items: center; margin-top: 0.3rem; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-icons a:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); }
.social-icons svg { width: 19px; height: 19px; }
.footer-social { margin: 0.4rem 0; }

/* ============ RESEÑAS GOOGLE ============ */
.reviews-rating {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 0.8rem; color: var(--muted); font-size: 0.98rem;
}
.reviews-rating .stars { color: #fbbf24; font-size: 1.25rem; letter-spacing: 2px; }
.reviews-rating strong { color: var(--text); }
.btn-reviews { font-size: 0.82rem; padding: 0.5rem 1.1rem; }

/* ============ SALUDO (manita "Hola") ============ */
.greeter {
  position: fixed; bottom: 96px; right: 22px; z-index: 95;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 0.55rem 1.2rem 0.55rem 0.7rem; cursor: pointer;
  color: var(--text); font-weight: 600; font-size: 0.92rem; font-family: var(--font-body);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  animation: greeterIn 0.5s ease;
}
.greeter[hidden] { display: none; }
.greeter-hand {
  font-size: 1.6rem; display: inline-block;
  animation: wave 1.1s ease-in-out infinite; transform-origin: 70% 75%;
}
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(20deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(14deg); }
}
@keyframes greeterIn { from { opacity: 0; transform: translateY(24px) scale(0.85); } }

/* confeti de la fanfarria */
.confetti {
  position: absolute; top: -14px; width: 9px; height: 15px; border-radius: 2px;
  pointer-events: none; opacity: 0.95;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(740deg); opacity: 0.7; }
}

/* ============ MODAL DE PROMOCIONES ============ */
.promo-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 14, 0.78); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1rem; overflow: hidden;
}
.promo-modal.fanfare { animation: fanfarePop 0.75s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes fanfarePop {
  0% { opacity: 0; transform: scale(0.4) rotate(-4deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(1.5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ===== MODAL DE GALA PARA EVENTOS — 5 temas que rotan por evento ===== */
.promo-modal.evento { position: relative; overflow: hidden; width: min(620px, 100%); --cd: #ff2d2d; --cd-soft: #ff9d9d; }
.promo-modal.evento .promo-modal-kicker {
  font-size: 0.92rem; letter-spacing: 4px; text-align: center;
  animation: kickerBlink 1.6s ease-in-out infinite;
}
@keyframes kickerBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.promo-modal.evento .promo-modal-content h3 {
  font-size: clamp(2.4rem, 7vw, 3.6rem); text-align: center; line-height: 1;
}
.promo-modal.evento .promo-modal-content > img { position: relative; z-index: 2; }
.promo-modal.evento .promo-modal-body { text-align: center; font-size: 1.02rem; position: relative; z-index: 2; }

/* supercar real de fondo: solo una parte, con fundido */
.carbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: 16px; }
.carbg img { position: absolute; opacity: 0.32; max-width: none; }
.car-frente img { width: 150%; left: -25%; bottom: -34%;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 78%); mask-image: linear-gradient(to top, #000 35%, transparent 78%); }
.car-cola img { width: 175%; right: -78%; top: 6%;
  -webkit-mask-image: linear-gradient(to left, #000 28%, transparent 62%); mask-image: linear-gradient(to left, #000 28%, transparent 62%); }
.car-trompa img { width: 165%; left: -62%; bottom: -42%;
  -webkit-mask-image: linear-gradient(45deg, #000 30%, transparent 65%); mask-image: linear-gradient(45deg, #000 30%, transparent 65%); }

/* cuenta regresiva al inicio (solo dígitos, color de contraste por tema) */
.cd-strip {
  position: relative; z-index: 2; margin: -1.6rem -1.6rem 1rem; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.2));
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cd) 30%, transparent);
  border-radius: 16px 16px 0 0;
}
.cd-digits { display: flex; justify-content: center; gap: 0.32rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.14rem; }
.cd-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1;
  color: var(--cd); min-width: 58px; padding: 0.26rem 0.3rem;
  background: color-mix(in srgb, var(--cd) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cd) 35%, transparent); border-radius: 8px;
  text-shadow: 0 0 14px color-mix(in srgb, var(--cd) 90%, transparent), 0 0 30px color-mix(in srgb, var(--cd) 50%, transparent);
  font-variant-numeric: tabular-nums;
}
.cd-unit small { font-size: 0.6rem; font-weight: 700; letter-spacing: 1.8px; color: var(--cd-soft); }
.cd-sep { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--cd); line-height: 1.45; animation: kickerBlink 1s steps(1) infinite; }

/* chapa "EVENTO ACTIVO" */
.live-strip { position: relative; z-index: 2; text-align: center; padding-top: 0.4rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(37, 211, 102, 0.12); border: 2px solid var(--whatsapp); color: #6dffa8;
  font-weight: 800; letter-spacing: 3px; font-size: 1.05rem;
  border-radius: 999px; padding: 0.6rem 1.6rem;
  animation: liveGlow 1.6s ease-in-out infinite;
}
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--whatsapp); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); animation: livePing 1.2s ease-out infinite; }
@keyframes livePing { to { transform: scale(3); opacity: 0; } }
@keyframes liveGlow { 0%, 100% { box-shadow: 0 0 18px rgba(37,211,102,0.4); } 50% { box-shadow: 0 0 38px rgba(37,211,102,0.85); } }

/* reflectores largos: el haz muere fuera del modal */
.ev-spot {
  position: absolute; top: -25%; width: 70%; height: 260%; pointer-events: none; opacity: 0.14; z-index: 1;
  background: conic-gradient(from 0deg at 50% 0%, transparent 43%, #fff 50%, transparent 57%);
  transform-origin: top center;
}
.ev-spot.izq { left: -14%; animation: spotSwing 5.5s ease-in-out infinite; }
.ev-spot.der { right: -14%; animation: spotSwing 5.5s ease-in-out infinite reverse; }
@keyframes spotSwing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
/* en móvil los reflectores no lucen (modal angosto y alto) — fuera */
@media (max-width: 720px) {
  .ev-spot { display: none; }
}

/* partículas de fuegos artificiales */
.fw {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 8px currentColor;
  animation: fwFly 1.05s ease-out forwards;
}
@keyframes fwFly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

/* título con brillo según tema */
.ev-title {
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* — Tema 0: GALA DORADA — */
.ev-theme-0 { background: radial-gradient(130% 130% at 50% 0%, #3d2f0e, #161208 70%); border: 2px solid #fbbf24; box-shadow: 0 0 60px rgba(251, 191, 36, 0.35); }
.ev-theme-0 .promo-modal-kicker, .ev-theme-0 .promo-modal-dates, .ev-theme-0 .ev-countdown { color: #fbbf24; }
.ev-theme-0 .ev-title { background-image: linear-gradient(90deg, #fff7d6, #fbbf24, #b45309, #fff7d6); }
/* — Tema 1: NEÓN — */
.ev-theme-1 { background: radial-gradient(130% 130% at 50% 0%, #1b1033, #0b0716 70%); border: 2px solid #22d3ee; box-shadow: 0 0 24px rgba(34, 211, 238, 0.55), inset 0 0 30px rgba(34, 211, 238, 0.1); }
.ev-theme-1 .promo-modal-kicker, .ev-theme-1 .promo-modal-dates, .ev-theme-1 .ev-countdown { color: #22d3ee; text-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }
.ev-theme-1 .ev-title { background-image: linear-gradient(90deg, #a5f3fc, #22d3ee, #e879f9, #a5f3fc); }
/* — Tema 2: FIESTA — */
.ev-theme-2 { background: radial-gradient(130% 130% at 50% 0%, #3b1020, #160710 70%); border: 2px solid #f472b6; box-shadow: 0 0 50px rgba(244, 114, 182, 0.4); }
.ev-theme-2 .promo-modal-kicker, .ev-theme-2 .promo-modal-dates, .ev-theme-2 .ev-countdown { color: #f472b6; }
.ev-theme-2 .ev-title { background-image: linear-gradient(90deg, #fbcfe8, #f472b6, #fb923c, #fbcfe8); }
/* — Tema 3: REALEZA — */
.ev-theme-3 { background: radial-gradient(130% 130% at 50% 0%, #2a1545, #120a1e 70%); border: 2px solid #c084fc; box-shadow: 0 0 50px rgba(192, 132, 252, 0.4); }
.ev-theme-3 .promo-modal-kicker, .ev-theme-3 .promo-modal-dates, .ev-theme-3 .ev-countdown { color: #e9d5ff; }
.ev-theme-3 .ev-title { background-image: linear-gradient(90deg, #f3e8ff, #c084fc, #fbbf24, #f3e8ff); }
/* — Tema 4: MOTOR / CARRERAS (contador amarillo para contrastar con el rojo) — */
.ev-theme-4 { background: radial-gradient(130% 130% at 50% 0%, #3a0d0d, #170808 70%); border: 2px solid #ef4444; box-shadow: 0 0 50px rgba(239, 68, 68, 0.4); --cd: #fde047; --cd-soft: #fef3c7; }
.ev-theme-4 .promo-modal-kicker, .ev-theme-4 .promo-modal-dates, .ev-theme-4 .ev-countdown { color: #f87171; }
.ev-theme-4 .ev-title { background-image: linear-gradient(90deg, #fee2e2, #ef4444, #fbbf24, #fee2e2); }
/* — Tema 2 también lleva contador amarillo (rosa/rojo de fondo) — */
.ev-theme-2 { --cd: #fde047; --cd-soft: #fef3c7; }
.promo-modal-backdrop[hidden] { display: none; }
.promo-modal {
  position: relative; width: min(440px, 100%);
  background: var(--card); border: 1px solid var(--accent); border-radius: 18px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: promoPop 0.35s ease;
}
@keyframes promoPop { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.promo-modal-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px;
}
.promo-modal-close:hover { color: var(--text); }
.promo-modal-content img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 0.8rem; }
.promo-modal-content .promo-modal-kicker {
  color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem;
}
.promo-modal-content h3 { font-family: var(--font-head); font-size: 1.7rem; text-transform: uppercase; line-height: 1.1; margin: 0.2rem 0 0.4rem; }
.promo-modal-content p { color: var(--muted); font-size: 0.92rem; white-space: pre-line; }
.promo-modal-cta { justify-content: center; }
.promo-modal-skip {
  background: none; border: none; color: var(--muted); font-size: 0.85rem;
  cursor: pointer; text-decoration: underline;
}

/* ============ PROMOCIONES ============ */
.section-promos { background: linear-gradient(180deg, var(--bg) 0%, #1a1410 100%); border-block: 1px solid var(--line); }
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.promo-card {
  background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.promo-card h3 { font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; color: var(--accent); }
.promo-card p { color: var(--muted); font-size: 0.93rem; flex: 1; white-space: pre-line; }
.promo-card .btn { align-self: flex-start; font-size: 0.85rem; padding: 0.6rem 1.2rem; }
/* eventos: destacados sobre las promos */
.promo-card.es-evento { border: 2px solid #fbbf24; box-shadow: 0 10px 30px rgba(251, 191, 36, 0.18); }
.evento-ribbon {
  display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start;
  background: linear-gradient(135deg, #fde047, #d97706); color: #2a1d02;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px;
  padding: 0.22rem 0.75rem; border-radius: 999px;
}
.promo-dates { color: var(--accent) !important; font-size: 0.8rem !important; font-weight: 600; flex: none !important; }
.promo-modal-dates { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.promos-note { margin-top: 1.6rem; margin-bottom: 0; font-size: 0.82rem; }

/* ============ FORMULARIO DE CONTACTO ============ */
.contact-form-wrap { display: flex; flex-direction: column; gap: 1.2rem; }
.lead-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.lead-form h3 { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; }
.lead-form-sub { color: var(--muted); font-size: 0.88rem; margin-top: -0.4rem; }
.lead-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.7rem 0.9rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.lead-submit { justify-content: center; }
.lead-status { font-size: 0.88rem; min-height: 1.2em; margin: 0; }
.lead-status.ok { color: var(--whatsapp); }
.lead-status.error { color: #f87171; }
.contact-map #map {
  height: 340px; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); z-index: 1;
}
.map-note { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.map-pin {
  width: 48px; height: 48px; display: grid; place-items: center;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55));
}
.map-pin svg { width: 100%; height: 100%; position: relative; z-index: 1; }
/* pulso en el color del sitio bajo la corona */
.map-pin::before, .map-pin::after {
  content: ""; position: absolute; left: 50%; top: 78%;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.5); opacity: 0.9;
  animation: pinPulse 2.2s ease-out infinite;
}
.map-pin::after { animation-delay: 1.1s; }
@keyframes pinPulse {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--bg-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
.footer p { color: var(--muted); font-size: 0.9rem; }
.footer-copy { font-size: 0.8rem !important; opacity: 0.7; }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float i { font-size: 1.8rem; }

/* ============ AVISO FLOTANTE DE PROMOCIONES ============ */
.promo-float {
  position: fixed; bottom: 26px; left: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border: none; border-radius: 999px;
  padding: 0.7rem 1.3rem; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: promoPulse 2.2s ease-in-out infinite;
}
.promo-float:hover { animation-play-state: paused; transform: scale(1.05); }
.promo-float[hidden] { display: none; }
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 10px 38px color-mix(in srgb, var(--accent) 80%, transparent); }
}

/* ============ AVISO EN VIVO (promo/evento recién activado) ============ */
.live-toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 250; display: flex; align-items: center; gap: 0.7rem;
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 0.7rem 1.3rem; cursor: pointer; max-width: min(92vw, 560px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  animation: toastIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.live-toast i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.live-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast em { font-style: normal; color: var(--accent); font-size: 0.82rem; flex-shrink: 0; }
.live-toast.es-evento { border-color: #fbbf24; box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 22px rgba(251, 191, 36, 0.45); }
.live-toast.es-evento i { color: #fbbf24; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-26px) scale(0.9); } }

/* ============ ANIMACIÓN REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-compact { grid-template-columns: repeat(3, 1fr); }
  .promos-grid { grid-template-columns: 1fr; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 1.2rem 5%; gap: 1rem; display: none;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header-actions { display: none; }
  .hero { min-height: 80vh; }
  .services-grid { grid-template-columns: 1fr; }
  .services-compact { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .split-media img, .split-media iframe { height: 320px; }
}
