/* === GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.header-top {
  position: fixed;
  top: 0;
  width: 100%;
  height: 7vh;
  background-color: #002079ee;
  color: #ffffff;
  font-size: 0.85rem;
  z-index: 1100; /* debe ser mayor que el navbar */
  padding: 6px 20px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.header-top {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1e3a8a;
  color: #ffffff;
  font-size: 0.9rem;
  z-index: 1100;
  padding: 10px 20px; /* más altura */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.header-top-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* reparte bien en toda la pantalla */
  align-items: center;
  gap: 50px; /* más separación entre cada bloque */
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.header-top span {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre ícono y texto */
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.header-top a {
  color: #ffffff;
  text-decoration: none;
}

.header-top i {
  font-size: 1rem;
}
.header-top a:hover{
  transform: translateY(-3px) scale(1.0);
  color: #00ffa6; /* o el color que desees al hacer hover */
}
/* === HEADER === */
header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
#navbar {
  position: fixed;
  width: 100%;
  height: 80px;
  top: 45px;
  z-index: 1000;  
  transition: background-color 0.3s ease;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background-color: transparent;  
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.logo img {
  height: 95px;
  display: block;
  margin-top: 5px;
}
.logo img:hover{
    transform: scale(1.05);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links li a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}
.nav-links li a:hover {
  color: #002e63;
  transition: color 0.3s ease;
  background-color: transparent;
  font-size: 22px;
  border-radius: 4px;
  transform: scale(1.05);
}
/* Estilo después de hacer scroll */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.925); /* negro translúcido */  
}
/* === HERO SECTION === */
#hero {
  background-image: linear-gradient(rgba(255, 255, 255, 0.719), rgba(231, 231, 231, 0.774)), url('../img/Hero-fijo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  height: 160vh;
}
.hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}
/* === COLUMNAS GENERALES === */
.hero-column {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* === DOCTOR BOX === */
.doctor-box .doctor-image-box {
  position: relative;
  text-align: center;
}
.doctor-image-box img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.623);
  margin-bottom: 20px;
  height: 79vh;
}
.doctor-note {
  position: absolute;
  bottom: 45px;
  left: -50px; /* Mueve la caja hacia la izquierda fuera del contenedor */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 420px; /* Tamaño fijo recomendado si la estás sacando */
  max-width: 90vw;  
}
.doctor-note:hover {
  background-color: rgba(145, 202, 255, 0.918);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.651);
  transform: translateY(1.05);
}
.doctor-note::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  border-radius: 60px;
  background: linear-gradient(to right, #001885, #0050ac, #0081a8);
  transition: transform 0.4s ease;
  transform-origin: center;
}
.doctor-note:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.doctor-note h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}
.doctor-note p {
  color: #131313;
}
/* === AGENDA CARD === */
.agenda-card {
  background-color: #fffdf5cb;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.719);
  padding: 20px;
  width: 100%;
  height: 510px;  
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.062) 1px, transparent 1px);
  background-size: 100% 30px;
  text-align: center;
}
.agenda-card::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -12px;
  width: 12px;
  height: 90%;
  background: repeating-linear-gradient(
    to bottom,
    #999,
    #999 8px,
    transparent 8px,
    transparent 16px
  );
  border-radius: 10px;
}
.agenda-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #0057a8;
  text-align: center;
}
.agenda-card h4,
.agenda-card p {  
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 15px;
}

