/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 40px;
}

header .nav-links {
  display: flex;
  gap: 15px;
}

header .nav-links a {
  display: flex;
  flex-direction: column;     /* icono arriba, texto abajo */
  align-items: center;        /* centrar horizontal */
  justify-content: center;    /* centrar vertical */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  text-decoration: none;
  color: black;
  font-size: 16px;
  margin: 5px;
  padding: 10px;
  transition: 0.3s;
  border-radius: 4px;
}



.nav-links a i {
  margin-right: 2px; /* Espacio entre el icono y el texto */
}

header .nav-links a:hover {
  background-color: #5dade2;
  color: white;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 30px;
  cursor: pointer;
  display: none;
}

.menu-toggle input {
  display: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: black;
  border-radius: 9px;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-of-type(1) {
  top: 0;
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(3) {
  top: 100%;
  transform: translateY(-100%);
  transform-origin: left center;
}

.menu-toggle input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
}

/* Menú móvil */
.mobile-menu {
   z-index: 999;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-toggle input:checked ~ .mobile-menu {
  visibility: visible;
  opacity: 1;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 20px;
  color: black;
}

/* Submenú debajo de 'Inicio' */
.submenu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 200px;
  z-index: 100;
}

.submenu a {
  text-decoration: none;
  font-size: 16px;
  color: black;
  padding: 10px;
  display: block;
  background-color: white;
  transition: background-color 0.3s ease;
}

/* Estilo de los iconos dentro del submenú */
.submenu a i {
  margin-right: 8px;            /* Espacio entre el icono y el texto */
}

.submenu a:hover {
  background-color: #5dade2;
  color: white;
}

/* Mostrar el submenú cuando se hace clic en "Inicio" */
nav .menu-item:focus + .submenu,
nav .menu-item:hover + .submenu {
  display: block;
}

/* Aseguramos que el contenido principal no tape el footer */
main {
  flex-grow: 1;
  margin-bottom: 80px; /* Ajusta para dar espacio al footer fijo */
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    top: 0;
  }
}


/* Footer */
footer {
  z-index: 998;
  background-color: #333;
  color: white;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-icons {
  display: flex;
  gap: 50px;
}

.footer-icons a {
  color: white;
  font-size: 24px;
}

.footer-icons a:hover {
  color: #f39c12;
}

/* Aseguramos que el contenido principal no tape el footer */
main {
  flex-grow: 1;
  margin-bottom: 80px; /* Ajusta para dar espacio al footer fijo */
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    top: 0;
  }
}



.banner-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: 50px auto;
}
.banner {
  background: url("http://192.168.123.249/boedo/images/Clinica-boedo.jpg")
    no-repeat center center/cover;
  background-size: 1200px 300px; /* Escala directamente a 1200x300 */
  width: 100%;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contenedor de botones */
.button-container {
  display: flex;
  flex-wrap: wrap; /* Permite que los botones se distribuyan en varias filas */
  justify-content: center; /* Centra los botones en la pantalla */
  position: absolute;
  bottom: -50px; /* Posición que sobresale del banner */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

/* Botones */
.button {
  width: 100px;
  height: 100px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
  cursor: pointer;
  margin: 5px; /* Espacio entre los botones */
}

/* Ajuste de los botones en dispositivos móviles */
@media (max-width: 768px) {
  .button-container {
    justify-content: space-between; /* Distribuye los botones con espacio entre ellos */
  }

  .button {
    width: 30%; /* 3 columnas en dispositivos móviles */
    max-width: 100px; /* Limita el tamaño máximo de los botones */
    margin: 5px 0; /* Ajuste del margen */
  }
}
.button,
.button i,
.button span {
  text-decoration: none !important;
}

.button-container a {
  text-decoration: none !important;
}
.button:hover {
  background-color: #007bff;
  transform: translateY(-5px);
}

.button:hover i,
.button:hover span {
  color: white !important;
}
.button i {
  font-size: 24px;
  margin-bottom: 8px;
}

.button span {
  font-size: 14px;
  font-weight: bold;
  
}

@media (max-width: 768px) {
  .button-container {
    bottom: -200px; /* Ajusta la posición en dispositivos móviles */

    width: 90%; /* Asegura que los botones ocupen el ancho completo */
    flex-wrap: wrap; /* Permite que los botones se envuelvan en varias filas */
    justify-content: space-between; /* Espacio entre los botones */
  }

  .button {
    flex-basis: 30%; /* Cada botón ocupa aproximadamente un tercio del ancho */
    margin-bottom: 10px; /* Espacio entre filas */
  }
  .button span {
    font-size: 12px;
    font-weight: bold;
  }
}

/* Tarjetas */
.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 80px;
}

.card {
  width: 100%;
  max-width: 300px;
  margin: 10px;
  padding: 20px;
  background-color: #3498db;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.card-title {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.card-title i {
  margin-right: 20px;
  color: #fff;
}
.card-text {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 15px;
}
.verButtonHorarios {
  --color: #2980b9;
  font-family: inherit;
  display: block;
  width: 8em;
  height: 2.6em;
  line-height: 2.5em;
  margin: 20px auto 0 auto;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--color);
  transition: color 0.5s;
  z-index: 1;
  font-size: 17px;
  border-radius: 6px;
  font-weight: 500;
  color: #fff;
  background-color: transparent;
}

