* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #EDF1F4;
  color: #333;
  padding-top: 80px;
}

/* NAV */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(1, 122, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 45px;
}


.logo {
  height: 45px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #3BAAA6;
}

/* HERO */

.hero {
  height: 100vh;
  background: url('img/fachada.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(1, 122, 255, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: white;
}


/* SLIDER */

.slider {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: white;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* SECCIONES */

.section {
  padding: 80px 10%;
  text-align: center;
}

.section.alt {
  background: white;
}

.section h2 {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  margin-bottom: 30px;
  color: #017AFF;
}

.section p {
  max-width: 750px;
  margin: 20px auto;
  line-height: 1.8;
  font-size: 17px;
  text-align: center;
}


/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #EDF1F4;
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
  font-weight: 500;
}

.card:hover {
  background: #3BAAA6;
  color: white;
  transform: translateY(-5px);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* BOTON */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #017AFF;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #3BAAA6;
}

/* MAPA */

iframe {
  width: 100%;
  height: 350px;
  border: none;
  margin-top: 30px;
  border-radius: 12px;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp img {
  width: 26px;
  height: 26px;
}

.whatsapp:hover {
  transform: scale(1.08);
}

/* FOOTER */

.footer {
  background: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.footer img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

/* OBRAS SOCIALES */

.obras-sociales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.obras-sociales img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: 0.3s;
}

.obras-sociales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 30px;
}

.obras-sociales img {
  height: 50px;
  width: 120px;
  object-fit: contain;
}



/* Línea separadora */

.footer-line {
  width: 60%;
  height: 1px;
  background: #e5e5e5;
  margin: 0 auto 30px auto;
}

/* Logo inferior */

.footer-logo {
  filter: invert(27%) sepia(88%) saturate(1200%) hue-rotate(180deg);
}

/* ===== POPUP SIMPLE ===== */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-contenido {
  background: white;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

#cerrarPopup {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #0c3c60;
}

.popup h2 {
  font-family: 'Anton', sans-serif;
  color: #0c3c60;
}

.btn-popup {
  display: block;
  margin: 12px auto;
  padding: 12px;
  text-decoration: none;
  color: white;
  border-radius: 6px;
  width: 80%;
}

.azul {
  background: #0c3c60;
}

.verde {
  background: #25D366;
}

.logo-popup {
  width: 150px;
  margin: 25px auto 0 auto;
  display: block;
}

.logo-popup {
  width: 150px;
  margin-top: 20px;
  opacity: 1 !important;
  display: block;
  filter: none !important;
}


.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.pro-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.pro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.pro-img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  background: #eee;
}

/* fallback */
.pro-img.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: #f3f3f3;
}

.pro-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pro-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}



.pro-img.fallback i {
  width: 40px;
  height: 40px;
  color: #999;
}


@media (max-width: 768px) {

  nav {
    padding: 10px 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 28px;
    padding: 0 10px;
  }

  .section {
    padding: 40px 20px;
  }

  .pro-grid {
    grid-template-columns: 1fr;
  }

  .pro-img {
    width: 80px;
    height: 80px;
  }

  .obras-sociales {
    flex-wrap: wrap;
    gap: 20px;
  }

  .popup-contenido {
    width: 90%;
    padding: 25px;
  }

  .btn-popup {
    width: 100%;
  }

}

/* ===== MENU HAMBURGUESA MOBILE ===== */

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* SOLO MOBILE */
@media (max-width: 768px) {

  /* mostrar botón */
  .menu-toggle {
    display: block;
  }

  /* ocultar menú normal */
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(1, 122, 255, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
  }

  /* cuando está activo */
  nav ul.active {
    display: flex;
  }

}