/* =========================
   ESTILOS NOTICIAS
   ========================= */

/* Contenedor general */
.main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Títulos de secciones */
.titulo-caja {
  text-align: center;
  margin-bottom: 2rem;
}
.titulo-caja h2 {
  font-size: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #1e88e5;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* GRID de noticias */
.grid {
  display: grid;
  gap: 2rem;
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Tarjetas de noticias */
.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.4rem;
  color: #1e88e5;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Imagen adicional Feria */
.img-feria {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 5rem auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Logo SAE */
.logo-sae {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 5rem auto 0 auto;
  border-radius: 50%;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Botón dentro de tarjetas */
.btn-link {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.6rem 1.2rem;
  background: #1e88e5;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-link:hover {
  background: #1565c0;
}

/* =========================
   CARRUSEL DE FOTOS
   ========================= */
.noticias-fotos {
  margin-top: 3rem;
}
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-track img {
  min-width: 30%; /* ahora ocupa 80% del carrusel */
  max-width: 30%; /* limita el tamaño máximo */
  object-fit: cover;
  margin: 0 auto; /* centra la imagen dentro del carrusel */
  border-radius: 90px; /* opcional: bordes redondeados */
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,136,229,0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: rgba(21,101,192,0.9);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
/* ===================== FONDO COMPLETO ===================== */
body {
  background-color: #f0f8ff; /* igual que admision */
}