.verButtonHorarios:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  height: 150px;
  width: 200px;
  border-radius: 50%;
}

.verButtonHorarios:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-5px);
}

.verButtonHorarios:before {
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.verButtonHorarios:hover:before {
  top: -30px;
  left: -30px;
}

.verButtonHorarios:active:before {
  background: #1c6ea4;
  transition: background 0s;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column; /* Apilar las tarjetas verticalmente */
    align-items: center; /* Centrar las tarjetas */
    gap: 20px; /* Espacio entre las tarjetas */
    margin-top: 275px; /* Aumenta el margen superior para mover las tarjetas más abajo */
  }

  .card {
    width: 90%; /* Cada tarjeta ocupa un 90% del ancho disponible */
    max-width: 100%; /* El ancho máximo puede ser 100% */
    margin: 10px 0; /* Ajusta el margen entre tarjetas */
  }
}

.novedades-bloque {
  width: 350px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.encabezado {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.icono {
  width: 30px;
  height: 30px;
  background-color: #3498db; /* Azul */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.icono i {
  color: white;
}

.titulo {
  border: 1px solid #3498db;
  padding: 5px;
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  color: #3498db;
}

.novedad {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  transition: background-color 0.3s;
  padding: 10px; /* Mantiene el tamaño total del bloque */
}

.novedad:hover {
  background-color: #b6e0fe; /* Celeste */
}

.novedad img {
  width: 80px; /* Tamaño reducido */
  height: 80px; /* Tamaño reducido */
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid #ddd;
}

.novedad p {
  flex: 1; /* Asegura que el texto ocupe el espacio restante */
  margin: 0;
}

.ver-mas {
  width: 350px;
  margin: 10px auto; /* Espacio pequeño entre el bloque de novedades y el botón */
  text-align: center;
  font-family: Arial, sans-serif;
  border: 1px solid #3498db;
  padding: 10px;
  font-weight: bold;
  color: #3498db;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ver-mas:hover {
  background-color: #3498db;
  color: white;
}

/* Estilos para pantallas grandes (PC) */
@media (min-width: 768px) {
  .novedades-bloque {
    width: 500px;
    padding: 20px;
  }

  .novedad img {
    width: 100px; /* Más grande en PC */
    height: 100px;
  }
  .ver-mas {
    width: 500px;
    padding: 15px;
    font-size: 1.2em; /* Texto más grande */
  }
    /* Estilos para el encabezado */
    .encabezado {
        display: flex;
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Centra el contenido verticalmente */
        width: 100%; /* Asegura que ocupe todo el ancho */
        margin-bottom: 20px; /* Espacio debajo del encabezado */

        padding: 10px 0; /* Espacio interno */
    }

    .encabezado .icono {
       
        margin-right: 10px;
    }

    .encabezado .titulo {
        font-weight: bold;
        flex-grow: 1; /* Asegura que ocupe el máximo espacio disponible */
    }

    /* Estilos para las novedades */
    .novedades-bloque {
        width: 90%; /* Ancho mayor, pero sin tocar los bordes */
         margin-top: 100px; 
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se acomoden en varias filas */
        justify-content: space-between; /* Espacio entre los elementos */
        padding: 20px;
    }

    .novedad {
        width: 32%; /* Tres imágenes en una fila */
        margin-bottom: 20px; /* Espacio debajo de cada novedad */
        text-align: center; /* Centra el texto */
        display: flex;
        flex-direction: column; /* Asegura que la imagen esté arriba y el texto abajo */
        align-items: center;
    }

    .novedad img {
        margin-top: 50px; 
        width: 50%; /* La imagen ocupa el 80% del contenedor, ajusta según sea necesario */
         transform: scale(1.5);
        margin-bottom: 40px; /* Espacio entre la imagen y el texto */
        margin-left: auto;
        margin-right: auto; /* Centra la imagen */
    }

    .novedad p {
        margin: 0; /* Elimina el margen del texto */
        font-size: 1em;
        color: #333; /* Color de texto más oscuro para visibilidad */
    }

    .ver-mas {
        width: 80%; /* El botón "Ver más" ocupa todo el ancho disponible */
        text-align: center;
        font-size: 1.2em; /* Aumenta el tamaño del texto en pantallas grandes */
    }




}

/* Estilo del rectángulo expandido */
.expand {
    position: absolute;
    background-color: #b6e0fe; /* Color azul claro */
    z-index: 20;
    transition: width 0.5s ease, height 0.5s ease, top 0.5s ease, left 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* Evitar interacciones con el rectángulo */
    opacity: 1; /* Visible al inicio */
}


.map-container {
  text-align: center;
  margin: 20px auto;
  max-width: 1200px; /* Define un ancho máximo para la sección */
  padding: 10px;
}

.map-container h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.responsive-map {
  width: 100%;
  height: 400px;
  border: none;
}

/* Consultas de medios para pantallas pequeñas */
@media (max-width: 768px) {
  .responsive-map {
    height: 300px; /* Reduce la altura en tablets y móviles */
  }

  .map-container h2 {
    font-size: 20px; /* Tamaño de texto más pequeño */
  }
}

@media (max-width: 480px) {
  .responsive-map {
    height: 250px; /* Altura aún menor en celulares */
  }

  .map-container h2 {
    font-size: 18px; /* Aún más pequeño para celulares */
  }
}

.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #004ca1;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 100px;
}

.left-section {
  max-width: 50%;
}

h1 {
  margin: 0 0 20px 0;
}

.map {
  flex-grow: 1;
  max-width: 50%;
  margin-left: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .map {
    max-width: 100%;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%; /* Mapa más ancho en dispositivos móviles */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.9); /* Sombra */
  }
}








