/* =========================================================
   Rouge Bar — Zona 10, Guatemala
   Paleta tomada de los materiales de marca:
   rojo #FF0000 (muestreado del logotipo), negro de las fotos
   del local y crema #EFEDE8 (fondo del sitio anterior).
   ========================================================= */

/* ---------- Tipografías ---------- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/libre-baskerville-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/libre-baskerville-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Fichas de diseño ---------- */
:root {
  --rojo:        #ff0000;
  --rojo-hondo:  #c00000;
  --oro:         #e8a33d;
  --negro:       #0a0a0a;
  --negro-suave: #141414;
  --negro-carta: #1b1a19;
  --crema:       #efede8;
  --crema-tenue: rgba(239, 237, 232, .72);
  --linea:       rgba(239, 237, 232, .16);

  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --texto:   'Libre Baskerville', Georgia, serif;

  --ancho: 1200px;
  --aire:  clamp(64px, 9vw, 130px);
  --radio: 3px;        /* botones y bordes finos */
  --radio-img: 18px;   /* fotos y bloques grandes */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--crema-tenue);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }   /* el navegador le pone 1em 40px por defecto */
a { color: inherit; }

.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--rojo); color: #fff; padding: 12px 20px; z-index: 999;
}
.saltar:focus { left: 0; }

:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.contenedor {
  width: min(100% - 48px, var(--ancho));
  margin-inline: auto;
}

/* ---------- Tipografía compartida ---------- */
.antetitulo {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--rojo);
  margin: 0 0 14px;
}

.titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: .96;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 0 24px;
}
.titulo em { font-style: normal; color: var(--rojo); }

.parrafo { margin: 0 0 24px; max-width: 54ch; }
.centrado { text-align: center; margin-inline: auto; }

/* ---------- Botones ---------- */
.boton {
  display: inline-block;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: var(--radio);
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.boton--rojo { background: var(--rojo); color: #fff; }
.boton--rojo:hover { background: var(--rojo-hondo); transform: translateY(-2px); }
.boton--linea { border-color: var(--linea); color: var(--crema); }
.boton--linea:hover { border-color: var(--rojo); color: var(--rojo); transform: translateY(-2px); }

/* ---------- Barra de datos ---------- */
.barra-datos {
  background: #000;
  border-bottom: 1px solid var(--linea);
  font-size: 13px;
}
.barra-datos__int {
  display: flex; flex-wrap: wrap; gap: 8px 34px;
  align-items: center; justify-content: center;
  padding: 11px 0;
}
.dato { color: var(--crema-tenue); text-decoration: none; }
.dato__et { color: var(--rojo); letter-spacing: .08em; }
a.dato:hover { color: var(--rojo); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__int {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.logo img { width: auto; height: 74px; }

.nav { display: flex; align-items: center; gap: 34px; }
.cabecera__acciones { display: flex; align-items: center; gap: 12px; }
.nav__lista {
  display: flex; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav__lista a {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  position: relative;
  padding-bottom: 4px;
}
.nav__lista a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--rojo);
  transition: width .25s;
}
.nav__lista a:hover::after, .nav__lista a:focus-visible::after { width: 100%; }
.nav__cta { padding: 11px 24px; font-size: 15px; }

.hamburguesa {
  display: none;
  width: 46px; height: 40px;
  background: none; border: 1px solid var(--linea); border-radius: var(--radio);
  cursor: pointer;
  padding: 10px 11px;
}
.hamburguesa span {
  display: block; height: 2px; background: var(--crema);
  transition: transform .3s, opacity .3s;
}
.hamburguesa span + span { margin-top: 5px; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.portada {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid; align-items: center;
  overflow: hidden;
}
.portada__fondo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  z-index: 0;
}
.portada::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(10,10,10,.94) 0%, rgba(10,10,10,.72) 46%, rgba(10,10,10,.42) 100%),
    linear-gradient(to top, rgba(10,10,10,.96) 0%, transparent 42%);
}
.portada__int { position: relative; z-index: 2; padding: 110px 0 130px; }
.portada__titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(58px, 10.5vw, 132px);
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 0 22px;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.portada__titulo em { font-style: normal; color: var(--rojo); }
.portada__bajada {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 46ch; margin: 0 0 40px;
  color: var(--crema);
}
.portada__acciones { display: flex; flex-wrap: wrap; gap: 16px; }

.portada__flecha {
  position: absolute; z-index: 2;
  left: 50%; bottom: 30px;
  width: 26px; height: 26px;
  border-right: 2px solid var(--crema-tenue);
  border-bottom: 2px solid var(--crema-tenue);
  transform: translateX(-50%) rotate(45deg);
  animation: rebote 2.4s infinite;
}
@keyframes rebote {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); }
  50%      { transform: translateX(-50%) rotate(45deg) translate(6px, 6px); }
}

