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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  padding-top: 80px; /* Espacio para el header fijo */
  background-color: #ffffff; /* Fondo general blanco */
}

/* Ajustes para el header */
header {
  background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco con ligera opacidad */
  backdrop-filter: blur(8px); /* Efecto de desenfoque para navegadores compatibles */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil para destacar el header */
  position: fixed; /* Aseguramos que el header sea fijo */
  top: 0; /* Fijamos en la parte superior */
  left: 0;
  width: 100%; /* Ocupa todo el ancho */
  z-index: 1000; /* Alto z-index para que esté por encima de otros elementos */
  padding: 10px 0; /* Ajustamos el padding */
}

.navbar {
  background-color: transparent !important; /* Aseguramos que la navbar no sobrescriba el fondo del header */
}

.logoPH {
  max-width: 100%;
  width: 60px;
  height: auto;
}

.navbar-nav .nav-link {
  color: #003366; /* Azul oscuro para los enlaces */
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #3b8de6; /* Tono celeste-azul al pasar el ratón */
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons img {
  width: 24px;
  height: auto;
}

.botones {
  background-color: #0056b3; /* Azul oscuro para botones */
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.botones:hover {
  background-color: #003366; /* Azul más oscuro al hover */
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.contact-info img {
  width: 40px;
  height: auto;
  margin-right: 15px;
}

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

.contact-info .contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-item {
  margin: 5%;
  margin-left: 30%;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 80%;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-item .icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-item .text {
  font-size: 16px;
  line-height: 1.4;
  color: #003366; /* Azul oscuro para texto */
}


/* Boton de privacidad */
.privacy-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}


.hero-section {
  margin-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  min-height: 400px; /* Añade una altura mínima para evitar colapsos */
  position: relative;
  z-index: 1;
  background-color: #ffffff; 
  padding: 60px 20px;
  overflow: hidden; /* Evita que la imagen se desborde */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(255, 255, 255);
  z-index: -1;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #003366; /* Azul oscuro corporativo */
  line-height: 1.2;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); /* Sombra sutil */
  font-family: 'Rubik', Helvetica, Arial, sans-serif;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 100%; /* Limita la altura al 100% del contenedor */
  object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
}

.hero-section h6 {
  font-weight: 300;
  line-height: 1.3;
  font-size: 1.2rem;
  color: #555555; /* Gris oscuro profesional */
  margin-bottom: 10px;
  font-family: S Helvetica, Arial, sans-serif;
}


.contact-info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.contact-info-item img {
  margin-right: 10px;
}

.horario {
  display: flex;
  align-items: center;
}

.horario-text {
  line-height: 1.6;
}

.contact-section {
  padding: 40px 5%;
  background: linear-gradient(to right, #ffffff 50%, #0056b3 50%); /* Mantengo el gradiente original */
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #003366;
}

.contact-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #003366; /* Azul oscuro para etiquetas */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
}

.btn-enviar {
  background-color: #0056b3;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-enviar:hover {
  background-color: #003366;
}

footer {
  background-color: #ffffff; /* Fondo blanco para el footer */
  color: #003366; /* Azul oscuro para texto */
  padding: 15px 20px;
}

.footer-col {
  margin-bottom: 20px;
  text-align: center;
}

.footer-logo {
  max-width: 75%;
  width: 100%;
  height: auto;
}

/* Footer contact-info section */
.footer-col.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
}

.footer-col.contact-info .contact-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  width: 100%;
  max-width: 400px; /* Limit width for consistency */
  margin: 0 auto; /* Center the contact list */
}

.footer-col.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 15px; /* Consistent spacing between icon and text */
  margin-bottom: 20px;
  width: 100%; /* Full width for responsiveness */
  justify-content: center; /* Center items on mobile */
}

.footer-col.contact-info .contact-item .icon img {
  width: 40px; /* Consistent icon size */
  height: auto;
  object-fit: contain;
}

.footer-col.contact-info .contact-item .text {
  font-size: 16px;
  line-height: 1.4;
  color: #003366;
}

.iconsFooter {
  display: inline-flex;
  align-items: center;
}

