/* ===== css/estilos.css ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  background: #0a0a0a; /* negro profundo */
  color: #d4c5a0; /* dorado pálido/gótico */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----- HEADER ----- */
.header {
  background: #0a0a0a;
  padding: 0.5rem 0;
  border-bottom: 3px solid #8b0000; /* rojo oscuro */
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex: 0 0 auto;
  width: 25%;
  max-width: 200px;
}

.logo-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid #8b0000;
  filter: brightness(0.8) sepia(0.2);
}

.nav-desktop {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  font-weight: 700;
}

.menu a {
  text-decoration: none;
  color: #d4c5a0;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b0000;
  transition: width 0.3s;
}

.menu a:hover {
  color: #8b0000;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.menu a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icons a {
  color: #d4c5a0;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.social-icons a:hover {
  color: #8b0000;
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

.nav-mobile {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
}

.menu-mobile {
  list-style: none;
  display: flex;
  justify-content: space-around;
  background: #1a1a1a;
  padding: 0.6rem 0;
  border-radius: 30px;
  border: 1px solid #8b0000;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
}

.menu-mobile a {
  text-decoration: none;
  color: #d4c5a0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.menu-mobile a:hover {
  color: #8b0000;
}

/* ----- SLIDER (16:6 desktop, 3:2 móvil) ----- */
.slider-section {
  margin: 2rem 0;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 12px;
  background: #0a0a0a;
  border: 2px solid #8b0000;
  box-shadow: 0 0 40px rgba(139, 0, 0, 0.2);
}

.slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.7) contrast(1.2);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  color: #d4c5a0;
  border: 2px solid #8b0000;
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.slider-btn:hover {
  background: #8b0000;
  color: #d4c5a0;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

/* ----- EVENTOS (1/4 + 3/4) ----- */
.eventos-section {
  margin: 2.5rem 0;
}

.eventos-grid {
  display: flex;
  gap: 1.5rem;
  background: #0a0a0a;
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.calendario {
  flex: 0 0 25%;
  background: #0a0a0a;
  padding: 1rem;
  border-radius: 12px;
  color: #d4c5a0;
  border: 1px solid #2a2a2a;
}

.calendario h3 {
  text-align: center;
  margin-bottom: 0.8rem;
  color: #8b0000;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.calendario-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.calendario-dias {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.dia {
  background: #1a1a1a;
  padding: 4px 0;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: default;
}

.dia:hover {
  background: #8b0000;
  transform: scale(1.1);
}

.dia.actual {
  background: #8b0000;
  color: #d4c5a0;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

.dia.otro-mes {
  color: #333;
}

.dia-nombre {
  font-size: 0.6rem;
  padding: 2px 0;
  color: #8b0000;
  font-weight: 700;
}

.lista-eventos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.evento-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  background: #1a1a1a;
  border-radius: 8px;
  align-items: center;
  border-left: 4px solid #8b0000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.evento-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.2);
}

.evento-item .fecha {
  font-weight: 700;
  width: 70px;
  color: #d4c5a0;
  font-size: 0.9rem;
}

.evento-item .nombre {
  flex: 1;
}

.evento-item .nombre a {
  text-decoration: none;
  color: #d4c5a0;
  font-weight: 600;
  transition: color 0.3s;
}

.evento-item .nombre a:hover {
  color: #8b0000;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.evento-item .lugar {
  color: #666;
  font-size: 0.85rem;
}

.btn-ver-mas {
  align-self: flex-end;
  background: #8b0000;
  color: #d4c5a0;
  padding: 0.6rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.3rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: 1px solid #8b0000;
}

.btn-ver-mas:hover {
  background: #0a0a0a;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
}

/* ----- CARRUSEL ----- */
.carrusel-section {
  margin: 3rem 0;
}

.carrusel-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #d4c5a0;
  border-bottom: 3px solid #8b0000;
  padding-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(139, 0, 0, 0.2);
}

.carrusel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
  padding: 0.5rem 0;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.carrusel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  padding: 0.5rem 0.5rem;
}

.carrusel-item {
  flex: 0 0 calc(100% / 6 - 1rem);
  min-width: 0;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 0.8rem;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s, box-shadow 0.3s;
}

.carrusel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.3);
  border-color: #8b0000;
}

.carrusel-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #8b0000;
  filter: brightness(0.7) contrast(1.2);
}

.carrusel-item .titulo {
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.carrusel-item .titulo a {
  text-decoration: none;
  color: #d4c5a0;
  transition: color 0.3s;
}

.carrusel-item .titulo a:hover {
  color: #8b0000;
}

.carrusel-item .subtitulo {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.carrusel-item .subtitulo a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.carrusel-item .subtitulo a:hover {
  color: #8b0000;
}

/* Flechas */
.carrusel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.9);
  color: #d4c5a0;
  border: 2px solid #8b0000;
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 10;
}

.carrusel-arrow:hover {
  background: #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.4);
}

.carrusel-wrapper:hover .carrusel-arrow {
  opacity: 1;
}

.carrusel-arrow.left { left: 12px; }
.carrusel-arrow.right { right: 12px; }

/* ----- FOOTER ----- */
.footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  border-top: 3px solid #8b0000;
  text-align: center;
  color: #d4c5a0;
  font-size: 0.9rem;
  background: #0a0a0a;
  letter-spacing: 2px;
}

.footer p {
  font-weight: 400;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .logo {
    width: 50%;
    max-width: 180px;
  }

  .social-icons {
    width: 25%;
    justify-content: flex-end;
  }

  .social-icons a {
    font-size: 1.2rem;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
    width: 100%;
  }

  .menu-mobile {
    justify-content: space-around;
    gap: 0.5rem;
  }

  .menu-mobile a {
    font-size: 0.8rem;
  }

  .slider-container {
    aspect-ratio: 3 / 2;
  }
  
  .slide {
    object-fit: cover;
    object-position: center center;
  }

  .slider-btn {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }

  .eventos-grid {
    flex-direction: column;
  }
  
  .calendario {
    flex: 1 1 auto;
    width: 100%;
  }
  
  .lista-eventos {
    width: 100%;
  }

  .evento-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .evento-item .fecha {
    width: auto;
  }

  .carrusel-item {
    flex: 0 0 calc(100% - 0.5rem);
  }

  .carrusel-item .titulo {
    font-size: 0.9rem;
  }
  
  .carrusel-item .subtitulo {
    font-size: 0.8rem;
  }

  .carrusel-arrow {
    opacity: 0.7;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
  }
  
  .carrusel-wrapper:hover .carrusel-arrow {
    opacity: 0.7;
  }

  .calendario-dias {
    gap: 1px;
  }
  
  .dia {
    font-size: 0.7rem;
    padding: 2px 0;
  }

  .btn-ver-mas {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .carrusel-section h2 {
    font-size: 1.5rem;
  }
}