/* ====== ESTILOS GENERALES ====== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #444;
  max-width: 1920px;
  margin: 0 auto; /* centra el contenido */
  overflow-x: hidden; /* evita scroll horizontal si algo se sale */
}

/* ====== HEADER ====== */
.header {
  width: 100%;
  background-color: #FDF1F1; /* color base superior */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  position: fixed;        /* ðŸ”¹ Fijar en pantalla */
  top: 0;                 /* ðŸ”¹ Siempre arriba */
  left: 0;
  z-index: 1000;          /* ðŸ”¹ Encima de todo */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ðŸ”¹ Sombra sutil */
}

/* Evita que el contenido quede oculto debajo del header */
body {
  padding-top: 80px; /* Ajusta segÃºn la altura real del header */
}

.logo img {
  height: 60px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #774A52;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

/* ====== MENÃš HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #774A52;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 6%;
    background-color: #FDF1F1;
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    text-align: center;
    padding: 15px 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mostrar menÃº activo */
  .nav.active {
    max-height: 400px;
  }

  /* AnimaciÃ³n del icono */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}



/* ===== SECCI¨®N HERO EI ===== */
.hero_ei {
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: url('images/Banner.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Capa de superposici¨®n para mejorar contraste */
.overlay_ei {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Contenido centrado */
.contenido_ei {
  position: relative;
  z-index: 2;
  background: #FDF1F1;
  padding: 0px 50px;
  border-radius: 100px;
  max-width: 1200px;
  backdrop-filter: blur(6px);
  margin-top: 15%;
}

.contenido_ei h1 {
  font-size: 3rem;
  color: #E28693;
  font-weight: 700;
  margin-bottom: -45px;
}

.contenido_ei p {
  font-size: 2.8rem;
  color: #E28693;
  font-weight: 500;
}

/* ========================= */
/*     RESPONSIVE DESIGN     */
/* ========================= */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  .hero_ei {
    height: 70vh;
  }

  .contenido_ei {
    padding: 20px 40px;
    border-radius: 60px;
    margin-top: 20%;
    max-width: 90%;
  }

  .contenido_ei h1 {
    font-size: 2.5rem;
    margin-bottom: -30px;
  }

  .contenido_ei p {
    font-size: 2.2rem;
  }
}

/* M¨®viles (pantallas peque?as) */
@media (max-width: 768px) {
  .hero_ei {
    height: 60vh;
  }

  .contenido_ei {
    padding: 15px 25px;
    border-radius: 40px;
    margin-top: 25%;
    max-width: 95%;
  }

  .contenido_ei h1 {
    font-size: 1.8rem;
    margin-bottom: -20px;
  }

  .contenido_ei p {
    font-size: 1.5rem;
  }
}

/* M¨®viles muy peque?os */
@media (max-width: 480px) {
  .hero_ei {
    height: 55vh;
  }

  .contenido_ei {
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 30%;
  }

  .contenido_ei h1 {
    font-size: 1.6rem;
    margin-bottom: -10px;
  }

  .contenido_ei p {
    font-size: 1.2rem;
  }
}


/* SECCION_2 */


/* === Secci¨®n Diagn¨®stico Prenatal === */

.seccion-diagnostico {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
  box-sizing: border-box;
  color: #4a3c3c;
}

/* --- T¨ªtulo principal --- */
.diagnostico-titulo {
  text-align: center;
  margin-bottom: 50px;
}

.diagnostico-titulo h2 {
  font-size: 1.7rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Contenedor general (imagen + texto) --- */
.diagnostico-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fdf3f3;
}

/* --- Imagen (lado izquierdo en desktop) --- */
.diagnostico-imagen {
  width: 100%;
}

.diagnostico-imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Texto (lado derecho) --- */
.diagnostico-texto {
  padding: 40px;
  text-align: left;
}

.diagnostico-texto h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #4a2f2f;
}

.diagnostico-texto p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #5e4a4a;
  margin: 0;
}

/* --- Layout en pantallas grandes --- */
@media (min-width: 900px) {
  .diagnostico-contenedor {
    flex-direction: row;
  }

  .diagnostico-imagen,
  .diagnostico-texto {
    flex: 1;
  }

  .diagnostico-imagen img {
    height: 100%;
  }
}

/* ========================= */
/*     RESPONSIVE DESIGN     */
/* ========================= */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  .seccion-diagnostico {
    padding: 50px 30px;
  }

  .diagnostico-titulo h2 {
    font-size: 1.6rem;
  }

  .diagnostico-contenedor {
    max-width: 90%;
    border-radius: 20px;
  }

  .diagnostico-texto {
    padding: 30px;
  }

  .diagnostico-texto h3 {
    font-size: 1.4rem;
  }

  .diagnostico-texto p {
    font-size: 1.3rem;
  }
}