.iconsFooter img {
  width: 40px;
  height: auto;
  margin: 0 10px;
}

.footer-col.footer-menu {
  text-align: center;
}

.footer-col.footer-menu h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #003366;
}

.footer-col.footer-menu ul {
  padding: 0;
  list-style: none;
}

.footer-col.footer-menu ul li {
  margin: 20px 0;
}

.footer-col.footer-menu ul li a {
  text-decoration: none;
  font-size: 1.1rem;
  color: #003366;
  transition: color 0.3s ease;
}

.footer-col.footer-menu ul li a:hover {
  color: #0056b3;
}

.footer-copy {
  text-align: center;
  padding: 20px 0;
}

.reviews-section {
  padding: 60px 20px;
  background-color: #e6f0fa; /* Celeste claro para reseñas */
  text-align: center;
}

.reviews-section h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 40px;
}

.quienes-somos-section {
  background-color: #e6f0fa; /* Blanco para esta sección */
  padding: 60px 5%;
}

.quienes-somos-section h2 {
  color: #003366;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.quienes-texto p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

.clinic-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.por-que-venir-section {
  background-color: #e6f0fa; /* Celeste claro para esta sección */
  padding: 60px 5%;
}

.ventaja-box {
  background-color: #ffffff; /* Blanco para las cajas dentro de esta sección */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.ventaja-box:hover {
  transform: translateY(-6px);
}

.ventaja-box h4 {
  color: #0056b3;
  margin-bottom: 12px;
}

.ventaja-box p {
  color: #444;
}

.titulosDiv {
  color: #003366;
  font-size: 2rem;
}

.equipo-section {
  background-color: #e6f0fa; /* Blanco para esta sección */
  padding: 60px 5%;
}

.equipo-info h2 {
  color: #003366;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.equipo-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.foto-equipo {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: transform 0.3s ease, border 0.3s ease;
  cursor: pointer;
}

.foto-equipo:hover {
  transform: scale(1.05);
  border-color: #007bff;
}

.center {
  display: flex;
  justify-content: center;
}

/* Ajuste para evitar que el header tape el contenido de las secciones */
section[id] {
  scroll-margin-top: 80px; /* Desplazamiento igual a la altura del header */
}

/* Estilos para la sección de servicios */
.nuestros-servicios-section {
  background-color: #ffffff; /* Celeste claro para esta sección */
  padding: 60px 5%;
}

.service-card {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 250px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Blanco y negro por defecto */
  transition: filter 0.3s ease;
}

.service-card:hover .card-front img {
  filter: grayscale(0%); /* Color al pasar el ratón */
}

.card-back {
  transform: rotateY(180deg);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  color: #333;
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)); /* Degradado blanco desde el borde inferior */
  color: #0056b3; /* Color azul especificado */
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.card-footer p {
  margin: 0; /* Eliminar márgenes por defecto del <p> */
  position: relative; /* Asegurar que el <p> respete el posicionamiento del contenedor */
}

/* Estilo para la sección de compromiso */
section[style*="background-color: #e6f0fa"] {
  background-color: #e6f0fa; /* Celeste claro */
}

section[style*="background-color: #f9f9f9"] {
  background-color: #ffffff; /* Blanco para alternar */
}

/* Estilo para las cards de "Por qué elegirnos" */
.card-body {
  background-color: #e6f0fa; /* Celeste claro para el interior de las cards */
}

.card-title {
  color: #003366; /* Azul oscuro para títulos */
}

.card-text {
  color: #333;
}


/* por que elegirnos */
.why-icon {
  max-width: 80px;   /* ajusta el tamaño que quieras (ej: 60px, 80px, 100px) */
  height: auto;      /* mantiene la proporción */
  display: inline-block;
}

.icon-circle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-icon {
  max-width: 100%;
  height: auto;
}


/* reseñas */
#reseñas {
  padding: 40px 5%;   /* espacio a los lados en desktop y mobile */
  max-width: 900px;   /* no se estira infinito */
  margin: 0 auto;     /* centra el bloque */
  text-align: center; /* centra el contenido */
}

#reseñas h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#reseñas h6 {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 25px;
}