/* === ICONO SECCIÓN GENERAL === */
.icono-seccion {
  font-size: 1.5rem;
  color: #007BFF;
  margin: 20px 0 8px;
  display: block;
  text-align: center;
}
/* FILOSOFIA FILA (3 columnas lado a lado) */
.filosofia-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 60px;  
}
/* Filosofía columnas - ancho fijo */
.filosofia-col {
  flex: 1 1 calc(33.333% - 20px); /* 3 columnas con espacio */
  max-width: calc(33.333% - 20px);
  min-width: 280px;
  box-sizing: border-box;
  background-color: #ffffffbd;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.685);
  padding: 30px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  margin-top: 100px;
  transform: translateY(40px);
  overflow: hidden;
}
/* Iconos y títulos */
.filosofia-col h3 {
  font-size: 1.6rem;
  color: #0057a8;
  margin-bottom: 10px;    
}
.icono-seccion {
  color: #0057a8;
  font-size: 1.6rem;
  align-items: center;
}
/* Párrafos y lista */
.filosofia-col p {
  font-size: 1.1rem;
  color: #292929;
  line-height: 1.5;
  text-align: left;
  margin-left: 5px;
  margin-right: 5px;
}
.filosofia-col ul {
  list-style: none;
  padding: 0;
  margin-left: 20px;
}
.filosofia-col ul li {
  font-size: 1.1rem;
  color: #292929;
  line-height: 1.5;
  position: relative;
  text-align: left;
  padding-left: 1.5rem;
}
.filosofia-col ul li::before {
  content: "✔";
  color: #0057a8;
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}
/* Hover efecto */
.filosofia-col:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.815);
  background-color: #0026ff3a;
}
.filosofia-col::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  border-radius: 60px;
  background: linear-gradient(to right, #002fff, #0077ff, #00ffff);
  transition: transform 0.4s ease;
  transform-origin: center;
}
.filosofia-col:hover::after {
  transform: translateX(-50%) scaleX(1);
}
/* Scroll visible (activado por JS) */
.filosofia-col.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}
/* FILA INFERIOR (doctor + agenda) */
.hero-bottom-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
/* Columnas inferiores */
.hero-bottom-row .hero-column {
  flex: 1 1 400px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* === ANIMACIONES === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === ABOUT === */
.acerca-section {
  padding: 50px 50px;
  background-color: #f8f9fac9;
}
.container {
  max-width: 1200px;
  margin: auto;
}
/* NUEVO: estructura tipo sidebar */
.doctor-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
/* === SIDEBAR (izquierda) === */
.doctor-sidebar {
  flex: 2;
  max-width: 480px;
  text-align: center;
  background: #ffffffdd;
  padding: 20px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.692);
  animation: fadeInUp 1.5s ease;
  backdrop-filter: blur(4px);  
}
.doctor-sidebar img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.doctor-sidebar h2 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.doctor-sidebar p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 15px;
}
.doctor-sidebar ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
  color: #374151;
}
.doctor-sidebar ul li {
  margin-bottom: 10px;
}
/* Botón CTA */
.btn-cta {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #007BFF;
  color: white;
  padding: 12px 28px;
  width: 100%;
  max-width: 250px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.btn-cta i {
  margin-right: 8px;
}
.btn-cta:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.719);
}
/* === CONTENIDO PRINCIPAL (derecha) === */
.doctor-main {
  flex: 2;
  padding: 10px;
  animation: fadeInUp 1.5s ease;
}
.doctor-main h3 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doctor-main p {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 10px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.doctor-main ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #374151;
}
.doctor-main ul li {
  margin-bottom: 8px;
}
/* Animación de entrada */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* === SERVICES === */
.services {
  padding: 60px 20px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.719), rgba(231, 231, 231, 0.774)), url('../img/lesiones.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.services h2 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  text-align: center;
}
.services p {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.7;
  text-align: justify;
}
.intro-artroscopia {
  margin-bottom: 50px;
  background-color: #a1cdff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.726);
  animation: fadeInUp 1.2s ease;
}
.service-list-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  animation: fadeInUp 1.5s ease;
}
.service-card {
  background-color: #ffffffb7;
  border: 1px solid #e0e0e0;
  border-left: 6px solid #007BFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.726);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.685);
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  border-radius: 60px;
  background: linear-gradient(to right, #002fff, #0077ff, #00ffff);
  transition: transform 0.4s ease;
  transform-origin: center;
}
.service-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.service-card h3 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}
.service-card p,
.service-card ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.service-card ul {
  padding-left: 20px;
}
.service-card ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}
/* === CONTACT === */
.ubicacion {
  padding: 60px 20px;
  background-color: #f1f5f9;
}
.ubicacion h2 {
  font-size: 2rem;
  color: white;
  text-align: center;
  margin-bottom: 10px;
}
.ubicacion .intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.788);
  line-height: 1.6;
}
.contacto-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}
.datos-contacto {
  flex: 1 1 300px;
  background: #00154e;
  height: 540px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.932);
}

