* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  background: #f9f9f9;
}

/* Fade-in general */
section, footer {
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #10798b;
  color: white;
  padding: 30px 20px;
  position: relative;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff; /* o el color que estés usando */
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
}

/* opcional: efecto al pasar el mouse */
.logo:hover {
  color: #ffffff; /* por ejemplo, un color al pasar el cursor */
}


nav {
  display: flex;
  align-items: center;
  
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #FFD700;
}
nav .social a {
  color: white;
  margin-left: 10px;
  font-size: 1.2em;
  transition: transform 0.3s;
}
nav .social a:hover {
  transform: scale(1.2);
}
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* Secciones con imágenes de fondo y separación */
section {
  padding: 100px 40px;
  text-align: center;
  color: white;
}





#menu-principal {
  padding: 60px 20px;
  text-align: center;
 
  color: white;
  margin-left: 50px;
  margin-right: 50px;
  
}


.menu-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.link-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.link-item:hover {
  transform: translateY(-8px);
}

.icon-circle {
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 5px solid #10798b;
}

.icon-circle img {
  max-width: 150%;
  max-height: 150%;
}

.link-item span {
  color: #292827;
  font-weight: bold;
  font-size: 1em;
}



#consultorios {
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
#contacto {
  background-color: #ece8e8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h2 {
  margin-bottom: 20px;
  color: #007B8A;
  font-size: 2em;
}

/* Tarjetas */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 30px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
}



/* Formulario */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
form input, form textarea {
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 5px;
}
form button {
  background: #007B8A;
  color: #f5f0f0;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #00606d;
}

/* Footer */
footer {
  background: #007B8A;
  color: white;
  padding: 40px 20px;
  font-size: 0.95em;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  align-items: flex-start;
}

.footer-left {
  width: auto;
}

.footer-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  gap: 10px 20px;
}

.footer-addresses li {
  line-height: 1.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
}

.footer-right h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  color: white;
  font-size: 1.4em;
  transition: transform 0.3s;
}

.footer-social a:hover {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  #menu-principal .menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
  }
}

.footer-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 30px 0 10px; /* más espacio abajo */
  width: 100%;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color: #ddd;
  margin-top: 10px; /* forzamos separación vertical */
}

.footer-left h4 {
  margin-bottom: 15px; /* ajustá el valor según necesites */
} 

/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;        /* elimina fondo */
  padding: 0;              /* elimina espacio interno */
  border: none;            /* elimina bordes */
  box-shadow: none;        /* elimina sombra */
  z-index: 1000;
  transition: transform 0.3s;
}
.whatsapp img {

 width: 70px; /* o el tamaño que prefieras */
  height: auto;
  background: none;
  padding: 0;
  border: none;
  display: block;
}


.whatsapp:hover {
  transform: scale(1.2);
}



  

  
  @media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    width: 250px;
    background: #007B8A;
    flex-direction: column;
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li a {
    padding: 15px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .menu-toggle {
    display: block;
  }
}

/* animación para abrir el modal */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  width: 100%;
  height: 85%;
  background-color: #007B8A;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
}

.modal-content.animate {
  animation: slideInFromLeft 0.5s ease forwards;
}

/* Animación  modal*/
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.modal-content.closing {
  animation: slideOutToLeft 0.5s ease forwards;
}
.close {
  position: absolute;
  top: 2px;
  right: 15px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close:hover {
  transform: scale(1.2);
  color: #cec9c4;
}

.modal-header {
  background-color: #f1f4f7; /* color de la barra superior */
  color: #007B8A;
  padding: 30px;
  display: flex;
  justify-content: flex-end;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.modal-header .close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.servicio-opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 18px;
  margin-bottom: 20px;
}

.servicio-opcion i {
  color: #a8e5f0;
  font-size: 40px;
}

.servicio-opcion a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s;
  font-size: 20px;
  margin-left: 10px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.servicio-opcion a:hover {
  color: #64f5f5;
  transform: scale(1.1);
}


#galeria {
  position: relative;
  width: 100%;
  height: 130vh; /* ajusta altura si querés */
  overflow: hidden;
}

@media (max-width: 768px) {
  #galeria {
    /* Opción 1 */
    height: 70vh;
     }
  .carousel img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
  }   
}
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex: 0 0 100%;
  display: block;
  
}

/* Botones sobre la imagen */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2em;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.6);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Estilos para la sección de páginas */
#pages {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background-color: #007B8A;   /* mismo color que el modal */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;              /* blanco, como el texto de los modales */
}


#pages h1 {
  font-size: 2.2rem;
  color: #ffffff;   /* blanco para títulos */
  margin-bottom: 20px;
  border-bottom: 2px solid #a8e5f0;
  padding-bottom: 10px;
}

#pages p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  color: #ffffff;
}

.btn-volver {
  display: block;
  margin-top: 30px;
  margin-left: auto;
  padding: 5px 5px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #0056b3;
}

.lista-coberturas {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
}

.lista-coberturas ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.lista-coberturas li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.lista-coberturas li:hover {
  color: #007BFF;
}

.turnos-texto {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f0f0f0;
  padding: 20px;
  background-color: #008a9e;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.turnos-texto p {
  margin-bottom: 12px;
}

.whatsapp-link {
  color: #25D366; /* verde WhatsApp */
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.vacunacion-texto {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f0f0f0;
  padding: 20px;
  background-color: #008a9e;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.vacunacion-texto p {
  margin-bottom: 12px;
}

.credencial-texto, .turnos-texto, .vacunacion-texto {
  color: #fff;
  font-size: 1.1em;
  line-height: 1.6;
  padding: 20px;
}

.credencial-texto ul, .turnos-texto ul, .vacunacion-texto ul {
  margin: 10px 0 10px 20px;
}

.credencial-texto li, .turnos-texto li, .vacunacion-texto li {
  margin-bottom: 8px;
}

#contacto-form {
  margin-top: -100px; /* o el valor que prefieras, incluso 0 */
}