#reseñas .botones {
  max-width: 250px; /* botón no demasiado ancho */
  width: 100%;      /* se adapta al móvil */
}






/* Media Queries */
@media (max-width: 991px) {
  .quienes-somos-section .row, 
  .equipo-section .row, 
  .contact-section .row {
    flex-direction: column;
  }
  .quienes-texto, 
  .equipo-info, 
  .contact-info {
    text-align: center;
  }
  .clinic-image, 
  .foto-equipo {
    margin: 0 auto 20px;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }
  section[id] {
    scroll-margin-top: 60px; /* Ajuste para pantallas más pequeñas */
  }
  .navbar-nav {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }
  .logoPH {
    width: 50px;
  }
  .hero-section {
    height: auto; /* Cambia a altura automática para adaptarse al contenido */
    min-height: 300px; /* Altura mínima para pantallas pequeñas */
    padding: 30px 5%;
  }
  .hero-image {
    max-height: 80%; /* Reduce ligeramente la altura máxima de la imagen */
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section h6 {
    font-size: 1rem;
  }
  .botones {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    margin: 10px 0;
  }
   .contact-section {
    background: #ffffff !important; /* Fondo blanco en móviles */
  }
  .contact-form {
    padding: 15px;
  }
  .contact-info-item img {
    width: 40px;
    height: auto;
  }
  .quienes-somos-section, 
  .por-que-venir-section, 
  .equipo-section {
    padding: 30px 5%;
  }
  
  .equipo-section .tablets img {
    display: block; /* Ensure the image is a block element */
    margin: 0 auto; /* Center the image horizontally */
    width: 70%; /* Maintain the existing width */
  }

  .titulosDiv, 
  .equipo-info h2, 
  .contact-info h2 {
    font-size: 1.5rem;
  }
  .quienes-texto p, 
  .equipo-info p, 
  .contact-info p {
    font-size: 0.9rem;
  }
  .card-img-top {
    height: 150px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col.contact-info .contact-list {
    align-items: center;
  }
  .footer-col.contact-info .contact-item {
    margin: 10px 0; /* Remove margin-left and use consistent vertical margin */
    justify-content: center; /* Center on mobile */
  }
  .footer-logo {
    max-width: 150px;
  }
  .iconsFooter img {
    width: 32px;
  }
  .footer-col.footer-menu ul li {
    margin: 10px 0;
  }
  .contact-list {
    align-items: center;
  }
  .contact-item {
    margin: 5%;
    margin-left: 30%;
    padding-left: 0;
    width: 100%;
  }
  .service-card {
    height: 200px;
  }
  .card-inner {
    height: 200px;
  }

  #reseñas {
    padding: 30px 20px; /* menos padding lateral */
  }
  #reseñas h2 {
    font-size: 1.5rem;
  }
  #reseñas h6 {
    font-size: 0.9rem;
  }
  
}