.datos-contacto h3, .datos-contacto h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: white;
}
.datos-contacto p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.788);
}
.datos-contacto a {
  color: rgba(255, 255, 255, 0.788);
  text-decoration: none;
}
.contact-link {
  color: rgba(255, 255, 255, 0.788);
  text-decoration: none;
  display: inline-flex;
  transition: transform 0.3s ease, color 0.3s ease;
}
.contact-link:hover {
  transform: translateY(-3px) scale(1.03);
  color: #00ffa6; /* o el color que desees al hacer hover */
}
.botones-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-contacto {
  display: inline-block;
  background-color: #004bad8a;
  color: white;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 10px;
  margin-left: 25px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 1, 2, 0.726);
}
.btn-contacto:hover {
  background-color: #016be6;
  transform: scale(1.05);
}
.btn-contacto.whatsapp {
  background-color: #109240;
  margin-left: 20px;
}
.btn-contacto.whatsapp:hover {
  background-color: #00ff00de;
  transform: scale(1.05);
}
.mapa {
  flex: 1 1 300px;
  border-radius: 12px;
  height: 540px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.mapa iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.seguros-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.seguros-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.seguros-info,
.seguros-beneficios {
  flex: 1 1 400px;
}

.seguros-info h2 {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 5px;
}

.seguros-info .intro {
  font-size: 1.5rem;
  color: #374151;
  line-height: 1.6;    
}

.seguros-list {
  list-style: none;
  padding-left: 0;
}

.seguros-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.5;
}

.seguros-list i {
  color: #16a34a;
  font-size: 1.2rem;
  flex-shrink: 0; /* evita que el ícono se reduzca */
  margin-top: 2px; /* alinea verticalmente con el texto */
}

/* Galería de logos */
.seguros-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 0 10px; /* mínimo margen a los lados */
}

.seguros-logos img {
  width: calc(16% - 10px); /* 4 por fila */
  height: 150px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: transform 0.3s ease, filter 0.3s ease;
  /* ❌ sin fondo, sin borde, sin sombra */
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.seguros-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}



/* === FOOTER === */
footer {
  background-color: #00154e;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 1.5rem 1rem;
  
}

.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
  }  

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 73, 230, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
  }

   
  .urgencia-label {
  background-color: #f80606ec;
  color: white;
  padding: 5px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
  margin-bottom: 6px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Botón flotante con icono y texto */
/* Estado inicial: botón pequeño */
.whatsapp-float {
  position: relative;
  background-color: #004badec;
  color: white;
  font-size: 24px;
  height: 52px;
  width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 73, 230, 0.8),
              0 0 20px rgba(0, 138, 230, 0.4);
  animation: pulse 1.6s infinite;
  transition: transform 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  padding: 0 16px;
  white-space: nowrap;
  transform-origin: right center; /* 👈 Clave visual */
}

/* Oculta el texto al inicio */
.btn-text {
  display: none;
  font-size: 0.85rem;
  margin-left: 8px;
  white-space: nowrap;
}

/* Hover: efecto de crecimiento desde la derecha */
.whatsapp-float:hover {
  width: auto;
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 12px;
}

/* Muestra el texto solo en hover */
.whatsapp-float:hover .btn-text {
  display: inline-block;
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
 
  .container {
    padding: 0 10px;
    width: 100%;
  }
  header {
    flex-direction: column;    
    align-items: center;
  }

  /* NAVBAR EN MÓVIL */
  .menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1e3a8a;
  cursor: pointer;
}
.navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 30px;
  }

