/* index.css */
main{padding: 0px;margin-top: 10px;}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url('img/instalaciones/via3.jpg') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: white;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.hero .btn {
  display: inline-block;
  background-color: #00334e;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  transition: background 0.3s;
}

.hero .btn:hover {
  background-color: #005075;
}

/* ===== SOBRE NOSOTROS ===== */
.sobre-nosotros {
  padding: 60px 20px;
  text-align: center;
  background-color: white;
}

.sobre-nosotros h2 {
  font-size: 1.9rem;
  margin-bottom: 15px;
}

.sobre-nosotros p {
  max-width: 800px;
  margin: 0 auto 20px;
}

.btn-secundario {
  background-color: #ddd;
  color: #00334e;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn-secundario:hover {
  background-color: #ccc;
}

/* ===== SERVICIOS DESTACADOS ===== */
.servicios-destacados {
  padding: 60px 20px;
  background-color: #eef3f7;
  text-align: center;
}

.servicios-destacados h2 {
  font-size: 1.9rem;
  margin-bottom: 40px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.servicio-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.servicio-card:hover {
  transform: translateY(-5px);
}

.servicio-card h3 {
  margin-bottom: 10px;
}

.servicio-card a {
  color: #0072b1;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.noticias-destacadas{ font-size: 1.9rem;margin-top: 40px;}
/* ===============================
   CARRUSEL DE NOTICIAS
   =============================== */

.carrusel-noticias {
  position: relative;
  width: 80%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Slides */
.carrusel-noticias .slide {
  display: none;
}

.carrusel-noticias .slide.active {
  display: block;
}

/* CONTENIDO */
.slide-content {
  display: flex;
  align-items: stretch; /* 🔑 estira columnas */
  gap: 2rem;
}

/* TEXTO */
.slide-text {
  flex: 1;
}

.slide-text h3 {
  margin-bottom: 1rem;
}

.slide-text p {
  line-height: 1.6;
}

/* IMÁGENES */
.slide-img {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%; /* 🔑 ocupa todo el alto */
}

.slide-img img {
  width: 100%;
  flex: 1; /* 🔑 reparte el alto entre imágenes */
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* TABLET Y MÓVIL */
@media (max-width: 900px) {
  .slide-content {
    flex-direction: column;
  }

  .slide-img {
    height: auto;
    flex-direction: column;
  }

  .slide-img img {
    flex: 1;
    height: 200px;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 600px) {
  .slide-img {
    flex-direction: column;
  }

  .slide-img img {
    height: 180px;
  }
}

/**********************************MODAL cookies *************************************/
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cookie-modal-content {
  background: #fff;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cookie-modal-content h3 {
  margin-bottom: 15px;
}

.cookie-modal-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cookie-modal-content a {
  color: #0066cc;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background-color: #0185C8;
  color: #fff;
}

.cookie-btn.reject {
  background-color: #dc3545;
  color: #fff;
}
