 /* General */
/* ===================== */
/* RESET & BASE */
/* ===================== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Evitar scroll lateral */
  
}

.page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background-color: #fff;
  padding: 0;
}

/* ===================== */
/* HEADER */
/* ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(253, 248, 248, 0.69);
  backdrop-filter: blur(5px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 38px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Lista de navegacion */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #032743;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.3rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00c4cc;
}

/* Boton hamburguesa */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #032743;
  cursor: pointer;
  user-select: none;
}

/* ===================== */
/* HERO */
/* ===================== */
.hero3 {
  position: relative;
  height: 100vh;
  background: url('images/Banner_prenatal.webp') center/cover no-repeat fixed;
  display: flex;
  justify-content: left;
  overflow: hidden;
  z-index: 1;
}


/* Curva inferior del hero */
.hero3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  z-index: 3;
}

.hero-content3 {
  max-width: 750px;
  margin-left:150px;
  margin-top:10%;
  line-height: 20px;
}

.hero-content3 h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #032743;
  margin-bottom: 15px;
}

.hero-content3 h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #032743;
  margin-bottom: 15px;
}

.hero-content3 p {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #032743;
}


.hero-content3 h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #032743;
  margin-top:40%;
}

/* ✅ VISTA ESCRITORIO (ya la tienes, no se modifica) */


/* 📱 TABLET */
@media (max-width: 1024px) {
  .hero3 {
    height: auto; /* evita overflow en pantallas medianas */
    background-attachment: scroll; /* mejora rendimiento en móviles/tablets */
    padding: 60px 20px;
  }

  .hero-content3 {
    margin-left: 50px;
    margin-top: 15%;
    max-width: 90%;
  }

  .hero-content3 h1 {
    font-size: 2.5rem;
  }

  .hero-content3 h2 {
    font-size: 1.6rem;
  }

  .hero-content2 p {
    font-size: 1.4rem;
  }

  .hero-content3 h3 {
    font-size: 1.4rem;
    margin-top: 20%;
  }
}


/* 📱 MÓVIL */
@media (max-width: 768px) {
  .hero3 {
    height: auto;
    padding: 40px 15px;
    background-position: center;
  }

  .hero-content3 {
    margin: 30px auto;
    text-align: center;
    max-width: 72%;
    
    /* 🔹 Fondo blanco con transparencia */
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
  }

  .hero-content3 h1 {
    font-size: 2rem;
  }

  .hero-content3 h2 {
    font-size: 1.4rem;
  }

  .hero-content3 p {
    font-size: 1.2rem;
  }

  .hero-content3 h3 {
    font-size: 1.2rem;
    margin-top: 15%;
  }

  /* Ajustar curva inferior en móviles */
  .hero3::after {
    height: 60px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
  }
}


/* 📱 EXTRA SMALL (teléfonos muy pequeños) */
@media (max-width: 480px) {
  .hero-content3 {
    max-width: 90%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5); /* un poco más opaco en pantallas chicas */
  }

  .hero-content3 h1 {
    font-size: 1.6rem;
  }

  .hero-content3 h2 {
    font-size: 1.2rem;
  }

  .hero-content3 p {
    font-size: 1rem;
  }

  .hero-content3 h3 {
    font-size: 1rem;
  }
}


/* ===================== */
/* RESPONSIVE */
/* ===================== */




/* Tablet */
@media (max-width: 1024px) {
  nav ul {
    margin-right: 0;
  }
}

/* Movil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: rgba(253, 248, 248, 0.95);
    width: 200px;
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Oculto por defecto */
    animation: slideDown 0.3s ease forwards;
  }

  nav ul.active {
    display: flex; /* Mostrar cuando tenga la clase active */
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.1rem;
  }
}

/* Apple iPhone X y similares */
@media only screen 
and (device-width: 375px) 
and (device-height: 812px) 
and (-webkit-device-pixel-ratio: 3) {
  .hero-content2 h1 {
    font-size: 1.5rem;
  }
  .hero-content2 p {
    font-size: 0.9rem;
  }
}

