:root{
  --gold:#d4af37;
  --gold2:#b8932f;
  --dark:#0f0f0f;
  --dark2:#121212;
  --card:#1a1a1a;
}

body{
  margin:0;
  font-family:'Montserrat', sans-serif;
  background:var(--dark);
  color:#fff;
  overflow-x:hidden;
}

/* NAV */
.nav-premium{
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(8px);
}

/* HERO */
.hero{
  position:relative;
  height:100vh;
  overflow:hidden;
}
.hero-bg{
  width:100%;
  height:100vh;
  object-fit:cover;
  filter:brightness(0.5);
}
.hero-overlay{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-title{
  font-family:'Playfair Display', serif;
  font-size:3rem;
  color:var(--gold);
}
.hero-sub{
  font-size:1.2rem;
  margin-top:10px;
}

/* SECTIONS */
.section-dark{
  padding:100px 0;
  background:var(--dark);
}
.section-light{
  padding:100px 0;
  background:#fff;
  color:#111;
}
.section-title{
  font-family:'Playfair Display', serif;
  font-size:2.5rem;
  color:var(--gold);
}
.section-light .section-title{
  color:#8c6b1f;
}
.section-text{
  max-width:820px;
  margin:auto;
  font-size:1.1rem;
  opacity:0.92;
}

/* Buttons */
.btn-gold{
  background:var(--gold);
  color:#000;
  border:none;
  padding:10px 25px;
  font-weight:500;
}
.btn-gold:hover{
  background:var(--gold2);
  color:#000;
}

/* WhatsApp float */
.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#25D366;
  width:60px;
  height:60px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 20px rgba(0,0,0,0.3);
  z-index:999;
}

/* SECCIÓN 1 y 2 (tipo tus imágenes) */
.section-events{
  padding:100px 0;
  background:
    linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)),
    url('../hero.webp') center/cover;
  color:#fff;
}
.section-events-dark{
  padding:100px 0;
  background:var(--dark2);
  color:#fff;
}
.event-title{
  font-family:'Playfair Display', serif;
  color:var(--gold);
  font-size:1.55rem;
  margin-bottom:18px;
  letter-spacing:0.5px;
  text-transform:uppercase;
}
.event-img{
  width:100%;
  height:220px;
  object-fit:cover;
  border:6px solid var(--gold);
  margin-bottom:18px;
  box-shadow:0 18px 35px rgba(0,0,0,0.35);
}
.event-text{
  font-size:0.98rem;
  opacity:0.92;
  max-width:520px;
  margin:0 auto;
  line-height:1.65;
}

/* EVENTOS DINÁMICOS */
.empty-state{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:rgba(0,0,0,0.06);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:18px;
}
.empty-dot{
  width:12px; height:12px;
  border-radius:50%;
  background:var(--gold);
  margin-top:6px;
  flex:0 0 auto;
}

.event-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 14px 35px rgba(0,0,0,0.10);
  transition:transform .25s ease, box-shadow .25s ease;
  height:100%;
}
.event-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 55px rgba(0,0,0,0.16);
}
.event-card-img{
  position:relative;
  height:220px;
  background:linear-gradient(145deg, rgba(212,175,55,0.22), rgba(0,0,0,0.08));
}
.event-card-img img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.event-card-img.noimg{
  display:flex;
  align-items:center;
  justify-content:center;
}
.event-card-img.noimg::after{
  content:"Evento";
  font-family:'Playfair Display', serif;
  font-size:1.5rem;
  color:#8c6b1f;
}

.event-card-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  background:rgba(0,0,0,0.78);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:0.85rem;
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.12);
}

.event-card-body{
  padding:18px 18px 20px 18px;
}
.event-card-title{
  font-family:'Playfair Display', serif;
  font-size:1.35rem;
  margin:0 0 10px 0;
  color:#111;
}
.event-card-text{
  color:#333;
  opacity:0.92;
  line-height:1.6;
  margin:0 0 14px 0;
}
.event-card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Contact box */
.contact-box{
  background:var(--card);
  padding:35px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,0.30);
}
.contact-box a{
  color:var(--gold);
  text-decoration:none;
}
.contact-box a:hover{
  text-decoration:underline;
}

/* Footer */
.footer{
  background:#000;
  padding:40px 0;
  color:#aaa;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.event-img,
.hero-bg {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {

  .hero-title {
    font-size: 2rem;
  }

  .event-img {
    height: 180px;
  }

  .section-dark,
  .section-light,
  .section-events,
  .section-events-dark {
    padding: 70px 15px;
  }

}
/* FIX GLOBAL: evita que borders/padding sumen ancho */
*, *::before, *::after { box-sizing: border-box; }

/* Evita cualquier desborde horizontal accidental */
html, body { width: 100%; overflow-x: hidden; }

/* Asegura que media nunca se pase del contenedor */
img, video, iframe { max-width: 100%; }

/* El problema típico: imágenes al 100% + borde => overflow.
   Con border-box ya queda ok, pero reforzamos. */
.event-img, .hero-bg { display:block; width:100%; }

/* Si alguna sección usa 100vw (a veces pasa), lo neutralizamos */
.section-events, .section-events-dark, .section-dark, .section-light { overflow-x: clip; }

/* Mapa/ratio: asegura que no se salga por sombras o redondeos */
.ratio { max-width: 100%; }

/* WhatsApp flotante: evita que genere layout width raro en algunos navegadores */
.whatsapp-float { right: 18px; }

/* Opcional: reduce padding en móvil para evitar “micro-overflow” */
@media (max-width: 576px){
  .section-dark, .section-light, .section-events, .section-events-dark { padding-left: 12px; padding-right: 12px; }
}


header .logo img,
.navbar-brand img {
  max-height: 90px;
  width: auto;
}
.hero, header.hero {
  min-height: 60vh; /* o 500px */
  height: auto;
}
