/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'EB Garamond', serif;
  color: #fff;
  line-height: 1.6;
  background-color: #f8f9fa;
  
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5); /* Transparente */
  backdrop-filter: blur(6px);
}

nav .logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 75px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  font-size:20px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #d4af37; /* Dorado */
}
.logo img {
  height: 50px; /* Ajusta según tu diseño */
  width: auto;
}

/* === FIX: Evitar scroll lateral === */
html, body {
  overflow-x: hidden;
}

/* === Menú hamburguesa === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animación de la X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === RESPONSIVE NAV === */
@media (max-width: 992px) {
  nav {
    padding: 15px 20px; /* menos padding */
  }

  nav ul {
    gap: 30px; /* menos separación */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.3s ease;
    margin: 0;
    padding: 0;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  nav .logo img {
    height: 35px;
    max-width: 140px;
  }

  nav ul li a {
    font-size: 1.2rem;
  }
}


/* HERO */
.hero {
  height: 100vh;
  background: url('images/hero principal.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: #fff;
  margin-top:30px;
}

.hero-content  span {
  color: #d4af37; /* Dorado */
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #f1f1f1;
}



.hero-content p {
	background: black;
	max-width:280px;
	padding:10px;
}

/* SECCIÓN INFO */
.info {
  background: url("images/Banner somos un despacho.webp") no-repeat center center/cover;
  color: #222;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

/* Opcional: capa oscura encima de la imagen */
.info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.info h2,
.info p {
  position: relative;
  z-index: 2; /* para que se vean sobre la capa */
}

.info h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #0b2239;
}

.info p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablets (pantallas medianas, hasta 1024px) */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    padding: 80px 5% 60px;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.4rem;
    margin: 0 auto 15px;
  }
  
  .info h2 {
    font-size: 2rem;
  }

  .info p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* Móviles (pantallas pequeñas, hasta 768px) */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 60px 5% 40px;
    text-align: center;
    justify-content: center;

    /* ✅ Cambio de imagen para móviles */
    background-image: url("images/RESPONSIVE - banner inicio.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1.2rem;
    padding: 8px;
    max-width: 100%;
  }

  .info {
    padding: 40px 15px;
  }

  .info h2 {
    font-size: 1.6rem;
  }

  .info p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Móviles muy pequeños (hasta 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 6px;
  }

  .info h2 {
    font-size: 1.4rem;
  }

  .info p {
    font-size: 0.9rem;
  }
}


/* SECCION_2 */
.especialidades {
  text-align: center;
  padding: 60px 15%;
  font-family: 'EB Garamond', serif;
}

.especialidades h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #1a2b49;
}

.especialidades h2 span {
  color: #b89b5e; /* dorado */
  font-weight: bold;
}

.grid-especialidades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 90px 30px;
}

/* Últimos dos centrados en la fila final */
.grid-especialidades .card:nth-last-child(2) {
  grid-column: 2;
}

.grid-especialidades .card:last-child {
  grid-column: 3;
}

.card {
  flex: 1 1 calc(33.333% - 70px); /* 3 columnas */
  max-width: calc(33.333% - 70px);
  background: linear-gradient(to bottom, #17344F, #163d5e);
  color: #fff;
  border-radius: 6px;
  padding: 90px 20px 40px; /* más espacio arriba/abajo */
  position: relative;
  text-align: center;
  transition: all 0.3s ease;

  /* 🔹 Centrar contenido verticalmente */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Línea dorada arriba */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  background: #AA875E; /* franja dorada */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Línea dorada abajo */
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 8px;
  width: 100%;
  background: #AA875E; /* franja dorada */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.card:hover::before,
.card:hover::after {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.40);
}

.icono {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* mitad dentro, mitad fuera */
  background: #17344F;
  border: 6px solid #AA875E;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; /* encima de la franja dorada */
}

.icono img {
  width: 65px;
  height: 65px;
}

.card p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding-top: 0px;
  text-align: center;
}