/* Estilos para los botones */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buttons button {
  width: 150px;
  height: 50px;
  background-color: white;
  color: #568fa6;
  position: relative;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.buttons button:before,
.buttons button:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #44d8a4;
  transition: all 0.3s cubic-bezier(0.35, 0.1, 0.25, 1);
}

.buttons button:before {
  right: 0;
  top: 0;
  transition: all 0.5s cubic-bezier(0.35, 0.1, 0.25, 1);
}

.buttons button:after {
  left: 0;
  bottom: 0;
}

.buttons button:hover:before,
.buttons button:hover:after {
  width: 100%;
}

.buttons button span {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.buttons button p {
  padding: 0;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
  position: absolute;
  width: 100%;
  height: 100%;
}

.buttons button p:before,
.buttons button p:after {
  position: absolute;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
  z-index: 1;
  left: 0;
}

.buttons button p:before {
  content: attr(data-title);
  top: 50%;
  transform: translateY(-50%);
}

.buttons button p:after {
  content: attr(data-text);
  top: 150%;
  color: #44d8a4;
}

.buttons button:hover p:before {
  top: -50%;
  transform: rotate(5deg);
}

.buttons button:hover p:after {
  top: 50%;
  transform: translateY(-50%);
}


/* Evitar cambio de color al hacer clic */
.button:active,
.button:focus {
 /* background-color: inherit; */
  outline: none;
}

/* Evitar cambio de color para enlaces visitados */
.button:visited {
  color: inherit;
}
















 /* Bloque contenedor principal */
 .bloque-contenedor {
  width: 100%;
  background-color: #fff;
  color: #2874a6;
  padding: 20px 10px;
  text-align: center;
  margin-top: 50px;
}

.bloque-contenedor h1 {
  margin-bottom: 20px;
  font-size: 24px;
}

/* Contenedor de botones específico */
.bloque-contenedor .boton-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.bloque-contenedor .boton-boedo {
  width: 200px;
  height: 200px;
  margin: 20px;
  border: none;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e46d95;
}

.bloque-contenedor .boton-boedo:nth-child(1) {
  background-color: #e46d95; /* Rosa */
}

.bloque-contenedor .boton-boedo:nth-child(2) {
  background-color: #ff6e5c; /* Naranja */
}

.bloque-contenedor .boton-boedo:nth-child(3) {
  background-color: #5eafca; /* Azul oscuro */
}

.bloque-contenedor .boton-boedo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.bloque-contenedor .boton-boedo:hover {
  transform: scale(1.2);
}

/* Responsividad */
@media (max-width: 600px) {
  .bloque-contenedor {
    padding: 10px;
  }

  .bloque-contenedor h1 {
    font-size: 20px;
  }

  .bloque-contenedor .boton-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .bloque-contenedor .boton-boedo {
   width: 220px; /* Ajusta el ancho en móvil */
    height: auto;
    margin: 10px 0;
    aspect-ratio: 1; /* Mantiene la proporción cuadrada */
  }
}



.pie {
  margin-top: auto;
  background-color: white;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.5);
  padding: 20px 0;
  text-align: center;
  z-index: 998;
}

