/* Navidad: solo actúa cuando js/navidad.js pone la clase "navidad" en <html>
   (hasta el 31/12; ?navidad=0 la apaga). Todo lo navideño que está en el HTML
   (moño, detalles de la franja de la tarjeta de regalo) queda oculto sin esa
   clase, así después de fin de año el sitio vuelve solo a la normalidad.
   Diseño: el de la foto aprobada (29/11). */
html.navidad {
  --nv-rojo: #a80f1e;
  --nv-rojo-oscuro: #940e19;
  --nv-oro: #d6ae55;
  --nv-oro-claro: #f6dd9b;
  --nv-naranja: #d0761f;
  --nv-fondo: #f4f1ef;
}

/* Lo navideño del HTML, oculto fuera de Navidad. */
.nv-divisor { display: none; }
.hero-desc strong { font-weight: inherit; }

/* --- Franja superior: roja con borde dorado. --- */
.navidad .presale-banner {
  background: linear-gradient(90deg, #6e0711, var(--nv-rojo), #6e0711);
  border-bottom: 2px solid var(--nv-oro);
}
.navidad .presale-banner strong { color: var(--nv-oro-claro); }

/* --- Fondo de la portada: claro y cálido, con destellos suaves y ramas en
   las esquinas (recortadas de la foto). --- */
.navidad .hero-section {
  isolation: isolate;
  background:
    radial-gradient(circle at 4% 34%, rgba(255, 214, 170, .35) 0, rgba(255, 214, 170, 0) 70px),
    radial-gradient(circle at 96% 46%, rgba(255, 220, 180, .30) 0, rgba(255, 220, 180, 0) 90px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 214, .55) 0, rgba(255, 236, 214, 0) 60%),
    linear-gradient(180deg, var(--nv-fondo) 0%, #f7f6f7 45%, #f3f3f5 100%);
}
.navidad .hero-section::before,
.navidad .hero-section::after,
.navidad .model-page-header.nv-interna::before,
.navidad .model-page-header.nv-interna::after {
  content: '';
  position: absolute;
  top: 0;
  z-index: -1;
  background: no-repeat top / 100% auto;
  pointer-events: none;
}
.navidad .hero-section::before,
.navidad .model-page-header.nv-interna::before {
  left: 0;
  background-image: url("/img/navidad/esquina-izq.webp");
  aspect-ratio: 624 / 612;
}
.navidad .hero-section::after,
.navidad .model-page-header.nv-interna::after {
  right: 0;
  background-image: url("/img/navidad/esquina-der.webp");
  aspect-ratio: 634 / 564;
}
.navidad .hero-section::before { width: clamp(96px, 24vw, 300px); }
.navidad .hero-section::after { width: clamp(98px, 24.4vw, 305px); }

/* Páginas internas (modelos, llantas, tarjeta): las mismas esquinas, más
   chicas, en la fila del botón "Volver" (que se corre para no taparlas). */
.navidad .model-page-header.nv-interna {
  position: relative;
  isolation: isolate;
  padding-left: calc(var(--nv-esq) + 6px);
  --nv-esq: clamp(62px, 8vw, 108px);
}
.navidad .model-page-header.nv-interna::before { width: var(--nv-esq); }
.navidad .model-page-header.nv-interna::after { width: calc(var(--nv-esq) * 1.02); }
.navidad .model-hero-banner,
.navidad .wheels-hero {
  background: linear-gradient(180deg, #faf8f7 0%, #ffffff 100%);
}

/* --- Portada: logo con gorro, título y moño. --- */
/* Gorro sobre el logo. El marco mide lo mismo que el logo (mismos topes que
   .hero-logo-big en styles.css), así envolverlo no mueve nada en la página. */
.nv-logo {
  position: relative;
  width: 100%;
  max-width: 432px;
}
.nv-logo .hero-logo-big { display: block; margin: 0 auto; }
@media (max-width: 768px) { .nv-logo { max-width: min(270px, 72vw); } }
.nv-gorro {
  position: absolute;
  left: 38%;
  top: -3%;
  width: 17%;
  transform: rotate(-9deg);
  pointer-events: none;
}
.navidad .hero-desc strong { font-weight: 700; color: #3c3d40; }
.navidad .nv-divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  margin: 18px auto 0;
}
.navidad .nv-divisor::before,
.navidad .nv-divisor::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(196, 18, 31, 0), #c4121f);
}
.navidad .nv-divisor::after { background: linear-gradient(90deg, #c4121f, rgba(196, 18, 31, 0)); }
.navidad .nv-divisor svg { flex-shrink: 0; }
.navidad .hero-models-grid { margin-top: 26px; }

/* --- Tarjetas de Model 3 y Model Y: más redondeadas y con sombra suave. --- */
.navidad .hero-model-card {
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(30, 20, 20, .07);
}
.navidad .hero-specs-count { display: none; }

/* --- Gift card (tercera tarjeta de la portada): moño y subtítulo de fiestas. --- */
.navidad .hero-gc-card::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 14px;
  width: 46px;
  height: 34px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 40'%3E%3Cdefs%3E%3CradialGradient id='l' cx='.35' cy='.3' r='.9'%3E%3Cstop offset='0' stop-color='%23ff6a6c'/%3E%3Cstop offset='.5' stop-color='%23c4121f'/%3E%3Cstop offset='1' stop-color='%23760910'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M25 20 18 38l5-2 3 4 2-19zM29 20l7 18-5-2-3 4-2-19z' fill='%23960e18'/%3E%3Cpath d='M27 18C22 4 4 0 3 11c-1 9 14 10 24 7zM27 18C32 4 50 0 51 11c1 9-14 10-24 7z' fill='url(%23l)'/%3E%3Crect x='22.5' y='13' width='9' height='9' rx='3' fill='url(%23l)'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 3px rgba(80, 0, 0, .25));
  pointer-events: none;
}
.navidad .gc-sub-nv { display: inline; }
.navidad .gc-sub-def { display: none; }

@media (max-width: 768px) {
  .navidad .hero-section { padding-top: 26px; }
  .navidad .nv-logo,
  .navidad .hero-logo-big { max-width: min(205px, 52vw); }
  .navidad .presale-banner { font-size: 11px; font-weight: 500; padding-right: 92px; }
  .navidad .presale-banner strong { font-weight: 700; }
  .navidad .hero-headline { margin-bottom: 8px; }
  .navidad .hero-desc { font-size: 15.5px; line-height: 1.45; padding: 0 6px; }
  .navidad .nv-divisor { width: min(100%, 220px); margin-top: 12px; }
  .navidad .hero-models-grid { margin-top: 18px; gap: 18px; }
  .navidad .hero-model-card { padding: 20px 16px; }
  .navidad .hero-card-title { font-size: 25px; }
  .navidad .hero-card-categories { margin-top: 10px; }
}
@media (max-width: 380px) {
  .navidad .hero-model-card { padding: 18px 14px; }
  .navidad .hero-card-title { font-size: 22px; }
}

/* Saludo en el pie. */
.navidad .footer-inner::before {
  content: 'Felices fiestas 🎄 te desea el equipo de Tesla Accesorios Uruguay';
  font-size: 13px;
  font-weight: 600;
  color: var(--nv-rojo);
  text-align: center;
}