/* ---------- Secciones ---------- */
.seccion { padding: var(--aire) 0; }

/* Nosotros */
.nosotros { background: var(--negro-suave); }
.nosotros__int {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.nosotros__foto img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radio-img);
}
.datos-rapidos { list-style: none; margin: 0; padding: 0; }
.datos-rapidos li {
  padding: 13px 0;
  border-top: 1px solid var(--linea);
  font-size: 15px;
}
.datos-rapidos li:last-child { border-bottom: 1px solid var(--linea); }
.datos-rapidos span {
  display: inline-block; min-width: 108px;
  font-family: var(--display); font-size: 16px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--rojo);
}
.datos-rapidos a { text-decoration: none; }
.datos-rapidos a:hover { color: var(--rojo); }

/* Servicios */
.rejilla-servicios {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
.servicio {
  background: var(--negro);
  padding: 44px 34px;
  transition: background-color .3s;
}
.servicio:hover { background: var(--negro-carta); }
.servicio__icono {
  width: 42px; height: 42px; margin-bottom: 20px;
  fill: none; stroke: var(--rojo); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.servicio h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 25px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--crema); margin: 0 0 10px;
}
.servicio p { margin: 0; font-size: 15px; }

/* Eventos */
.eventos { background: var(--negro-suave); }
.eventos__int {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.eventos__foto img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radio-img);
}
.lista-marcas {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px;
}
.lista-marcas li { position: relative; padding-left: 24px; font-size: 15px; }
.lista-marcas li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; background: var(--rojo);
  transform: rotate(45deg);
}

/* Menú */
.menu {
  position: relative;
  text-align: center;
  background: var(--negro);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.menu__texto { margin-bottom: 34px; }

/* DJ */
.dj {
  position: relative;
  overflow: hidden;   /* los haces de luz de ::after se salen un 10% a cada lado */
  background: url('../img/multitud.jpg') center / cover no-repeat fixed;
}
.dj::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 10, 10, .82);
}
.dj__int {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.dj__foto img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radio-img);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}

/* Proveedores */
.proveedores { background: var(--negro-suave); }
.proveedores__int {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 60px); align-items: center;
}
.proveedores__foto { position: relative; }
.proveedores__foto img {
  position: relative; z-index: 1;
  margin-inline: auto;
  max-height: clamp(320px, 40vw, 560px);
  width: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
}

/* Contacto */
.contacto { padding-bottom: 0; }
.contacto__rejilla {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 56px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
.tarjeta { background: var(--negro); padding: 36px 28px; }
.tarjeta h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 22px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rojo); margin: 0 0 14px;
}
.tarjeta p { margin: 0 0 6px; font-size: 15px; }
.tarjeta a { text-decoration: none; }
.tarjeta a:hover { color: var(--rojo); }

.mapa { margin-top: 64px; }
.mapa__marco {
  position: relative;
  line-height: 0;
  background: var(--negro-carta);   /* si el iframe tarda, no queda un hueco en blanco */
  min-height: 440px;
}
.mapa iframe {
  width: 100%; height: 440px; border: 0;
  filter: grayscale(.35) brightness(.88) contrast(1.04);
}
.mapa__pie {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  align-items: center; justify-content: center;
  padding: 22px 24px;
  background: var(--negro-carta);
  border-top: 1px solid var(--linea);
  font-size: 14px; line-height: 1.6; text-align: center;
}