/* SECCIÓN PROTECCIÓN */
.proteccion {
  background: url("images/Planes de proteccion juridica.webp") no-repeat center center/cover;
  width: 100%;
  padding: 60px 10%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 200px;
  position: relative;
  color: #fff;
 font-family: 'EB Garamond', serif;
}

.proteccion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 20, 40, 0.6); /* filtro oscuro para mejor contraste */
}

.proteccion-content {
  position: relative;
  max-width: 790px;
  text-align: right;
  z-index: 1;
}

.proteccion h2 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 15px;
  font-weight: 500;
}

.proteccion p {
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 300;
}

.proteccion .amarillo {
  color: #FED870; /* amarillo dorado */
  font-weight: 600;
}

.proteccion .negrita {
  font-weight: 600;
}

/* 🔹 RESPONSIVE DESIGN */

/* Tablets (max 992px) */
@media (max-width: 992px) {
  .especialidades {
    padding: 50px 8%;
  }

  .grid-especialidades {
    gap: 70px 25px;
  }

  .card {
    flex: 1 1 calc(50% - 40px); /* 2 columnas */
    max-width: calc(50% - 40px);
    padding: 80px 20px 35px;
  }

  .card p {
    font-size: 1.1rem;
  }

  .proteccion {
    padding: 50px 6%;
    justify-content: center;
    text-align: center;
  }

  .proteccion-content {
    max-width: 90%;
    text-align: center;
  }

  .proteccion h2,
  .proteccion p {
    text-align: center;
  }
}

/* Móviles (max 600px) */
@media (max-width: 600px) {
  .especialidades {
    padding: 40px 6%;
  }

  .especialidades h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .grid-especialidades {
    gap: 60px 0;
  }

  .card {
    flex: 1 1 100%; /* 1 columna */
    max-width: 100%;
    padding: 70px 15px 30px;
  }

  .icono {
    width: 80px;
    height: 80px;
    border-width: 4px;
  }

  .icono img {
    width: 50px;
    height: 50px;
  }

  .card p {
    font-size: 1rem;
  }

  .proteccion {
    padding: 40px 5%;
    justify-content: center;
    min-height: auto;
  }

  .proteccion h2 {
    font-size: 1.2rem;
  }

  .proteccion p {
    font-size: 1.1rem;
  }
}

/* SECCION_3 */

.specialty-section {
  position: relative;
  background: url("images/Imagen_nuestras areas de especialidad.webp") no-repeat center center/cover;
  padding: 80px 20px;
  font-family: 'EB Garamond', serif;
  color: #0A2640;
  min-height:1450px;
}

/* ====== CONTENEDOR ====== */
.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ====== BLOQUE CENTRADO ====== */
.block-center {
  text-align: center;
  margin-bottom: 40px;
}

/* ====== ENCABEZADOS ====== */
.subtitle {
  font-size: 23px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #17344F;
  font-weight: normal;
}

.title span {
  color:#AA875E;
}

.title {
  font-size: 26px;
  font-weight: normal;
  margin: 10px 0 20px;
  color: #17344F;
}

/* ====== INTRO (PRIMER PÁRRAFO) ====== */
.intro {
  font-size: 26px;
  line-height: 1.6;
  color: #1c3550;
  max-width: 1020px;
  margin: 0 auto;
}

.highlight {
  color: #b07a3c;
  font-weight: bold;
}

/* ====== BLOQUE IZQUIERDO ====== */
.block-left {
  text-align: left;
  margin: 190px 0;
}

.side-line {
  position: relative;
  font-size: 26px;
  line-height: 1.6;
  max-width: 600px;
  padding-left: 20px;
}

.side-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #0A2640;
}

.highlight2 {
  color: #c07a4c;
  font-weight: bold;
}

/* ====== CUADRO AZUL ====== */
.highlight-box {
  background: #22415D;
  color: #fff;
  padding: 20px 85px;
  font-size: 23px;
  border-radius: 6px;
  display: inline-block;
}

/* ====== LÍNEA DECORATIVA ====== */
.line-deco {
  width: 44%;
  height: 4px;
  background: #0A2640;
  margin: 10px 0px;
}