.pie-icons a {
  display: inline-block;
  margin: 0 15px;
}

.pie-icons i {
  font-size: 40px; /* Tamaño más grande */
  color: #4d4d4d; /* Gris oscuro inicial */
  transition: transform 0.3s, color 0.3s;
}

.pie-icons i:hover {
  color: #003366; /* Azul más fuerte al pasar el mouse */
  transform: scale(1.2); /* Aumenta el tamaño */
}













/* Estilo del carrusel */
.carousel {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
}

/* Estilos para desktop (pantallas grandes) */
@media (min-width: 1024px) {
  .carousel {
    max-width: 1200px;
    height: 400px;
    margin-top: 80px;
  }

  .carousel-images img {
    height: 400px;
    object-fit: cover;
  }

  .carousel .carousel-control {
    padding: 0px 59px;
    border-radius: 32px;
    width: 3px;
    height: 181px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .carousel .carousel-control.next {
    right: -38px;
  }

  .carousel .carousel-control.prev {
    left: -50px;
  }
}

/* Estilos para móvil */
@media (max-width: 1023px) {
  .carousel {
    max-width: 100%;
    height: 200px;
    margin-top: 60px;
  }

  .carousel-images img {
    height: 200px;
    object-fit: cover;
  }

  .carousel .carousel-control {
    padding: 0px 20px;
    border-radius: 16px;
    width: 2px;
    height: 90px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
  }

  .carousel .carousel-control.next {
    right: -25px;
  }

  .carousel .carousel-control.prev {
    left: -25px;
  }
}






.medicom-sociales {
  background: url(./images/boedo-manuel-castro.jpg) repeat center top;
  background-attachment: fixed;
  height: 545px;
  position: relative;
}

.medicom-app-sociales {
  background-color: transparent; /* Fondo transparente */
  color: white; /* Texto en color blanco */
  padding: 20px; /* Espacio interno para que se vea mejor */
 /* text-align: center; /* Centrar el texto opcionalmente */
}


.contact-info a {
  text-decoration: none;
  color: inherit;
}

.contact-info a:hover {
  color: #007bff;
}

.card-text a {
  text-decoration: none;
  color: inherit;
}

.card-text a:hover {
  color: #007bff;
}