/* M¨®viles (pantallas peque?as) */
@media (max-width: 768px) {
  .seccion-diagnostico {
    padding: 40px 15px;
  }

  .diagnostico-titulo h2 {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .diagnostico-contenedor {
    flex-direction: column;
    max-width: 95%;
    border-radius: 15px;
  }

  .diagnostico-texto {
    padding: 20px;
    text-align: center;
  }

  .diagnostico-texto h3 {
    font-size: 1.3rem;
  }

  .diagnostico-texto p {
    font-size: 1.1rem;
    line-height: 1.5;
  }
}

/* M¨®viles muy peque?os */
@media (max-width: 480px) {
  .seccion-diagnostico {
    padding: 30px 10px;
  }

  .diagnostico-titulo h2 {
    font-size: 1.2rem;
  }

  .diagnostico-texto {
    padding: 15px;
  }

  .diagnostico-texto h3 {
    font-size: 1.1rem;
  }

  .diagnostico-texto p {
    font-size: 1rem;
  }
}

/* SECCION_3 */
/* === Secci¨®n Estudios Invasivos === */

.seccion-invasivos {
  width: 100%;
  background-color: #fdf3f3;
  padding: 0;
  margin: 0;
  color: #4a3c3c;
}

/* Contenedor general (texto + imagen) */
.invasivos-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Columna de texto --- */
.invasivos-texto {
  flex: 1;
  padding: 60px 95px;
  text-align: left;
  max-width: 900px;
}

.invasivos-texto h2 {
  font-size: 3rem;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 20px;
  color: #4a2f2f;
}

.invasivos-texto h2 span {
  font-weight: 700;
}

.invasivos-texto p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #5e4a4a;
  margin: 0;
}

/* --- Columna de imagen --- */
.invasivos-imagen {
  flex: 1;
  width: 100%;
}

.invasivos-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Versi¨®n escritorio --- */
@media (min-width: 900px) {
  .invasivos-contenedor {
    flex-direction: row;
  }
}

/* ========================= */
/*     RESPONSIVE DESIGN     */
/* ========================= */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  .invasivos-texto {
    padding: 50px 60px;
  }

  .invasivos-texto h2 {
    font-size: 2.4rem;
    line-height: 1.4;
  }

  .invasivos-texto p {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .invasivos-imagen img {
    object-position: center;
  }
}

/* M¨®viles (pantallas peque?as) */
@media (max-width: 768px) {
  .invasivos-contenedor {
    flex-direction: column;
  }

  .invasivos-texto {
    padding: 35px 25px;
    text-align: center;
  }

  .invasivos-texto h2 {
    font-size: 2rem;
    line-height: 1.4;
  }

  .invasivos-texto p {
    font-size: 1.1rem;
  }

  .invasivos-imagen {
    order: -1; /* Mueve la imagen arriba del texto en m¨®vil */
  }

  .invasivos-imagen img {
    height: auto;
    border-radius: 0;
  }
}

/* M¨®viles muy peque?os */
@media (max-width: 480px) {
  .invasivos-texto {
    padding: 25px 15px;
  }

  .invasivos-texto h2 {
    font-size: 1.6rem;
  }

  .invasivos-texto p {
    font-size: 1rem;
    line-height: 1.5;
  }
}



/* SECCION_4 */

/* === SECCI¨®N ESTUDIOS === */

.seccion-estudios {
  color: #4a3c3c;
  padding: 40px 20px;
  background-color: #ffffff;
  text-align: center;
}

/* --- Pesta?as superiores --- */
.estudios-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #fff;
  margin-bottom: 30px;
  border-radius: 80px;
  overflow: hidden;
}

.tab {
  flex: 1;
  min-width: 200px;
  border: none;
  background-color: #f5e9e9;
  padding: 30px 20px;
  font-size: 0.95rem;
  color: #4a3c3c;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: #d76f7a;
  color: #fff;
  font-weight: 600;
}

.tab:hover {
  background-color: #e8bfc3;
}

/* --- Fichas de contenido --- */
.estudios-contenido {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.ficha {
  display: none;
  background-color: #fdf7f7;
  border-radius: 165px 30px 30px 30px;
  padding: 40px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.ficha.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .ficha.active {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* --- Imagen --- */
.ficha-imagen img {
  width: 100%;
  max-width: 420px;
  border-radius: 125px 25px 25px 25px;
  object-fit: cover;
}

/* --- Texto --- */
.ficha-texto {
  flex: 1;
  padding: 20px;
}

.ficha-texto h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #4a2f2f;
}

.ficha-texto p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.ficha-texto ul {
  list-style: none;
  padding: 0;
}

.ficha-texto ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: #5e4a4a;
}

.ficha-texto ul li::before {
  content: "";
  color: #d76f7a;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.ficha-texto .nota {
  margin-top: 20px;
  font-weight: 600;
  color: #4a3c3c;
  text-align: center;
}

/* ========================= */
/*     RESPONSIVE DESIGN     */
/* ========================= */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  .tab {
    min-width: 150px;
    padding: 20px 15px;
    font-size: 0.9rem;
  }

  .ficha {
    border-radius: 100px 25px 25px 25px;
    padding: 30px;
  }

  .ficha-texto h3 {
    font-size: 1.2rem;
  }

  .ficha-texto p,
  .ficha-texto ul li {
    font-size: 1.1rem;
  }

  .ficha-imagen img {
    max-width: 350px;
  }
}