.abogado-section {
  position: relative;
  background: url("images/Banner abogado sanitario.webp") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 23px 20px;
}

/* Contenedor interno */
.abogado-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

/* Imagen persona */
.abogado-img img {
  max-width: 350px;
  height: auto;
  object-fit: contain;
  margin: -115px 0px -46px 0px;
}

/* Texto */
.abogado-text {
  flex: 1;
  text-align: right;
}

.abogado-text h2 {
  font-size: 30px;
  color: #FED870; /* Amarillo dorado */
  margin-bottom: 20px;
}

.abogado-text p {
  font-size: 28px;
  line-height: 1.6;
}

/* ====== RESPONSIVE DESIGN ====== */ 

/* Tablets (pantallas hasta 1024px) */
@media (max-width: 1024px) {
  .specialty-section {
    padding: 60px 15px;
    min-height: auto;
  }

  .title {
    font-size: 24px;
  }

  .intro {
    font-size: 22px;
    max-width: 90%;
  }

  .block-left {
    margin: 120px 0;
  }

  .side-line {
    font-size: 22px;
    max-width: 500px;
  }

  .highlight-box {
    font-size: 20px;
    padding: 18px 60px;
  }

  .line-deco {
    width: 60%;
  }

  /* Abogado */
  .abogado-container {
    gap: 25px;
  }

  .abogado-img img {
    max-width: 300px;
    margin: -80px 0px -30px 0px;
  }

  .abogado-text h2 {
    font-size: 26px;
  }

  .abogado-text p {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .specialty-section {
    padding: 50px 15px;

    /* ✅ Imagen de fondo con transparencia blanca */
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)),
                url("images/RESPONSIVE - Derecho medico y sanitario.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .subtitle {
    font-size: 18px;
  }

  .title {
    font-size: 22px;
    margin: 8px 0 15px;
  }

  .intro {
    font-size: 20px;
    line-height: 1.5;
  }

  .block-left {
    margin: 80px 0;
  }

  .side-line {
    font-size: 20px;
    padding-left: 15px;
  }

  .highlight-box {
    font-size: 18px;
    padding: 15px 40px;
  }

  .line-deco {
    width: 70%;
  }
}



  /* Abogado */
  .abogado-container {
    gap: 25px;
  }

  .abogado-img img {
    max-width: 300px;
    margin: -80px 0px -30px 0px;
  }

  .abogado-text h2 {
    font-size: 26px;
  }

  .abogado-text p {
    font-size: 22px;
  }
}

/* Móviles (pantallas hasta 768px) */
@media (max-width: 768px) {
  .specialty-section {
    padding: 50px 15px;
  }

  .subtitle {
    font-size: 18px;
  }

  .title {
    font-size: 22px;
    margin: 8px 0 15px;
  }

  .intro {
    font-size: 20px;
    line-height: 1.5;
  }

  .block-left {
    margin: 80px 0;
  }

  .side-line {
    font-size: 20px;
    padding-left: 15px;
  }

  .highlight-box {
    font-size: 18px;
    padding: 15px 40px;
  }

  .line-deco {
    width: 70%;
  }

  /* Abogado */
  .abogado-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .abogado-img img {
    max-width: 250px;
    margin: 0 auto;
  }

  .abogado-text {
    text-align: center;
  }

  .abogado-text h2 {
    font-size: 24px;
  }

  .abogado-text p {
    font-size: 20px;
  }
}

/* 📱 Responsivo SOLO: texto primero, imagen después */
@media (max-width: 992px) {
  .abogado-container {
    flex-direction: column-reverse;  /* 🔄 Texto arriba, imagen abajo */
    text-align: center;
  }

  .abogado-text {
    text-align: center;  /* Centrar texto */
  }

  .abogado-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Empuja la imagen hacia el fondo */
  }
