/* ------------------ */
/* 1. ESTILOS GENERALES */
/* ------------------ */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  margin-bottom: 15px;
}

/* ------------------ */
/* 2. REDES SOCIALES SUPERIORES */
/* ------------------ */
.social-icons {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1000;
}

.social-icons a {
  color: #0d6efd;
  margin-left: 10px;
  font-size: 18px;
}

/* ------------------ */
/* 3. NAVEGACIÓN PRINCIPAL */
/* ------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.sello {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logo .linea1 {
  font-weight: bold;
  font-size: 18px;
}

.logo .linea2 {
  font-size: 14px;
}

/* ------------------ */
/* 4. MENÚ PRINCIPAL */
/* ------------------ */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:hover {
  background-color: #005bb5;
}

/* ------------------ */
/* 5. SUBMENÚS */
/* ------------------ */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0055aa;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  z-index: 1000;
}

.submenu a {
  color: white;
  padding: 10px 20px;
  display: block;
}

.submenu a:hover {
  background-color: #0077dd;
}

.nav-links li:hover .submenu {
  display: block;
}

/* ------------------ */
/* 6. HERO SECTIONS */
/* ------------------ */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px 20px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-section .hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 12px;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero-section p {
  font-size: 1.2rem;
}

/* Hero sections personalizadas */
.hero-section.inicio {
  background-image: url('../img/banners/inicio.jpg');
  min-height: 400px;
}

.hero-section.servicios {
  background-image: url('../img/banners/servicios.jpg');
  min-height: 400px;
}

.hero-section.noticias {
  background-image: url('../img/banners/noticias.jpg');
  min-height: 350px;
}

.hero-section.piscinas {
  background-image: url('../img/banners/piscinas.jpg');
  min-height: 350px;
}

.hero-section.juridico {
  background-image: url('../img/banners/juridico.jpg');
  min-height: 350px;
}

.hero-section.odontologia {
  background-image: url('../img/banners/odontologia.jpg');
  min-height: 350px;
}

.hero-section.medicina-general {
  background-image: url('../img/banners/medicina-general.jpg');
  min-height: 350px;
}

/* Hero Laboratorio */
.hero-section.laboratorio {
  background-image: url('../img/banners/laboratorio.jpg'); /* ajusta si tu ruta cambia */
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
/* Hero Noticias */
.hero-section.noticias {
  background: url('../img/banners/noticias.jpg') center center/cover no-repeat;
  height: 60vh; /* mismo alto que otros heroes */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}

.hero-section .hero-overlay {
  background: rgba(0,0,0,0.4); /* oscurece para mejor contraste */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.hero-section .hero-title {
  font-size: 3rem;
  font-weight: bold;
}


/* ------------------ */
/* 7. BOTONES HERO */
/* ------------------ */
.btn-hero {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff6600;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero:hover {
  background-color: #e65c00;
}

/* ------------------ */
/* 8. DESTACADOS / CUADROS */
/* ------------------ */
.destacados {
  padding: 60px 20px;
  background: #fff;
}

.servicio-box {
  background: #f0f8ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.servicio-card {
  background-color: #e0f7fa;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  background-color: #b2ebf2;
}

/* Cuadro especial Agua Potable */
.cuadro-agua {
  background: linear-gradient(135deg, #00bcd4, #0288d1);
  padding: 25px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cuadro-agua:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  cursor: pointer;
}

.cuadro-agua h4,
.cuadro-agua p {
  margin-bottom: 0;
}
/* Directorio - cuadros flotantes */
.directorio-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directorio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* Ajuste de imágenes circulares */
.directorio-card img {
  border: 3px solid #0d6efd;
}

/* Responsive: ajustar tamaño de los cuadros en móviles */
@media (max-width: 768px) {
  .directorio-card img {
    width: 120px;
    height: 120px;
  }
}
/* ------------------ */
/* PERSONAL ADMINISTRATIVO Y OPERATIVO */
/* ------------------ */
.personal-administrativo .card {
  background: rgba(0, 123, 255, 0.1); /* azul clarito semitransparente */
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.personal-administrativo .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: rgba(0, 123, 255, 0.2);
}

.personal-operativo .card {
  background: rgba(40, 167, 69, 0.1); /* verde clarito semitransparente */
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.personal-operativo .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: rgba(40, 167, 69, 0.2);
}

/* Ajustes de imagen de perfil */
.personal-administrativo .card-img-top,
.personal-operativo .card-img-top {
  border: 4px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Títulos y textos centrados y con color */
.personal-administrativo .card-title,
.personal-operativo .card-title {
  margin-top: 10px;
  font-weight: bold;
}

.personal-administrativo .card-text,
.personal-operativo .card-text {
  font-weight: bold;
  color: #007bff; /* azul para administrativo */
}

.personal-operativo .card-text {
  color: #28a745; /* verde para operativo */
}

/* ------------------ */
/* 9. GALERÍA IMÁGENES */
/* ------------------ */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 15px;
}

.img-hover-zoom img {
  transition: transform 0.4s ease;
  width: 100%;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ------------------ */
/* 10. FOOTER */
/* ------------------ */
footer {
  background: #222;
  color: #ccc;
  padding: 40px 20px;
}

footer h2 span.text-primary {
  color: #0d6efd;
}

/* ------------------ */
/* 11. WHATSAPP FLOTANTE */
/* ------------------ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 24px;
  z-index: 100;
}

/* ------------------ */
/* 12. RESPONSIVE */
/* ------------------ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
}
.galeria-piscinas {
  background-color: #f5f8fa; /* Fondo distinto del resto */
  padding-top: 60px;
  padding-bottom: 60px;
}

.galeria-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.galeria-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.galeria-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

.galeria-card:hover img {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.galeria-card:hover .galeria-overlay {
  opacity: 1;
}
.card img {
  max-height: 200px;
  object-fit: cover;
}

.card-body button {
  margin-bottom: 5px;
}

.list-group-item {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  border-radius: 5px;
}
/* Botón WhatsApp pequeño dentro de cada publicidad */
.btn-wsp-anuncio {
  display: inline-block;
  background: #25d366;
  color: white;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-wsp-anuncio i {
  margin-right: 6px;
}

.btn-wsp-anuncio:hover {
  background: #1ebe5c;
  transform: scale(1.05);
}

.event-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}
.social-icons a {
  transition: transform 0.2s;
}
.social-icons a:hover {
  transform: scale(1.05);
}