/* ---------- Pie ---------- */
.pie {
  background: #000;
  border-top: 1px solid var(--linea);
  padding: 64px 0 0;
}
.pie__int {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 40px; align-items: center;
}
.pie__logo img { height: 92px; width: auto; }
.pie__datos { text-align: center; font-size: 14px; }
.pie__datos p { margin: 0 0 6px; }
.pie__datos a { text-decoration: none; }
.pie__datos a:hover { color: var(--rojo); }

.pie__redes { display: flex; gap: 14px; }
.pie__redes a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--linea); border-radius: 50%;
  color: var(--crema);
  transition: border-color .25s, color .25s, transform .25s;
}
.pie__redes a:hover { border-color: var(--rojo); color: var(--rojo); transform: translateY(-2px); }
.pie__redes svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.pie__legal {
  margin: 54px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--linea);
  text-align: center;
  font-family: var(--display);
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(239, 237, 232, .45);
}

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--rojo); color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .25s, background-color .25s;
}
.wa-flotante:hover { transform: scale(1.07); background: var(--rojo-hondo); }
.wa-flotante svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* =========================================================
   Adaptación a pantallas menores
   ========================================================= */
@media (max-width: 1000px) {
  .proveedores__int { grid-template-columns: 1fr; }
  .proveedores__foto img { max-height: 300px; }
  .rejilla-servicios { grid-template-columns: repeat(2, 1fr); }
  .contacto__rejilla { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hamburguesa { display: block; }

  /* El backdrop-filter convierte a .cabecera en bloque contenedor de sus
     descendientes position:fixed, y el cajón del menú quedaría del alto de
     la cabecera en vez del alto de la pantalla. En móvil se cambia el
     desenfoque por un fondo sólido. */
  .cabecera { backdrop-filter: none; background: var(--negro); }

  /* Botón y hamburguesa quedan por encima del cajón. */
  .cabecera__acciones { position: relative; z-index: 2; }
  .nav__cta { padding: 9px 15px; font-size: 13px; letter-spacing: .12em; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0;
    padding: 40px;
    background: var(--negro-suave);
    border-left: 1px solid var(--linea);

    /* Cerrado se oculta en el sitio, sin desplazarse fuera del viewport:
       un translateX(100%) lo dejaría a la derecha de la pantalla y eso
       ensancha el documento en tablet y móvil. */
    visibility: hidden;
    opacity: 0;
    transform: scale(.98);
    transform-origin: right center;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .nav.abierto {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .28s ease, transform .28s ease, visibility 0s;
  }
  .nav__lista { flex-direction: column; gap: 24px; }
  .nav__lista a { font-size: 26px; }

  .nosotros__int, .eventos__int, .dj__int { grid-template-columns: 1fr; }
  .eventos__foto { order: 2; }

  .dj { background-attachment: scroll; }

  .portada { min-height: auto; }
  .portada__int { padding: 88px 0 100px; }
  .portada::after {
    background: linear-gradient(to top, rgba(10,10,10,.95) 10%, rgba(10,10,10,.62) 100%);
  }

  .pie__int { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 560px) {
  .rejilla-servicios { grid-template-columns: 1fr; }
  .contacto__rejilla { grid-template-columns: 1fr; }
  .lista-marcas { grid-template-columns: 1fr; }
  .barra-datos__int { gap: 4px 18px; font-size: 12px; }
  .dato--dir { display: none; }
  .portada__acciones .boton { width: 100%; text-align: center; }
  .logo img { height: 48px; }
  .mapa iframe { height: 330px; }
}

/* =========================================================
   MOVIMIENTO
   Todo se apoya en transform y opacity, que el navegador
   compone sin recalcular la maqueta. Nada anima width,
   height, top ni left.
   ========================================================= */

/* ---------- 1. La portada respira ----------
   Un zoom lentísimo sobre la foto del rótulo. 28 s de ida y
   vuelta: no se percibe como animación, se percibe como que
   la imagen está viva. */
.portada__fondo {
  animation: respirar 28s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
  will-change: transform;
}
@keyframes respirar {
  from { transform: scale(1)    translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.2%, -1%, 0); }
}

/* Resplandor cálido que late sobre la portada, como las
   bombillas del rótulo cuando la cámara se mueve. */
.portada::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 72% 38%, rgba(232, 163, 61, .28), transparent 68%),
    radial-gradient(45% 40% at 18% 78%, rgba(255, 0, 0, .16), transparent 70%);
  animation: latir 7s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes latir {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* ---------- 2. Tira de bombillas ----------
   El elemento de marca del local: las letras ROUGE con focos.
   Aquí es un separador de secciones cuyos focos se encienden
   en cadena. Cuesta un solo elemento y ningún archivo. */
.luces {
  height: 26px;
  background-image:
    radial-gradient(circle at 13px 13px, rgba(232, 163, 61, .95) 0 3.5px, transparent 4.5px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
  background-position: center;
  position: relative;
  opacity: .5;
}
.luces::after {
  content: ''; position: absolute; inset: 0;
  background-image: inherit;
  background-size: inherit;
  background-repeat: inherit;
  background-position: inherit;
  filter: blur(3px) brightness(1.9);
  animation: cadena 3.2s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, transparent 24%);
          mask-image: linear-gradient(90deg, transparent, #000 12%, transparent 24%);
  -webkit-mask-size: 300% 100%;
          mask-size: 300% 100%;
}
@keyframes cadena {
  from { -webkit-mask-position: -100% 0; mask-position: -100% 0; }
  to   { -webkit-mask-position:  200% 0; mask-position:  200% 0; }
}
.luces--fina { opacity: .32; }

/* ---------- 3. Focos de escenario en la sección del DJ ----------
   Dos haces de luz que barren en diagonal, como los cañones
   sobre una pista. Van sobre el velo oscuro y bajo el texto. */
.dj::after {
  content: ''; position: absolute; inset: -20% -10%;
  pointer-events: none;
  background:
    linear-gradient(103deg, transparent 42%, rgba(255, 0, 0, .16) 50%, transparent 58%),
    linear-gradient(77deg,  transparent 44%, rgba(90, 130, 255, .14) 51%, transparent 59%);
  animation: barrer 11s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes barrer {
  from { transform: translate3d(-7%, 0, 0) rotate(-1.5deg); opacity: .7; }
  to   { transform: translate3d( 7%, 0, 0) rotate( 1.5deg); opacity: 1; }
}
.dj__int { z-index: 1; }

/* La foto del DJ flota muy despacio. */
.dj__foto img {
  animation: flotar 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes flotar {
  from { transform: translate3d(0, -9px, 0); }
  to   { transform: translate3d(0,  9px, 0); }
}

/* ---------- 4. Tira de fotos en marcha ----------
   Un carrusel continuo, sin JavaScript y sin controles: es
   ambiente, no navegación. Las imágenes van duplicadas en el
   HTML para que el ciclo cierre sin salto. */
.tira {
  padding: 0 0 var(--aire);
  overflow: hidden;
}
.tira__pista {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: desfilar 46s linear infinite;
}
.tira:hover .tira__pista { animation-play-state: paused; }
.tira__pista img {
  height: clamp(180px, 22vw, 280px);
  width: auto;
  border-radius: var(--radio-img);
  object-fit: cover;
  filter: grayscale(.25) brightness(.85);
  transition: filter .4s, transform .4s;
}
.tira__pista img:hover { filter: none; transform: scale(1.03); }
@keyframes desfilar {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 9px), 0, 0); }   /* mitad = un juego completo + su hueco */
}

/* ---------- 5. Las secciones entran al hacer scroll ----------
   El estado inicial solo se aplica si hay JavaScript (la clase
   la pone sitio.js). Sin JS, todo se ve normal. */
.js [data-revelar] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.js [data-revelar].visible {
  opacity: 1;
  transform: none;
}
.js [data-revelar="2"] { transition-delay: .12s; }
.js [data-revelar="3"] { transition-delay: .24s; }

/* ---------- 6. Brillo que cruza los botones rojos ---------- */
.boton--rojo { position: relative; overflow: hidden; }
.boton--rojo::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translate3d(-220%, 0, 0) skewX(-18deg);
  transition: transform .65s ease;
}
.boton--rojo:hover::after { transform: translate3d(320%, 0, 0) skewX(-18deg); }

/* ---------- 7. Las tarjetas de servicio se levantan ---------- */
.servicio { transition: background-color .3s, transform .3s; }
.servicio:hover { transform: translate3d(0, -4px, 0); }
.servicio__icono { transition: transform .4s ease; }
.servicio:hover .servicio__icono { transform: scale(1.12) rotate(-4deg); }

/* ---------- 8. Panel de horarios del DJ ---------- */
.horario-dj {
  display: grid; gap: 2px;
  margin: 0 0 32px;
  background: var(--linea);
  border: 1px solid var(--linea);
  border-radius: var(--radio-img);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.horario-dj div {
  background: rgba(10, 10, 10, .72);
  padding: 20px 24px;
}
.horario-dj dt {
  font-family: var(--display);
  font-size: 21px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rojo);
  margin: 0 0 4px;
}
.horario-dj dd { margin: 0; font-size: 15px; }

.dj__acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 9. Detalles menores ---------- */
.mapa__marco { border-radius: var(--radio-img); overflow: hidden; }
.proveedores__foto img {
  animation: flotar 7.5s ease-in-out infinite alternate;
}
.wa-flotante::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--rojo);
  animation: onda 2.6s ease-out infinite;
}
@keyframes onda {
  0%   { transform: scale(1);   opacity: .75; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 860px) {
  .horario-dj { grid-template-columns: 1fr; }
  .tira__pista { animation-duration: 32s; }
  /* Los haces de luz y el zoom se notan menos y cuestan más en
     móvil: se apagan. */
  .dj::after, .portada__fondo { animation: none; }
  .dj__foto img, .proveedores__foto img { animation: none; }
}

/* ---------- Si el sistema pide menos movimiento, no hay ninguno ---------- */
@media (prefers-reduced-motion: reduce) {
  .portada__fondo, .portada::before, .luces::after, .dj::after,
  .dj__foto img, .tira__pista, .proveedores__foto img, .wa-flotante::before,
  .portada__flecha {
    animation: none !important;
  }
  .js [data-revelar] { opacity: 1; transform: none; }
}

/* =========================================================
   FOTOS A LA ALTURA DEL TEXTO
   En dos columnas la foto se estira hasta igualar la columna
   de texto. object-fit: cover recorta lo que sobre, así que
   sirve para cualquier proporción de origen.
   ========================================================= */
@media (min-width: 861px) {
  .nosotros__int,
  .eventos__int,
  .dj__int { align-items: stretch; }

  .nosotros__foto,
  .eventos__foto,
  .dj__foto { display: flex; }

  .nosotros__foto img,
  .eventos__foto img,
  .dj__foto img {
    width: 100%;
    height: 100%;
    min-height: 420px;      /* si el texto es muy corto, la foto no se aplasta */
    aspect-ratio: auto;
    object-fit: cover;
  }

  /* La de la barra está tomada muy apaisada: al recortarla en vertical
     conviene anclar el encuadre en las copas, no en el centro. */
  .nosotros__foto img { object-position: center 38%; }
}

/* =========================================================
   AMBIENTE EN LOS FONDOS NEGROS
   Dos resplandores muy tenues —ámbar y rojo— que derivan en
   direcciones distintas. Al no coincidir sus ciclos (34 s y
   47 s) la combinación no se repite a simple vista, y el
   negro deja de leerse como una superficie plana.
   ========================================================= */
.nosotros, .servicios, .menu, .proveedores, .contacto, .eventos {
  position: relative;
  isolation: isolate;
  overflow: hidden;   /* el resplandor de ::before se escala un 18% y se saldría */
}
.nosotros::before, .servicios::before, .menu::before,
.proveedores::before, .contacto::before, .eventos::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 18% 22%, rgba(232, 163, 61, .10), transparent 70%),
    radial-gradient(38% 50% at 84% 76%, rgba(255, 0, 0, .09),    transparent 72%);
  animation: derivar 34s ease-in-out infinite alternate;
}
/* Alternando el sentido, dos secciones seguidas nunca laten igual. */
.servicios::before, .proveedores::before {
  animation-duration: 47s;
  animation-direction: alternate-reverse;
}
@keyframes derivar {
  from { transform: translate3d(-3%, -2%, 0) scale(1);    opacity: .75; }
  to   { transform: translate3d( 4%,  3%, 0) scale(1.18); opacity: 1; }
}