/* M¨®viles (pantallas peque?as) */
@media (max-width: 768px) {
  .estudios-tabs {
    flex-direction: column;
    border-radius: 30px;
  }

  .tab {
    min-width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-bottom: 1px solid #fff;
  }

  .tab:last-child {
    border-bottom: none;
  }

  .ficha {
    flex-direction: column;
    border-radius: 40px;
    padding: 20px;
    text-align: center;
  }

  .ficha-imagen img {
    max-width: 100%;
    border-radius: 30px;
    margin-bottom: 20px;
  }

  .ficha-texto {
    padding: 10px;
  }

  .ficha-texto h3 {
    font-size: 1.1rem;
  }

  .ficha-texto p,
  .ficha-texto ul li {
    font-size: 1rem;
  }
}

/* M¨®viles muy peque?os */
@media (max-width: 480px) {
  .seccion-estudios {
    padding: 30px 10px;
  }

  .tab {
    font-size: 0.9rem;
    padding: 12px;
  }

  .ficha {
    border-radius: 25px;
    padding: 15px;
  }

  .ficha-texto h3 {
    font-size: 1rem;
  }

  .ficha-texto p,
  .ficha-texto ul li {
    font-size: 0.9rem;
  }
}

/* SECCION_5 */
/* === SECCIÃ“N ATENCIÃ“N SEGURA Y HUMANA === */

.seccion-atencion {
  background-color: #eaf8f7; /* color de fondo suave tipo verde menta */
  padding: 0rem 0rem;
}

.contenedor-atencion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1500px;
  margin: 0;
  flex-wrap: wrap;
}

/* Imagen */
.atencion-imagen {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.atencion-imagen img {
  width: 100%;
  max-width: 750px;
  border-radius: 10px;
  object-fit: cover;
}

/* Texto */
.atencion-texto {
  flex: 1 1 45%;
}

.atencion-texto h2 {
  font-size: 3rem;
  font-weight: 400;
  color: #5b3c41; /* tono marrÃ³n vino similar al de la imagen */
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.atencion-texto h2 span {
  font-weight: 700;
  color: #5b3c41;
}

.atencion-texto p {
  font-size: 1.5rem;
  color: #6b6b6b;
  line-height: 1.6;
  max-width: 600px;
}

/* Responsivo */
@media (max-width: 768px) {
  .contenedor-atencion {
    flex-direction: column;
    text-align: center;
  }

  .atencion-texto h2 {
    font-size: 2rem;
  }

  .atencion-texto p {
    font-size: 0.95rem;
  }

  .atencion-imagen img {
    max-width: 400px;
  }
}

/* SECCION_6 */
/* === SECCIÃ“N ESTUDIO INVASIVO === */

.seccion-estudio {
  background-color: #ffffff;
  padding: 4rem 2rem;
}

.contenedor-estudio {
  display: flex;
  align-items: flex-start; /* texto arriba */
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Texto */
.estudio-texto {
  flex: 1 1 55%;
  text-align: center;
}

.estudio-texto h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #70494f; /* tono vino */
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.estudio-texto .subtitulo {
  font-size: 1.1rem;
  color: #6d6d6d;
  margin-bottom: 2rem;
}

.estudio-texto .descripcion {
  font-size: 1rem;
  color: #6d6d6d;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 450px;
}

/* BotÃ³n */
.btn-agendar {
  display: inline-block;
  background-color: #e58a97;
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(229, 138, 151, 0.4);
  transition: all 0.3s ease;
}

.btn-agendar:hover {
  background-color: #d36e7f;
  box-shadow: 0 6px 10px rgba(211, 110, 127, 0.4);
}

/* Imagen */
.estudio-imagen {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* imagen alineada arriba tambiÃ©n */
}

.estudio-imagen img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  object-fit: cover;
}

/* Responsivo */
@media (max-width: 768px) {
  .contenedor-estudio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .estudio-texto {
    flex: 1 1 100%;
  }

  .estudio-imagen {
    flex: 1 1 100%;
    margin-top: 2rem;
  }

  .estudio-imagen img {
    max-width: 260px;
  }
}
