/* =====================================================
   RESET BÁSICO
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background-color: #f8f9fa;
  color: #e5e7eb;
}

/* =====================================================
   HEADER GENERAL
===================================================== */

.header {
  width: 100%;
  background: linear-gradient(135deg, #b30000, #790000);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
  background: rgba(0, 0, 0, 0.18);
  padding: 8px 28px;
  text-align: right;
}

.admin-link {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.admin-link:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
}

/* =====================================================
   HEADER PRINCIPAL
===================================================== */

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 42px;
}

.logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 10px;
}

.logo-right {
  width: 115px;
  height: 95px;
}

.header-title {
  flex: 1;
  text-align: center;
  padding: 0 18px;
}

.header-title h1 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

/* =====================================================
   NAV
===================================================== */

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 22px;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: #ffffff;
  color: #9e0000;
  transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .top-bar {
    text-align: center;
  }

  .header-top {
    flex-direction: column;
    padding: 24px 18px;
  }

  .logo {
    width: 105px;
    height: 105px;
  }

  .logo-right {
    width: 95px;
    height: 75px;
  }

  .header-title h1 {
    font-size: 1.65rem;
  }

  .nav {
    padding: 0 14px 20px;
  }

  .nav a {
    width: 100%;
    text-align: center;
  }
}

/* =====================================================
   NAV PRINCIPAL
===================================================== */
.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px;
  background-color: #9e0000;

}

.nav a {
  flex: 1;                 
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0px;
  transition: border-bottom 0.2s ease;
}

.nav a:hover {
  border-bottom: 2px solid #ffffff;
}

/* =====================================================
   CONTENIDO PRINCIPAL (DINÁMICO)
===================================================== */
.contenido {
  min-height: 60vh;
  background-color: #ffffff;
  color: #020617;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background-color: #b30000;
  color: #e5e7eb;
  border-top: 1px solid #b30000;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}


/* =====================================================
   CARRUSEL
===================================================== */

.carousel-container {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

#carouselExampleAutoplaying {
  width: 92%;
  max-width: 1400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* IMAGENES */
.carousel-item img {
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 780px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88);
  transition: transform 0.5s ease;
}

/* EFECTO SUAVE */
.carousel-item.active img {
  transform: scale(1.02);
}

/* BOTONES */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 70%;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  padding: 18px;
}

/* MOBILE */
@media (max-width: 768px) {

  #carouselExampleAutoplaying {
    width: 96%;
    border-radius: 18px;
  }

  .carousel-item img {
    height: 45vh;
    min-height: 280px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 42px;
    height: 42px;
  }

}
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .logo,
  .logo-right {
    height: 60px;
  }

  .header-title h1 {
    font-size: 1.4rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
    overflow-x: auto;
  }

  .contenido {
    padding: 30px 20px;

  }

}