/* ===================== */
/* ANIMACIONES */
/* ===================== */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECCION_1 */
.pren-fotografia-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.pren-fotografia-section h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 40px;
}

.pren-fotografia-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.pren-fotografia-content img {
  width: 100%;
  max-width: 550px;
  border-radius: 20px;
}

.pren-fotografia-text {
  background: #eaf8fc;
  padding: 40px;
  border-radius: 20px;
  max-width: 550px;
  text-align: center;
  height: 330px;
}

.pren-fotografia-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}

.pren-btn-agendar {
  display: inline-block;
  background: #20d5e8;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.pren-btn-agendar:hover {
  background: #18bcd0;
}

/* 📱 Responsivo para Tablets */
@media (max-width: 991px) {
  .pren-fotografia-content {
    flex-direction: column;
    gap: 30px;
  }

  .pren-fotografia-text {
    max-width: 90%;
    height: auto;
    padding: 30px;
  }

  .pren-fotografia-section h2 {
    font-size: 20px;
  }
}

/* 📱 Responsivo para Móviles */
@media (max-width: 576px) {
  .pren-fotografia-section {
    padding: 30px 15px;
  }

  .pren-fotografia-section h2 {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .pren-fotografia-content img {
    max-width: 100%;
  }

  .pren-fotografia-text {
    padding: 20px;
    border-radius: 15px;
  }

  .pren-fotografia-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .pren-btn-agendar {
    padding: 12px 25px;
    font-size: 14px;
  }
}

  
/* SECCION_2 */
.galeria-pren {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fila {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.fila img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

/* Configuración de columnas */
.fila-1 img,
.fila-3 img,
.fila-5 img,
.fila-6 img {
  max-width: 100%;
}

.fila-2 img,
.fila-4 img {
  flex: 1;
  max-width: calc(33.33% - 20px);
}

.contenedor-imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contenedor-imagen img {
  display: block;
  max-width: 100%;
  height: auto;
}

.leyenda {
  position: static; /* ✅ quita el absolute */
  background: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  max-width: 80%;
  margin-top: 15px; /* espacio debajo de la imagen */
}

/* 📱 Responsivo para tablets */
@media (max-width: 1024px) {
  .leyenda {
    font-size: 14px;
    padding: 12px 20px;
    max-width: 90%;
  }
}

/* 📱 Responsivo para móviles */
@media (max-width: 600px) {
  .leyenda {
    font-size: 13px;
    padding: 10px 15px;
    max-width: 95%;
    margin-top: 10px;
  }
}



/* Hover en imágenes */
.fila img,
.contenedor-imagen img {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.fila img:hover,
.contenedor-imagen img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1) saturate(1.2);
}

/* 🔍 Lightbox estilos */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.lightbox-contenido {
  display: block;
  margin: 5% auto 0;
  max-width: 90%;
  max-height: calc(100% - 100px); /* deja espacio para la X */
  border-radius: 10px;
  position: relative;
  z-index: 10000; /* por debajo del botón cerrar */
}

/* Botón cerrar — siempre encima */
.lightbox .cerrar {
  position: absolute;
  top: 60px;
  right: 325px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  z-index: 10001; /* <- clave: por encima de la imagen */
  user-select: none;
}

/* foco visible */
.lightbox .cerrar:focus {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

.lightbox .cerrar:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* 📱 Responsivo: tablet */
@media (max-width: 1024px) {
  .lightbox { padding: 20px; }
  .lightbox-contenido {
    max-width: 80%;
    max-height: calc(100% - 90px);
    margin-top: 8%;
  }
  .lightbox .cerrar {
    font-size: 26px;
    right: 20px;
    top: 15px;
    width: 44px;
    height: 44px;
  }
}

/* 📱 Responsivo: móvil */
@media (max-width: 600px) {
  .lightbox { padding: 10px; }
  .lightbox-contenido {
    max-width: 80%;
    max-height: calc(100% - 80px);
    margin-top: 15%;
    border-radius: 6px;
  }
  .lightbox .cerrar {
    font-size: 24px;
    right: 16px;
    top: 10px;
    width: 40px;
    height: 40px;
  }
}

/* tus otras reglas responsive quedan igual */


