:root {
  --color-principal: #1265a6;
  --color-oscuro: #1b1d39;
  --color-intermedio: #1c355e;
  --color-gris: #706f6f;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
}

.seccion-noticias {
  padding: 100px 15px 40px;
  max-width: 1200px;
  margin: auto;
}

.seccion-noticias h1 {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--color-principal);
  margin-bottom: 30px;
}

.noticias-destacadas {
  margin-bottom: 40px;
}

.carrusel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: clamp(250px, 50vw, 400px);
}

.carrusel-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carrusel-slide.active { opacity: 1; }

.carrusel-slide img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px;
}

.carrusel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  border-radius: 0 0 12px 12px;
}

.carrusel-info h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.carrusel-info a {
  display: inline-block;
  background-color: var(--color-principal);
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.carrusel-info a:hover {
  background-color: var(--color-intermedio);
}

.contenedor-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.noticia {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.noticia:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.noticia img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contenido-noticia {
  padding: 15px;
}

.contenido-noticia h2 {
  font-size: 1.1rem;
  color: var(--color-oscuro);
  margin-bottom: 10px;
}

.contenido-noticia p {
  font-size: 0.95rem;
  color: var(--color-gris);
  min-height: 60px;
}

.leer-mas {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background-color: var(--color-principal);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .3s;
}

.leer-mas:hover {
  background-color: var(--color-intermedio);
}

.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.logo-footer img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}


.footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-principal);
  font-weight: bold;
}

.footer .direccion,
.footer .contacto,
.footer .redes {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .redes a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .redes a:hover {
  color: var(--color-principal);
}

/* CONTENEDOR FLOTANTE */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  gap: 10px;
}

/* TEXTO A LA IZQUIERDA DEL BOTÓN */
.whatsapp-label {
  background-color: white;
  color: #25D366;
  padding: 10px 15px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* sombra más visible */
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-container:hover .whatsapp-label {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* BOTÓN REDONDO DE WHATSAPP */
.whatsapp-float {
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}