/* Un grano finísimo sobre toda la página: rompe las bandas que
   se forman en los degradados oscuros y da textura de foto.
   Es un SVG en línea, no un archivo. */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23r)'/%3E%3C/svg%3E");
  animation: granular 1.4s steps(3) infinite;
}
@keyframes granular {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(-3%, 2%, 0); }
  66%  { transform: translate3d(2%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
/* La cabecera y el botón flotante van por encima del grano. */
.cabecera { z-index: 100; }
.wa-flotante { z-index: 90; }

@media (max-width: 860px) {
  .nosotros::before, .servicios::before, .menu::before,
  .proveedores::before, .contacto::before, .eventos::before { animation: none; }
  body::after { animation: none; opacity: .028; }
}

@media (prefers-reduced-motion: reduce) {
  .nosotros::before, .servicios::before, .menu::before,
  .proveedores::before, .contacto::before, .eventos::before,
  body::after { animation: none !important; }
}

/* =========================================================
   REFLECTOR QUE SIGUE AL RATÓN
   La posición llega desde sitio.js en dos variables CSS. El
   JavaScript solo escribe dos números; toda la pintura la
   hace el CSS, así que mover el ratón no dispara maquetación.
   ========================================================= */
.reflector { --mx: 50%; --my: 50%; }
.reflector::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(340px circle at var(--mx) var(--my), rgba(255, 0, 0, .22), transparent 62%),
    radial-gradient(560px circle at var(--mx) var(--my), rgba(232, 163, 61, .13), transparent 68%);
  opacity: 0;
  transition: opacity .45s ease;
}
.reflector.encendido::after { opacity: 1; }

/* Sin ratón (móvil, tabletas) el reflector no sirve: en su
   lugar el resplandor recorre la sección solo. */
@media (hover: none) {
  .reflector::after {
    opacity: 1;
    animation: rondar 16s ease-in-out infinite alternate;
  }
}
@keyframes rondar {
  from { --mx: 22%; --my: 30%; }
  to   { --mx: 78%; --my: 72%; }
}
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

/* ---------- Luces flotando ----------
   Ocho puntos desenfocados que suben despacio, como las luces
   fuera de foco de una barra. Cada uno con su tamaño, su
   posición, su ritmo y su retardo, para que nunca vayan a una. */
.chispas {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.chispas span {
  position: absolute;
  bottom: -14%;
  border-radius: 50%;
  filter: blur(9px);
  opacity: 0;
  animation: subir linear infinite;
}
.chispas span:nth-child(1) { left:  6%; width: 26px; height: 26px; background: rgba(232,163,61,.75); animation-duration: 19s; animation-delay:  0s; }
.chispas span:nth-child(2) { left: 19%; width: 14px; height: 14px; background: rgba(255,255,255,.5); animation-duration: 25s; animation-delay: -6s; }
.chispas span:nth-child(3) { left: 33%; width: 34px; height: 34px; background: rgba(255,0,0,.42);    animation-duration: 22s; animation-delay: -13s; }
.chispas span:nth-child(4) { left: 47%; width: 18px; height: 18px; background: rgba(232,163,61,.62); animation-duration: 28s; animation-delay: -3s; }
.chispas span:nth-child(5) { left: 61%; width: 24px; height: 24px; background: rgba(255,255,255,.38);animation-duration: 21s; animation-delay: -17s; }
.chispas span:nth-child(6) { left: 74%; width: 40px; height: 40px; background: rgba(232,163,61,.5);  animation-duration: 31s; animation-delay: -9s; }
.chispas span:nth-child(7) { left: 86%; width: 16px; height: 16px; background: rgba(255,0,0,.5);     animation-duration: 24s; animation-delay: -21s; }
.chispas span:nth-child(8) { left: 94%; width: 22px; height: 22px; background: rgba(232,163,61,.55); animation-duration: 27s; animation-delay: -15s; }

@keyframes subir {
  0%   { transform: translate3d(0, 0, 0) scale(.7);      opacity: 0; }
  12%  {                                                  opacity: .9; }
  50%  { transform: translate3d(26px, -52vh, 0) scale(1); }
  88%  {                                                  opacity: .55; }
  100% { transform: translate3d(-18px, -105vh, 0) scale(1.25); opacity: 0; }
}

/* ---------- Destacados del menú ---------- */
.fichas {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.menu__destacados { justify-content: center; margin-inline: auto; }
.fichas li {
  font-family: var(--display);
  font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crema);
  padding: 11px 22px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(10, 10, 10, .5);
  transition: border-color .3s, color .3s, transform .3s;
}
.fichas li:hover {
  border-color: var(--rojo);
  color: var(--rojo);
  transform: translate3d(0, -3px, 0);
}

.menu__acciones {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .chispas span, .reflector::after { animation: none !important; }
}

/* =========================================================
   PROVEEDORES: LA CERVEZA, EN MOVIMIENTO
   Tres capas detrás de las botellas: la luz del refrigerador,
   las burbujas que suben y el vaho frío. Las botellas van
   encima (z-index: 1) y se mecen muy despacio.
   ========================================================= */

/* Luz de refrigerador: un halo ámbar que late detrás del vidrio. */
.proveedores__foto::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, .30), rgba(232, 163, 61, .08) 46%, transparent 68%);
  filter: blur(26px);
  animation: enfriar 6.5s ease-in-out infinite alternate;
}
@keyframes enfriar {
  from { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* Las botellas se mecen: flotan y giran un grado y medio. */
.proveedores__foto img {
  animation: mecer 8s ease-in-out infinite alternate;
  transform-origin: 50% 92%;   /* pivota desde la base, como una botella apoyada */
  transition: transform .5s ease;
  will-change: transform;
}
@keyframes mecer {
  from { transform: translate3d(0, -10px, 0) rotate(-1.4deg); }
  to   { transform: translate3d(0,  10px, 0) rotate( 1.4deg); }
}
.proveedores__foto:hover img {
  animation-play-state: paused;
  transform: scale(1.05) rotate(0deg);
}

/* ---------- Burbujas ----------
   Suben desde abajo, se van haciendo grandes y se desvanecen,
   como la carbonatación dentro del vidrio. */
.burbujas {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.burbujas span {
  position: absolute;
  bottom: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(232,163,61,.35) 55%, transparent 72%);
  animation: burbujear linear infinite;
  opacity: 0;
}
.burbujas span:nth-child(1)  { left: 22%; width:  9px; height:  9px; animation-duration: 8s;  animation-delay:  0s; }
.burbujas span:nth-child(2)  { left: 31%; width:  5px; height:  5px; animation-duration: 11s; animation-delay: -3s; }
.burbujas span:nth-child(3)  { left: 39%; width: 13px; height: 13px; animation-duration: 9.5s;animation-delay: -6s; }
.burbujas span:nth-child(4)  { left: 46%; width:  6px; height:  6px; animation-duration: 12s; animation-delay: -1s; }
.burbujas span:nth-child(5)  { left: 53%; width: 10px; height: 10px; animation-duration: 7.5s;animation-delay: -4s; }
.burbujas span:nth-child(6)  { left: 60%; width:  4px; height:  4px; animation-duration: 13s; animation-delay: -8s; }
.burbujas span:nth-child(7)  { left: 67%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -2s; }
.burbujas span:nth-child(8)  { left: 74%; width:  7px; height:  7px; animation-duration: 8.8s;animation-delay: -7s; }
.burbujas span:nth-child(9)  { left: 28%; width:  4px; height:  4px; animation-duration: 14s; animation-delay: -10s; }
.burbujas span:nth-child(10) { left: 81%; width:  8px; height:  8px; animation-duration: 9s;  animation-delay: -5s; }

@keyframes burbujear {
  0%   { transform: translate3d(0, 0, 0) scale(.5);        opacity: 0; }
  10%  {                                                    opacity: .9; }
  45%  { transform: translate3d(9px,  -46%, 0) scale(1); }
  80%  { transform: translate3d(-7px, -80%, 0) scale(1.15); opacity: .5; }
  100% { transform: translate3d(4px, -108%, 0) scale(1.3);  opacity: 0; }
}

@media (max-width: 860px) {
  .proveedores__int { grid-template-columns: 1fr; }
  .proveedores__foto img { animation: none; max-height: 340px; }
  .burbujas { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .proveedores__foto::before,
  .proveedores__foto img,
  .burbujas span { animation: none !important; }
}