.abogado-section{
	padding-bottom:0px;
	
}
  .abogado-img img {
    max-width: 250px;    
    height: auto;
    margin: 0;           /* ❌ Sin margen */
    display: block;
  }

  .abogado-text h2 {
    font-size: 24px;
  }

  .abogado-text p {
    font-size: 20px;
  }
}



/* SECCION_4 */
.servicios-salud4 {
  --blue: #0f3a5a;
  --blue-2: #17344F;
  --gold: #b8925b;
  --gold-dark: #987643;
  --bullet: #ffd13b;
  --text: #ffffff;
  --radius: 12px;

  background: #f3f6f8;
  padding: 50px 20px;
}

.container4 {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

/* Grid en desktop */
@media (min-width: 992px) {
  .container4 {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center; /* Centrar items cuando no llenen fila */
  }

  .card4--full {
    grid-column: 1 / -1;
    width: 100%; /* Asegura que ocupe todo */
  }

  /* 🔹 Importante: quitar forzado de columnas en card 5 y 6 */
  .card4:nth-of-type(5),
  .card4:nth-of-type(6) {
    grid-column: auto;
	left:50%;
 } 


}


/* Estilo general de tarjetas */
.card4 {
  position: relative;
  background: #17344F;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.card4 img {
  width: 100%;
  display: block;
  height: auto;
}
.content4 {
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color: var(--text);
  padding: 22px;
}

/* --- Card 1 en formato side-by-side --- */
.card4--side .side-wrapper4 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.card4--side img {
  width: 30%;
  height: 100%;
  object-fit: cover;
}
.card4--side .content4 {
  flex: 1;
}

/* Viñetas */
.bullets4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bullets4 li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
  font-size:18px;
  text-align: justify;
}
.bullets4 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--bullet);
  border-radius: 50%;
}

