/* ============================
   GLOBAL
============================ */
body {
  font-family: 'Trebuchet MS', sans-serif;
  background-color: #1b1b1b;
  color: #eee;
}

.navbar {
  background-color: #000;
}

.navbar-brand img {
  height: 50px;
}

.navbar-collapse {
  transition: height 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.hero {
  background: url("imagens/fondo borroso.jpg") center/cover no-repeat;
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 3px 3px 10px black;
}

.hero p {
  font-size: 1.3rem;
  font-style: italic;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #f5f5f5;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ddd;
}

/* ============================
   CARDS Y IMÁGENES
============================ */
.card {
  border-radius: 15px;
  background-color: #2b2b2b;
  color: white;
  min-width: 300px; /* para noticias y promos */
  flex: 0 0 auto;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

/* ============================
   FOOTER
============================ */
footer {
  background-color: #000;
  color: white;
  padding: 50px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ff3b3b;
  transform: scale(1.2);
}

footer img {
  height: 80px;
  margin-bottom: 15px;
}

/* ============================
   SECCIÓN HERO Y CAROUSEL
============================ */
.carousel {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  position: relative;
}

.carousel-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.3);
  background-size: 50% 50%;
  border-radius: 50%;
  padding: 8px;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
}

.carousel-item::after {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .carousel-img {
    height: 40vh;
    min-height: 250px;
  }
}

/* ============================
   SECCIÓNES
============================ */
#menu, #noticias, #ubicaciones, #contacto {
  padding: 80px 20px;
  background-color: #2a2a2a;
  border-radius: 15px;
  margin: 40px auto;
}

/* ============================
   BOTONES
============================ */
.btn-danger {
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-danger:hover {
  background-color: #ff4b4b;
}

/* ============================
   LOGO Y BRAND
============================ */
.logo-img {
  height: 70px;
}

.brand-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 5px black;
}

/* ============================
   SECCIÓN NOTICIAS - SCROLL HORIZONTAL
============================ */
.noticias-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.noticias-container::-webkit-scrollbar {
  display: none;
}

.noticia-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.noticia-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

@media (max-width: 576px) {
  .noticia-card {
    width: 250px;
  }

  .noticia-card img {
    max-height: 150px;
  }
}

/* Scroll horizontal estilo promos para noticias */
.noticias-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth; /* movimiento suave al hacer scroll */
}

.noticia-card {
  flex: 0 0 auto; /* que no se encoja y mantenga ancho */
  min-width: 300px; /* ancho fijo similar a tu layout anterior */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Ajuste de imágenes para móviles */
@media (max-width: 576px) {
  .card-img-top {
    height: 150px;
    object-fit: cover;
  }
}

/* ============================
   PROMOS DE LA SEMANA
============================ */
.promos-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.promo-col {
  flex: 0 0 auto;
}

.promo-card {
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2b2b2b;
  color: #fff;
}

.promo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.promo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Jueves: dos tarjetas una encima de la otra */
.promo-col.d-flex.flex-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================
   MODALES
============================ */
.modal-content {
  background-color: #222;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.modal-content img {
  border-radius: 12px;
}

.modal-content h4 {
  color: #f3c325;
}

.modal-content p {
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* HORARIOS */
.horario-card {
  background-color: #2b2b2b;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horario-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.horario-card h5 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.horario-card p {
  font-size: 1.2rem;
}