@media (max-width: 576px) {
  .por-que-venir-section .col-md-4 {
    margin-bottom: 20px;
  }
  .ventaja-box {
    padding: 15px;
  }
  .card-img-top {
    height: 120px;
  }
  .service-card {
    height: 180px;
  }
  .card-inner {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .footer-col.contact-info .contact-item {
    justify-content: flex-start;
  }
}


/* Media Query para tabletas (768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Ajustes generales */
  body {
    padding-top: 70px; /* Ajuste intermedio para el header */
  }

  section[id] {
    scroll-margin-top: 70px; /* Ajuste para el desplazamiento en tabletas */
  }

  /* Hero Section */
  .hero-section {
    height: 60vh; /* Mayor altura para tabletas */
    min-height: 350px;
    padding: 40px 5%;
  }

  .hero-section h1 {
    font-size: 2.2rem; /* Tamaño de fuente más legible */
  }

  .hero-section h6 {
    font-size: 1.1rem;
  }

  .hero-image {
    max-height: 90%; /* Ajuste para la imagen en hero */
    max-width: 80%;
    margin: 0 auto;
  }

  .botones {
    padding: 10px 25px;
    font-size: 15px;
    width: auto; /* Evitar que los botones ocupen todo el ancho */
  }

  /* Sección Quiénes Somos */
  .quienes-somos-section {
    padding: 40px 5%;
  }

  .quienes-texto p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .clinic-image {
    max-width: 80%; /* Reducir el tamaño de la imagen */
    margin: 0 auto 20px;
  }

  /* Sección Servicios */
  .nuestros-servicios-section {
    padding: 40px 5%;
  }

  .service-card {
    height: 220px; /* Altura intermedia para tabletas */
    margin-bottom: 20px;
  }

  .card-inner {
    height: 220px;
  }

  .card-front img {
    height: 100%;
    object-fit: cover;
  }

  .card-description {
    font-size: 0.85rem; /* Texto más pequeño para mejor ajuste */
  }

  .card-footer p {
    font-size: 0.95rem;
  }

  /* Sección Equipo */
  .equipo-section {
    padding: 40px 5%;
  }

  .equipo-info p {
    font-size: 1rem;
  }

  .foto-equipo {
    max-width: 150px; /* Tamaño más grande para tabletas */
  }

  /* Sección Por qué elegirnos */
  .why-choose-us-section {
    padding: 40px 5%;
  }

  .why-item {
    padding: 20px;
  }

  .why-title {
    font-size: 1.2rem;
  }

  .why-text {
    font-size: 0.95rem;
  }

  /* Sección Reseñas */
  #reseñas {
    padding: 40px 5%;
  }

  #reseñas h2 {
    font-size: 1.8rem;
  }

  #reseñas h6 {
    font-size: 0.95rem;
  }

  /* Sección Contacto */
  .contact-section {
    padding: 40px 5%;
    background: #ffffff !important; /* Fondo blanco para mejor legibilidad */
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .contact-info-item img {
    width: 35px;
  }

  .horario-text {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-top {
    padding: 20px 5%;
  }

  .footer-col.contact-info .contact-item {
    justify-content: center; /* Centrar elementos en tabletas */
    margin: 10px 0;
  }

  .footer-col.contact-info .contact-item .icon img {
    width: 35px;
  }

  .footer-col.contact-info .contact-item .text {
    font-size: 0.95rem;
  }

  .footer-logo {
    max-width: 200px;
  }

  .iconsFooter img {
    width: 35px;
  }

  .footer-col.footer-menu ul li a {
    font-size: 1rem;
  }
}
/* Media Query específica para iPad Air (820px) y iPad Mini (768px) */
@media (min-width: 768px) and (max-width: 820px) {
  /* Centrar la sección de contacto */
  .contact-section .container {
    max-width: 100%; /* Usar el ancho completo del contenedor */
    padding: 0 15px; /* Añadir padding para evitar que el contenido toque los bordes */
  }

  .equipo-section .tablets img {
    display: block; /* Ensure block element for centering */
    margin: 0 auto; /* Center the image horizontally */
    width: 100%; /* Set width to 100% for iPad view */
    max-width: 100%; /* Ensure it doesn't overflow */
  }
  
  .contact-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrar las columnas horizontalmente */
    align-items: center; /* Centrar verticalmente si es necesario */
    margin: 0 auto; /* Asegurar que la fila esté centrada */
  }

  .tablets {
    width: 100% !important; /* Usar el ancho completo de la columna */
    max-width: 500px; /* Limitar el ancho máximo para un diseño más limpio */
    margin: 0 auto; /* Centrar la columna horizontalmente */
    padding: 10px; /* Añadir padding interno para mejor espaciado */
  }

  /* Asegurar que el formulario y la información de contacto estén centrados */
  .contact-info,
  .contact-form {
    text-align: center; /* Centrar el texto dentro de las columnas */
  }

  .contact-info h2,
  .contact-info p,
  .contact-info-item {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form {
    padding: 15px;
    max-width: 100%; /* Asegurar que el formulario no exceda el contenedor */
  }

  /* Ajustar los elementos de contacto para mejor alineación */
  .contact-info-item {
    justify-content: center; /* Centrar íconos y texto */
  }

  .horario-text {
    text-align: center; /* Centrar el texto del horario */
  }
}