/* Cintillo dorado */
.ribbon4 {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 10px 14px 10px 42px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.ribbon4 .title4 {
  font-size: 0.95rem;
  white-space: nowrap;
}
.ribbon4 .num4 {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #0f3a5a;
  border-radius: 8px;
  font-weight: 800;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablets (pantallas hasta 992px) */
@media (max-width: 992px) {
  .container4 {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  }

  .card4--full {
    grid-column: 1 / -1;
  }

  .bullets4 li {
    font-size: 16px;
  }

  .ribbon4 {
    padding: 8px 12px 8px 38px;
  }

  .ribbon4 .title4 {
    font-size: 0.9rem;
  }

  .ribbon4 .num4 {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

/* Móviles (pantallas hasta 768px) */
@media (max-width: 768px) {
  .container4 {
    grid-template-columns: 1fr; /* 1 columna */
  }

  .card4--side .side-wrapper4 {
    flex-direction: column; /* Imagen arriba, texto abajo */
  }

  .card4--side img {
    width: 100%;
    height: auto;
  }

  .content4 {
    padding: 18px;
  }

  .bullets4 li {
    font-size: 15px;
    line-height: 1.5;
  }

  .ribbon4 {
    top: 10px;
    left: 10px;
    font-size: 0.85rem;
  }

  .ribbon4 .num4 {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .servicios-salud4 {
    padding: 40px 15px;
  }

  .bullets4 li {
    font-size: 14px;
  }

  .ribbon4 {
    padding: 6px 10px 6px 32px;
  }

  .ribbon4 .title4 {
    font-size: 0.8rem;
  }

  .ribbon4 .num4 {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}


/* SECCION_5 */

/* SECCIÓN DERECHO MÉDICO */
.derecho-medico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: url('images/Banner abogado en derecho medico.webp') no-repeat center center/cover; /* Imagen de fondo propia */
  padding: 60px 10%;
  min-height: 400px;
  overflow: visible; /* 👈 IMPORTANTE, permite que la doctora sobresalga */
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
}

/* Contenido de texto */
.contenido-derecho {
  max-width: 73%;
  color: #1a2b49;
  position: relative;
  z-index: 2;
}

.contenido-derecho h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d2b4d;
}

.contenido-derecho p {
  font-size: 2rem;
  line-height: 1.6;
  color: #17344F;
}

.contenido-derecho strong {
  color: #17344F;
}

/* Imagen doctora sobresaliendo */
.imagen-doctora {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 3; /* Asegura que quede encima del fondo */
}

.imagen-doctora img {
  max-width: 350px;
  height: auto;
  display: block;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablets (pantallas hasta 1024px) */
@media (max-width: 1024px) {
  .derecho-medico {
    flex-direction: column;
    text-align: center;
    padding: 60px 5% 300px; /* espacio extra para que la doctora no se encime */
  }

  .contenido-derecho {
    max-width: 100%;
  }

  .contenido-derecho h2 {
    font-size: 2rem;
  }

  .contenido-derecho p {
    font-size: 1.5rem;
  }

  .imagen-doctora {
    right: 50%;
    transform: translateX(50%); /* centrada */
    bottom: 0;
  }

  .imagen-doctora img {
    max-width: 200px;
  }
}

/* Móviles (pantallas hasta 768px) */
@media (max-width: 768px) {
  .derecho-medico {
    padding: 50px 5% 250px;
  }

  .contenido-derecho h2 {
    font-size: 1.8rem;
  }

  .contenido-derecho p {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .imagen-doctora img {
    max-width: 240px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .derecho-medico {
    padding: 40px 5% 200px;
  }

  .contenido-derecho h2 {
    font-size: 1.5rem;
  }

  .contenido-derecho p {
    font-size: 1.1rem;
  }

  .imagen-doctora img {
    max-width: 125px;
  }
}


/* SECCION_6 */
/* ===== SECCIÓN SERVICIOS DERECHO MÉDICO ===== */
.servicios-medicos6 {
  position: relative; /* necesario para el ::before */
  background: url("images/Imagen transparente de fondo.jpg") no-repeat center center/cover;
  padding: 60px 10%;
  color: #0d2c54;
  z-index: 1;
}

/* Capa blanca translúcida */
.servicios-medicos6::before {
  content: "";
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  background: rgba(255, 255, 255, 0.7); /* blanco con 70% transparencia */
  z-index: -1; /* para que no tape el contenido */
}

/* CONTENEDOR GENERAL */
.container6 {
  max-width: 1200px;
  margin: auto;
}

/* SERVICIOS */
.servicio6 {
  display: flex;
  align-items: flex-start;
  margin-bottom: 35px;
  gap: 25px;
}

.servicio6 .icono6 img {
  width: 80px;
  height: 80px;
}

.servicio6 .texto6 h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #0d2c54;
  font-weight: bold;
}

.servicio6 .texto6 p {
  font-size: 1.4rem;
  color: #444;
}

.titulo-diferencia6 {
  text-align: center; /* centra el texto dentro */
  margin: 60px 374px 30px; /* centra el bloque */
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  background: #17344F;
  padding: 10px 20px;
  display: inline-block;
}


/* CARDS */
.diferencias6 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ===== TARJETAS ===== */
.card6 {
  background: #17344F;
  color: #fff;
  padding: 25px;
  width: 33%;
  position: relative;
  /* ❌ quitamos overflow: hidden aquí */
  transition: all 0.3s ease-in-out;
}

/* Línea azul debajo */
.card6::after {
  content: "";
  position: absolute;
  bottom: -24px;   /* Ubicamos justo debajo del contenedor */
  left: 0;
  width: 100%;
  height: 14px;
  background: #17344F /* Azul */
  
}

/* ===== TEXTO ENCIMA ===== */
.card6 p {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align:center;
}

.card6 span {
color:#FED870
}

.card6 .icono-hover6 img {
  width: 150px;
  height: 150px;
}
.card6 .icono-hover6 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), 
              opacity 0.5s ease;
  opacity: 0;
  z-index: 1; /* debajo del texto */
}
/* ===== IZQUIERDA ===== */
.card6.diferencia6:first-child .icono-hover6 {
  left: 0;
  transform: translate(-50%, -50%);
}

.card6.diferencia6:first-child:hover .icono-hover6 {
  transform: translate(-120%, -50%);
  opacity: 1;
  z-index: 3;
}

/* ===== DERECHA ===== */
.card6.diferencia6:last-child .icono-hover6 {
  right: 0;
  transform: translate(50%, -50%);
}

.card6.diferencia6:last-child:hover .icono-hover6 {
  transform: translate(120%, -50%);
  opacity: 1;
  z-index: 3;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
  .titulo-diferencia6 {
    margin: 40px auto 25px; /* centrado automático */
    font-size: 1.3rem;
    padding: 8px 16px;
  }

  .card6 {
    width: 45%; /* 2 columnas */
  }

  .servicio6 .icono6 img {
    width: 70px;
    height: 70px;
  }

  .servicio6 .texto6 h3 {
    font-size: 1.3rem;
  }

  .servicio6 .texto6 p {
    font-size: 1.2rem;
  }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
  .servicios-medicos6 {
    padding: 40px 5%;
  }

  .titulo-diferencia6 {
    margin: 30px auto 20px;
    font-size: 1.2rem;
    padding: 8px 14px;
    display: block; /* ocupa ancho automático */
  }

  .diferencias6 {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .card6 {
    width: 90%; /* 1 columna */
  }

  .card6 p {
    font-size: 1.05rem;
  }

  .servicio6 {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
  }

  .servicio6 .icono6 img {
    width: 60px;
    height: 60px;
  }

  .card6 .icono-hover6 img {
    width: 110px;
    height: 110px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .titulo-diferencia6 {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .card6 {
    padding: 18px;
    width: 100%;
  }

  .card6 p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .card6 .icono-hover6 img {
    width: 90px;
    height: 90px;
  }
}



/* SECCION_7 */
.health-section {
  position: relative;
  background: url("images/Imagen final.webp") no-repeat center center;
  background-size: contain; /* La imagen se ve completa */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #333;
}

/* Franja blanca con transparencia */
.overlay-text {
  position: absolute;
  top: 55%; /* Cambia este valor (ej. 40%, 60%) para mover hacia arriba o abajo */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  padding: 25px 40px;
  text-align: center;
  font-size: 24px;
  line-height: 1.6;
  transform: translateY(-50%); /* Centrado vertical respecto a "top" */
}

.overlay-text strong {
  color: #0A2640;
}

/* Contenedor inferior */
.info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
  flex-wrap: wrap;
  background: #fff;
}

.info-container p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

.info-container strong {
  color: #0A2640;
}

/* Botón WhatsApp */
.whatsapp-btn {
  display: inline-block;
  background: #0A2640;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 20px 40px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease;
}

.whatsapp-btn span {
  font-weight: normal;
  font-size: 14px;
}

.whatsapp-btn:hover {
  background: #06304d;
}

/* ====== RESPONSIVE DESIGN SECCION_7 ====== */

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
  .overlay-text {
    top: 50%;
    font-size: 20px;
    padding: 20px 30px;
  }

  .info-container {
    gap: 25px;
    padding: 30px 15px;
  }

  .info-container p {
    font-size: 16px;
  }

  .whatsapp-btn {
    padding: 16px 32px;
    font-size: 15px;
  }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
  .health-section {
    /* ✅ Imagen de fondo con transparencia blanca */
    background: url("images/RESPONSIVE - banner final.webp");
    background-size: cover; /* cubrir todo el contenedor */
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
  }

  .overlay-text {
    top: 45%; /* subimos un poco */
    font-size: 18px;
    padding: 18px 20px;
    line-height: 1.4;
  }

  .info-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .info-container p {
    max-width: 90%;
    font-size: 15px;
  }

  .whatsapp-btn {
    width: 80%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .health-section {
    /* Mismo fondo con transparencia para móviles muy pequeños */
    background: url("images/RESPONSIVE - banner final.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .overlay-text {
    top: 40%;
    font-size: 16px;
    padding: 15px;
  }

  .info-container p {
    font-size: 14px;
    line-height: 1.4;
  }

  .whatsapp-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 13px;
  }
}