.logo {
    align-items: flex-start;
  }

.logo img {
  height: 70px;
}
.nav-links {
  display: none;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.966);
  position: absolute;
  top: 70%;
  right: 0;
  width: 40%;
  padding: 20px;
  z-index: 1000;
}
  .nav-links.open {
  display: flex;
}

.nav-links li {
    margin-bottom: 15px;
  }

.nav-links li a {
  color: #1e3a8a;
  padding: 10px 0;
  text-align: left;
  font-size: 1rem;
}
  /* HERO */
  #hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.664), rgba(231, 231, 231, 0.712)), url('../img/Hero-fijo.png');
    background-size: cover;
    background-position: center;    
    height: auto;
    padding: 10px 10px;
    background-attachment: scroll;
    text-align: center;         
  }

  .hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5px; /* deja márgenes mínimos a los lados */
    box-sizing: border-box;
  }
  .filosofia-row {
    flex-direction: column;
    margin-top: 150px;
  }
  .filosofia-col {
    width: 100%;
    max-width: 100%;    
    margin-top: 10px;
  }
  .hero-column {
    width: 100%;
    max-width: 100%;
  }
  .doctor-image-box img {
    height: auto;   
    margin-top: 30px;
  }
  .doctor-note {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }
  .agenda-card {
    height: auto;
    width: 100%;
    max-width: 100%;    
    margin-bottom: 30px;
  }
  .btn-cta {
    padding: 14px 16px;      /* 🔽 reduce tamaño visual */
    font-size: 1rem;
    border-radius: 999px;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 250px;
  }

  /* SOBRE EL DOCTOR */
  .acerca-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5px; /* deja márgenes mínimos a los lados */
    box-sizing: border-box;
  }

  .doctor-sidebar,
  .doctor-main {
    width: 100%;
    max-width: 100%;
  }

  .doctor-sidebar {
    margin-bottom: 30px;
    margin-top: 50px;
  }
  .doctor-main{
    margin-bottom: 30px;   
  }

  /* SERVICIOS */
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5px; /* deja márgenes mínimos a los lados */
    box-sizing: border-box; 

  }
  .intro-artroscopia{
    margin-top: 50px;
  }
  .service-list-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }
  .service-card {
    margin-bottom: 10px;
  }

  /* UBICACIÓN */
  .ubicacion{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5px; /* deja márgenes mínimos a los lados */
    box-sizing: border-box;    
  }
  .datos-contacto{
    margin-top: 50px;
    height: auto;
  }
  .mapa{
    margin-bottom: 50px;
  }
 

  /* BOTONES */
  .btn-cta {
    width: 100%;
    font-size: 1rem;
  }

  .filosofia-col,
  .agenda-card,
  .doctor-note {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  .seguros-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5px; /* deja márgenes mínimos a los lados */
    box-sizing: border-box;    
  }
  .seguros-info h2{
    font-size: 1.5rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-top: 50px;    
  }
    .seguros-info .intro{
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    text-align: center;    
  }
  .seguros-list li{
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    text-align: left;    
  }
  .seguros-logos img {
    width: calc(20% - 10px); /* 2 por fila */
    height: 80px;
  }

  footer {
    font-size: 0.9rem;
    padding: 1rem;
  }
  .header-top {
    padding: 12px 0;
    height: auto;    
    white-space: nowrap;
  }

  .header-top-content {
    display: inline-block;
    animation: slide-left 15s linear infinite;
    max-width: 450%;    
  }

  .header-top-content span {
    display: inline-block;
    margin-right: 5px; /* espacio entre ítems */
    white-space: nowrap;
    color: #fff;
  }

  .header-top a {
    color: #fff;
    text-decoration: none;
  }


/* Animación tipo cinta de noticias */
@keyframes slide-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

}
