
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-top: 0;
    margin: 0;
    line-height: 1.6;
    font-size: 16px;


    /* Mejora visual */  
  }
     /* Top Header */
    

    .top-header span {
      display: flex;
      align-items: center;
      gap: 5px;
    }
       @keyframes fadeInFromLeft {
        0% {
          opacity: 0;
          transform: translateX(-50px); /* 👈 desde la izquierda */
        }
        100% {
          opacity: 1;
          transform: translateX(0);
        }
      }

/* deslizamiento  del logo   */
        .navbar-brand {
        color: #e90909 !important;
        font-weight: bold;
        text-decoration: none;
        animation: fadeInFromLeft 0.8s ease-out;
        animation-delay: 0.5s; /* opcional */
        animation-fill-mode: both;
      }

    /* Top Header */
    

   /* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION */
    
   
  /* --- VARIABLES DE COLOR (Recomendado mantener para consistencia) --- */
:root {
    --color-primary: #0a3997; /* Azul principal */
    --color-secondary: #0574f3;
    --color-accent: #B02222; /* Rojo Vivo (CTA) */
    --color-white: #ffffff;
    --color-dark: #212529;
}

/* --- ESTRUCTURA GENERAL DEL HEADER --- */

/* --- BARRA DE NAVEGACIÓN PRINCIPAL (NAV) --- */

.main-nav-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: var(--color-white); 
    box-shadow: 0 2px 8px rgba(12, 6, 6, 0.849); 
    position: fixed;
    z-index: 1000;
}

/* Texto del Logo */
.logo-text.text-primary{
    font-weight: 700;
    font-size: 1.4rem; 
    color: var(--color-primary) !important; 
}

/* Enlaces del Menú (Nav-links) */
.navbar-nav .nav-link {
    color: var(--color-primary); 
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s, border-bottom 0.3s; /* Ajustado para el hover */
}

/* Hover del Menú (Subrayado sutil) */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-secondary); 
    border-bottom: 2px solid var(--color-secondary); /* Subrayado azul */
    background-color:   transparent;
}

/* --- ELEMENTOS INTEGRADOS (Teléfono y Redes) --- */
.contact-integrated {
    /* Ajuste para que se vea más como texto y menos como un ítem de menú */
    list-style: none; 
    padding: 0.5rem 0;
}
.contact-integrated span {
    font-size: 0.9rem; /* Un poco más pequeño que el menú */
}
.social-integrated {
    list-style: none;
    padding: 0.5rem 0;
}
.social-integrated a {
    font-size: 1.1rem;
    transition: color 0.3s;
}
.social-integrated a:hover {
    color: var(--color-primary-dark) !important; /* Redes sociales en Rojo al hacer hover */
}


/* --- BOTÓN CTA DESTACADO (Reservar Cita) --- */

.consult-btn-red {
    /* Gradiente atractivo */
    background: linear-gradient(135deg, var(--color-accent-red), #dc2626);
    color: white;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    margin-left: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    
    /* Efectos 3D */
    border-bottom: 3px solid #b91c1c;
    
    /* Sombra moderna */
    box-shadow: 0 4px 15px rgba(26, 8, 8, 0.671);
    
    /* Transición suave */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Para accesibilidad */
    cursor: pointer;
    user-select: none;
}

.consult-btn-red:hover {
    transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(3, 1, 1, 0.849);
  background: linear-gradient(135deg, #dc2626, var(--color-accent-red));
    border-bottom-width: 4px;
}

.consult-btn-red:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.consult-btn-red i {
    transition: transform 0.3s ease;
}

.consult-btn-red:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .consult-btn-red {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        padding: 0.9rem;
    }
}



/* --- ELEMENTOS RESPONSIVOS --- */
/* Responsive del boton burger */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary) 300%);
    border-radius: 15px;
    padding: 50px 50px 10px 50px;
    margin-top: 410px;
    box-shadow: 0 10px 30px rgba(8, 5, 5, 0);
    transition: all 0.3s ease-in-out;
    position: absolute;
    z-index: 10;
    opacity: 0.95;
    transform: translateX(0);
    right: 20px;
    left: 140px;
    text-align: center;
    /* Asegurar que Bootstrap pueda controlar la visibilidad */
    height: auto !important;
    visibility: visible !important;
  }

  /* Clase cuando el menú está colapsado */
  .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  /* Clase cuando el menú está expandido */
  .navbar-collapse.collapse.show {
    display: block !important;
  }

  .nav-item {
    margin: 2.5px 0px;
    text-align: left;
  }

  .nav-link {
    font-size: 2.1rem;
    padding: 10px 10px !important;
    display: block;
  }

  .consult-btn-red {
    margin-left: 0;
    margin-top: 1rem;
    width: auto;
    min-width: 80px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block !important;
  }

  .navbar-toggler {
    border: none;
    outline: none;
    background: transparent !important;
    z-index: 1000;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
  }


  .nav-item:has(a[href="contactenos.html"] i.fa-phone-alt) {
    display: none !important;
    }
    
    


  /* Asegurar que el botón del toggler sea clickeable */
  .navbar-toggler.collapsed .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3e%3c/svg%3e");
  }

  .consult-btn-red:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
    transition: all 0.3s ease;
  }

  /* Para asegurar que el menú no se superponga con otros elementos */
  .navbar {
    position: relative;
    z-index: 100;
  }

  /* Ajustar margen superior en móviles */
  .main-nav-bar {
    margin-top: 10px;
  }
}

/* Asegurar que el z-index sea correcto en todos los casos */
.navbar-collapse {
  z-index: 1000 !important;
}

    /* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION *//* BARRA DE NAVEGACION */
    
    /*contenido de hero */

/* --- VARIABLES DE COLOR (Tomadas del Header) --- */
:root {
    --color-primary-dark: #0050f0; /* Azul Marino (para texto y overlay oscuro) */
    --color-accent-red: #B02222; /* Rojo Vivo (CTA y destaque) */
    --color-white: #ffffff;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    position: relative;
    height: 90vh; /* Aumentamos la altura para un mayor impacto visual */
    overflow: hidden;
    display: flex; /* Para centrar el contenido */
    align-items: center;
    justify-content: flex-start;
}

/* --- VIDEO DE FONDO Y OVERLAY --- */
#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Asegura que el video cubra toda la sección */
}

/* Overlay Azul Semi-Transparente */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Color de tu marca (Azul Marino) con 50% de transparencia */
    background-color: rgba(24, 47, 92, 0.5); 
    z-index: 1;
}

/* --- CONTENIDO HERO (Texto y Botón) --- */

/* Deslizamiento desde la izquierda */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Mantenemos tu clase hero-content pero ajustamos el posicionamiento */
.hero-content {
    position: relative; /* Cambia a relative para estar por encima de los fondos */
    z-index: 2;
    /* Ajustes para la animación de entrada */
    left: 15%; 
    transform: translateY(0); /* Eliminamos el translateY para la animación */
    width: auto;
    max-width: 550px;
    padding: 0 15px;
    text-align: left;
    /* La animación se aplica con JS o se define aquí */
    animation: slideInFromLeft 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0; /* Opacidad inicial para la animación */
}

.hero-content.animate-in {
    opacity: 1;
}

.hero-title {
    font-size: 3.5rem; /* Aumentamos el tamaño para impacto */
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 900; /* Extra-bold */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra para mejor lectura */
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Colores de Texto con Jerarquía (Nuevas Clases) */
.hero-content .text-red {
    color: var(--color-accent-red) !important; /* Rojo para calidez/énfasis */
}

.hero-content .text-white {
    color: var(--color-white) !important; /* Blanco para contraste */
}

/* --- BOTÓN CTA DESTACADO --- */
.btn-hero-red {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 15, 15, 0.849);
    border: 2px solid #f5f6f817;
    
}

.btn-hero-red:hover {
    transform: scale(1.1);
    background-color: #dfe3e4;
    color: rgba(9, 6, 187, 0.733);
    box-shadow: 0 6px 20px rgba(14, 2, 2, 0.822);
}

.hero-buttons {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 30px;
}

/* Añadir animación al icono */
.btn-hero-red i {
    transition: transform 0.3s ease;
}

.btn-hero-red:hover i {
    transform: rotate(360deg);
}



/* --- RESPONSIVE AJUSTES --- */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .hero-section { height: 70vh; }
    
    /* Centramos el contenido en móvil para mejor legibilidad */
    .hero-content {
        left: 50%; 
        transform: translateX(-50%);
        max-width: 90%;
        text-align: center;
        padding: 0 20px;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.3rem; }
    
    .btn-hero-cta {
        padding: 12px 30px;
        font-size: 1.1rem;
        display: block; /* Hacemos el botón de ancho completo en móvil */
        margin: 10px auto;
    }
    
    /* Adaptamos la animación para el centrado */
    @keyframes slideInFromLeft {
        0% { opacity: 0; transform: translate(-50%, 20px); }
        100% { opacity: 1; transform: translate(-50%, 0); }
    }
}

/* --- VARIABLES DE COLOR --- */
:root {
  --color-dark-blue: #4A6FA5;
  --color-accent-red: #B02222;
  --color-white: #ffffff;
  --color-gray-bg: #e3e7c983;
}

/* --- SECCIÓN PRINCIPAL --- */
.premium-plans-section {
  padding: 30px 0;
  background: var(--color-white);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 50px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 30px;
  margin-top: -40px;
}

/* --- CONTENEDOR DE TARJETAS --- */
.plans-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* --- TARJETA BASE --- */
.plan-card {
  position: relative;
  width: 450px;     /* ← Puedes modificar el ancho */
  height: 480px;    /* ← Puedes modificar la altura */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(162, 165, 155, 0.6);
  border: 4px solid #737375;
  transition: all 0.5s ease;
  cursor: pointer;
  animation: fadeInUp 1s ease forwards;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgb(0, 0, 0);
}

/* --- IMAGEN DE FONDO --- */
.plan-card[data-plan="kumpa"],
.plan-card[data-plan="dulceespera"] {
  background-size: cover; /* Ajusta al tamaño del card */
  background-position: center;
  background-repeat: no-repeat;
}

/* Puedes modificar el tamaño de imagen aquí: */
.plan-card[data-plan="kumpa"] {
  background-image: url("/img/kumpa%20of.png");
  background-size: 90% 90%; /* ← Ajusta proporciones (cover, contain, 100% 100%) */
}

.plan-card[data-plan="dulceespera"] {
  background-image: url("/img/dulce2.png");
  background-size: 90% 90%;
}

/* Overlay dinámico */
.plan-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  background-color: rgba(15, 15, 15, 0);
  transition: background-color 0.5s ease;
  z-index: 1;
}

.plan-card:hover::before {
  background-color: rgba(5, 5, 5, 0.219);
  backdrop-filter: blur(5px);
  z-index: 2;
 
}

/* --- BADGES (fijos arriba) --- */
.recommended-badge,
.soon-badge {
  position: absolute;
  bottom: 512px;
  right: 20px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-white);
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.recommended-badge {
  background: var(--color-accent-red);
}

.soon-badge {
  background: var(--color-primary);
}

/* --- CONTENIDO --- */
.plan-content {
  position: absolute;
  bottom: -80px;
  width: 100%;
  padding: 25px;
  color: var(--color-white);
  z-index: 2;
  transition: all 0.6s ease;
  backdrop-filter: blur(0px);
}

.plan-card:hover .plan-content {
  bottom: 5%;
  backdrop-filter: blur(2px);
}

/* --- TÍTULOS Y SUBTÍTULOS --- */
.plan-title  {
font-weight: 900;
color: var(--color-primary);
text-shadow: 4px 2px 4px rgb(8, 8, 8);
transition: transform 1.2s ease;
}

.features-title {
  font-weight: 900;
  color: var(--color-accent-red);
  text-shadow: 0 2px 4px rgb(255, 255, 255);
  transition: transform 1.2s ease;
}

/* Ambos inician abajo */
.plan-title {
  font-size: 2rem;
  margin-bottom: 1px;
  transform: translateY(0);
}

.features-title {
  font-size: 1.3rem;
  font-weight: 700;
  transform: translateY(0);
}

/* Ambos suben juntos al hover */
.plan-card:hover .plan-title,
.plan-card:hover .features-title {
  transform: translateY(30px);
}

/* --- LISTA DE BENEFICIOS --- */
.features-list {
  list-style: none;
  margin: 25px 0 0 ;
  padding: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  max-height: 0;
  overflow: hidden;
}

.features-list li {
  padding: 6px 0;
  font-size: 1.09rem;
  color: var(--color-white);
}

.features-list li i {
  color: var(--color-accent-red);
  margin-right: 8px;
}

/* Mostrar lista al hover */
.plan-card:hover .features-list {
  opacity: 1;
  transform: translateY(0);
  max-height: 400px;
}

/* --- BOTÓN CTA --- */
.btn-plan {
  display: inline-block;
  background: var(--color-accent-red);
  color: var(--color-white);
  padding: 7px 10px;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(15, 9, 9, 0.959);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.8s ease;
  margin-top: 10px;
}

.plan-card:hover .btn-plan {
  opacity: 1;
  transform: translateY(0);
}

.btn-plan:hover {
  background: var(--color-dark-blue);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .plans-row {
    flex-direction: column;
    gap: 20px;
  }

  .plan-card {
    width: 90px;
    height: 500px;
  }

  .plan-content {
    position: absolute;
    bottom: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.267);
  }

  .recommended-badge {
    position: absolute;
    bottom: 463px;
    right: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-white);
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  }

  .soon-badge {
    position: absolute;
    bottom: 463px;
    right: 1px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-white);
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  }

  .plan-title,
  .features-title,
  .features-list,
  .btn-plan {
    opacity: 1;
    transform: none;
    max-height: auto;
    margin-bottom: -1%;
  }

  .features-list {
    margin-top: 25px;
  }
}

/* Efecto de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    /* Especialidades  especialidades para poder modificar las veces que quieras */
 /* --- VARIABLES DE COLOR --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
}

/* --- SECCIÓN PRINCIPAL --- */
.especialidades-section {
    padding: 80px 0;
    margin-top: -65px;
    background: var(--color-light-bg);
}

.section-title-esp {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}
.section-subtitle-esp {
    font-size: 1.3rem;
    font-weight: 460;
    color: var(--color-dark); 
    margin-bottom: 40px;
}

/* --- CONTENEDOR DE PESTAÑAS (Para el scroll horizontal en móvil) --- */
.tabs-wrapper {
    overflow-x: auto; /* Permite scroll horizontal */
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1px; /* Espacio para la barra de scroll */
}
.specialities-tabs {
    flex-wrap: nowrap; /* Evita que las pestañas salten de línea */
    border-bottom: 2px solid #e0e6f5; 
    min-width: max-content; /* Fuerza el ancho para el scroll */ 
  
}

.specialities-tabs .nav-link {
    color: var(--color-dark-blue);
    font-weight: 700;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 2px 5px;
    margin: 0 30px;
    transition: all 0.3s ease;
    display: inline-block; /* Crucial para el scroll */
}

/* Estado Activo y Hover */
.specialities-tabs .nav-link.active,
.specialities-tabs .nav-link:hover {
    color: var(--color-dark);
    
}


/* --- TARJETAS DE ESPECIALIDADES (Cards) --- */

.especialidad-card {
    background: var(--color-white);
    border-radius: 35px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 20px rgba(24, 47, 92, 0.788);
    border: 1px solid #474849ab;
    text-align: left;
    text-decoration: none; /* Asegurar que no se subraya si es link */
}

.especialidad-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 18px 35px rgb(60, 62, 65);
}

.especialidad-card img {
    height: 220px; 
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.especialidad-card:hover img {
    transform: scale(1.05);
}

.especialidad-card h5 {
    color: #4A6FA5; 
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: -15px;
    margin-bottom: 10px;
}

.especialidad-card p {
    color: var(--color-dark); 
    margin-bottom: 0;
    padding: 5px 10px 5px 0px;
    font-size: 0.95rem;
}

/* --- ESTILO TARJETA "VER MÁS" (Referencia de imagen) --- */
.card-more-link {
    background: linear-gradient(135deg, var(--color-dark-blue), #0055ff8e);
    color: var(--color-white);
    padding: 30px;
    transition: all 0.3s;
    text-align: center;
}

.card-more-link:hover {
    background: linear-gradient(135deg, var(--color-accent-red), #ff5a5aa9);
    color: var(--color-white);
    transform: translateY(-5px);
}

.card-more-link i {
    font-size: 4rem;
    opacity: 0.8;
}

.card-more-link h5 {
    color: var(--color-white);
    font-weight: 700;
}
.card-more-link p {
    color: var(--color-white);
    font-size: 1rem;
}



/* --- RESPONSIVE AJUSTES ESPECÍFICOS PARA MÓVIL (< 576px) --- */
@media (max-width: 576px) {
    /* 1. Tarjeta Horizontal en Móvil: Imagen Izquierda, Contenido Derecha */
    .especialidad-card {
        display: flex; /* Habilitar flexbox */
        flex-direction: row; /* Colocar elementos en fila */
        text-align: left;
        min-height: 220px; /* Asegurar una altura mínima */
        transform: translateY(0) !important; /* Deshabilitar el hover up */
    }
    .especialidad-card:hover {
        box-shadow: 0 8px 20px rgba(24, 47, 92, 0.788); /* Mantener sombra base */
    }

    .especialidad-card img {
        width: 190px; /* Ancho fijo para la imagen */
        height: 100%; /* Ocupa toda la altura disponible */
        object-fit: cover;
        border-radius: 35px 0 0 35px; /* Redondear solo la parte izquierda */
    }
    
    .especialidad-card .p-4 {
        padding: 15px !important; /* Reducir padding en móvil */
        flex-grow: 1; /* Permite que el contenido ocupe el espacio restante */
    }
    
    .especialidad-card h5 {
        margin-top: 15px; /* Ajustar margen superior del título */
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .especialidad-card p {
        display: -webkit-box;
          /* K-webkit-line-clamp: 5; Limitar el texto a 2 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 1rem;
    }
    
    /* Ajustes para la tarjeta "Ver Más" en móvil */
    .card-more-link {
      flex-direction: row; /* Volver a horizontal */
      width: 100%;
      height: 50%;
      padding: 15px;
    }
    .card-more-link i {
        font-size: 2.5rem;
        margin-top: -50px;
    }
    .card-more-link h5 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    .card-more-link p {
        /* Ocultar el párrafo para ahorrar espacio */
    }
    
}


@media (max-width: 992px) {
    /* Mantenemos el scroll horizontal en tablet */
    .tabs-wrapper {
        overflow-x: auto;

    }
}

@media (min-width: 992px) {
    /* Aseguramos que el contenido esté centrado en desktop */
    .tabs-wrapper {
        overflow-x: hidden;
    }
    
}

/* Reducir espacio entre botones de pestañas en pantallas pequeñas */
@media (max-width: 991.98px) {
  .specialities-tabs .nav-link {
    margin: 0 1px;           /* reducir separación lateral */
    padding: 0.35rem 0.9rem; /* menos padding para ajustarse mejor */
    font-size: 0.95rem;      /* tamaño ligeramente menor */
    white-space: nowrap;     /* evitar saltos de línea inesperados */
  }
  .tabs-wrapper {
    padding-bottom: 6px;     /* menos espacio bajo la fila de pestañas */
  }
}

@media (max-width: 575.98px) {
  .specialities-tabs .nav-link { 
    margin: 0 6px;
    padding: 0.25rem 0.7rem;
    font-size: 0.9rem;
  }
}
/* --- EQUIPO MEDICO --- */
/* --- VARIABLES GLOBALES DE COLOR (Actualizadas) --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
}

/* --- SECCIÓN PRINCIPAL --- */
.medicos-section {
    padding: 80px 0;
    background: var(--color-white);
    margin-top: -69PX;
}

.section-title-dark-blue {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary-dark); 
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}
    
.section-subtitle-dark {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin: 0 auto;
}

/* --- TARJETAS MÉDICO (Grid Design) --- */

.medico-card-grid {
    /* Base del diseño del card en el grid */
    height: 350px; /* Altura fija para consistencia */
    border-radius: 20px; /* Borde más sutil */
    border: 1.5px solid rgba(95, 92, 92, 0.678); /* Borde ligero */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.904); /* Sombra ligera */
    
    /* Configuración para el contenido y overlay */
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
    
.medico-card-grid:hover {
    transform: translateY(-15px); /* Efecto de elevación profesional */
    box-shadow: 0 15px 30px rgb(0, 0, 0); /* Sombra más intensa al hover */
}
    
.medico-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.87);
}
    
.medico-card-grid:hover .medico-image {
    transform: scale(1.05);
    filter: brightness(0.70); /* Oscurece para que el texto resalte */
}

/* --- OVERLAY PROFESIONAL  --- */
.medico-card-grid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado sutil para el contenido */
    background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.801) 90%);
    z-index: 1;
    opacity: 1; /* Siempre visible para el contenido */
    transition: all 0.4s ease;
}

.medico-card-grid:hover::after {
    /* Overlay más amplio y visible al pasar el mouse */
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}
    
.medico-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    padding: 20px 10px;
    transition: all 0.4s ease;
}
    
.medico-card-grid:hover .medico-content {
    padding-bottom: 40px; /* Desplaza el contenido hacia arriba ligeramente en hover */
}
    
.medico-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}
    
.medico-specialty {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--color-accent-red); 
    color: var(--color-white);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
}

/* --- TARJETA "VER TODO" --- */
.card-view-all {
    /* Reutilizamos estilos de Especialidades para consistencia en el "Ver Más" */
    height: 350px; 
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-dark-blue), #5c85c2);
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
}
.card-view-all:hover {
    background: linear-gradient(135deg, var(--color-accent-red), #ff5a5aa9);
    color: var(--color-white);
    transform: translateY(-8px);
}
.card-view-all i {
    font-size: 3rem;
    opacity: 0.8;
}
.card-view-all h5 {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.2rem;
}
.card-view-all p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}


/* --- RESPONSIVE AJUSTES --- */

/* Tablet Grande (992px - 1200px): Muestra 4 por fila */
@media (max-width: 1200px) and (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 25%; /* 4 tarjetas por fila */
    }
}

/* Tablet (768px - 992px): Muestra 3 por fila */
@media (max-width: 991px) and (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.333%; /* 3 tarjetas por fila */
    }
}

/* Móvil (576px - 768px): Muestra 2 por fila */
@media (min-width: 575px) {
    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%; /* 2 tarjetas por fila */
    }
}

@media (max-width: 575px) {
  .scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .row.flex-nowrap {
    flex-wrap: nowrap !important;
    display: flex;
    gap: 0.5rem;
  }

  .row.flex-nowrap > [class*="col-"] {
    flex: 0 0 auto;
    width: 200px; /* o 250px si prefieres tamaño fijo */
  }

  .medico-card-grid {
    height: 300px;
  }

  .medico-name {
    font-size: 1.2rem;
  }

  .medico-specialty {
    font-size: 0.8rem;
  }
/* responsive del boton ver mas "Ver Más" */
.card-view-all {
  height: 300px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-dark-blue), #5c85c2);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
}

.card-view-all:hover {
  background: linear-gradient(135deg, var(--color-accent-red), #ff5a5aa9);
  color: var(--color-white);
  transform: translateY(-8px);
}

.card-view-all i {
  font-size: 2.8rem;
  opacity: 1;
}

.card-view-all h5 {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.5rem;
}

.card-view-all p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

}
    /* Sobre  nuestra clinica clínica modicicaion en cualquier momento */
    
     /* Estilos base */
    .sobre-clinica-section {
      position: relative;
      overflow: hidden;
      background: #182F5C;
      border-radius: 25px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
      margin: 30px;
      ;
    }
    
    /* Imagen de fondo con efecto de paralaje */
     /* Estilos base */
    .sobre-clinica-section {
      position: relative;
      overflow: hidden;
      background: #182F5C;
      border-radius: 25px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
      margin: 30px;
    }
    .text-white {
  color: white !important;
}
    .imagen-fondo {
      position: relative;
      height: 100%;
      min-height: 500px;
      background: 
        linear-gradient(rgba(10, 61, 145, 0.1), 
        rgba(10, 61, 145, 0.1)), 
        url('Slide_one.jpg');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      transform: scale(1.05);
      opacity: 0;
      animation: zoomIn 1.5s ease-out forwards;
      overflow: hidden;
    }
    
    @keyframes zoomIn {
      0% {
        transform: scale(1.1);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }
   /* Elementos decorativos */
    .floating-dots {
      position: absolute;
      top: 50px;
      right: 50px;
      width: 150px;
      height: 150px;
      opacity: 0.1;
      z-index: 0;
      animation: rotate 20s linear infinite;
    }
    
    .dot {
      position: absolute;
      width: 12px;
      height: 12px;
      background: var(--color-primary);
      border-radius: 50%;
      animation: pulse 2s infinite alternate;
    }
    
    @keyframes rotate {
      to {
        transform: rotate(360deg);
      }
    }
    
    @keyframes pulse {
      0% { transform: scale(1); }
      100% { transform: scale(1.5); }
    }
    
    .medical-icon {
      position: absolute;
      top: 30px;
      right: 30px;
      font-size: 6rem;
      color: rgba(26, 109, 255, 0.05);
      z-index: 0;
      animation: float 6s ease-in-out infinite;
    }
    
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-15px); }
    }
    
    /* Responsive */
    @media (max-width: 992px) {
      .imagen-fondo {
        min-height: 400px;
      }
      
      h2 {
        font-size: 2.3rem;
      }
    }
    
    @media (max-width: 768px) {
      .p-5 {
        padding: 2rem !important;
      }
      
      h2 {
        font-size: 2rem;
      }
      
      .d-flex {
        flex-direction: column;
      }
      
      .btn {
        width: 100%;
        justify-content: center;
      }
    }
    
    @media (max-width: 576px) {
      h2 {
        font-size: 1.8rem;
      }
      
      .imagen-fondo {
        min-height: 300px;
      }
    }

/* DISEÑO PARA SEDES  */

    
    /* --- VARIABLES GLOBALES (Asegúrate de que estas estén definidas globalmente) --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
    --color-gray-border: #e6e6e6;
}

/* --- SECCIÓN BASE --- */
.sedes-dynamic-section {
    padding: 80px 0;
    background: var(--color-light-bg);
}

.section-title-blue {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary-dark); 
    margin-bottom: 5px;
}
.section-subtitle-dark {
    font-size: 1.3rem;
    color: var(--color-dark);
}

/* --- COLUMNA DERECHA: IMAGEN DINÁMICA --- */
.sede-image-display {
    position: relative;
    height: 550px; /* Altura fija para la imagen en desktop */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sede-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.sede-main-image.active {
    opacity: 1;
}

.image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
    padding: 20px;
    z-index: 5;
}
.image-overlay-text h5 {
    color: var(--color-white);
    font-weight: 600;
}
#current-sede-name {
    color: var(--color-white);
    font-weight: 700;
}

/* --- COLUMNA IZQUIERDA: ACORDEÓN --- */
.sedes-accordion {
    border: 1px solid var(--color-gray-border);
    border-radius: 15px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.76);
}
.sede-item {
    border-bottom: 1px solid var(--color-gray-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.sede-item:last-child {
    border-bottom: none;
}
.sede-item.active {
    background: var(--color-light-bg);
    border-left: 5px solid var(--color-dark);
    padding-left: 5px;
}
.sede-item:hover {
    background: #fcfcfc;
}

.sede-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sede-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}
.sede-item.active .sede-title {
    color: var(--color-primary);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--color-dark-blue );
}
.sede-item.active .toggle-icon {
    transform: rotate(180deg);
}

.sede-body {
    max-height: 0; /* Controlado por JS para la animación de colapso */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 25px;
}

.sede-info-detail {
    padding: 10px 0 20px 0;
    border-top: 1px dashed var(--color-gray-bg);
}

.sede-info-detail p {
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}
.sede-info-detail p i {
    color: var(--color-dark-blue);
    margin-right: 10px;
}
.sede-info-detail .schedule {
    font-weight: 700;
    color: var(--color-dark);
}

.sede-hours {
    background: rgba(74, 111, 165, 0.08); /* Fondo claro con azul */
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
}

/* --- BOTÓN CÓMO LLEGAR (Link de acción) --- */
.btn-map-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}
.btn-map-link:hover {
    background-color:var(--color-dark);
    transform: translateY(-2px);
}
.btn-map-link i {
    color: var(--color-white) !important;
    margin-right: 8px;
}

/* --- RESPONSIVE --- */

@media (max-width: 991px) {
    .sedes-content-wrapper {
        flex-direction: column-reverse; /* Imagen abajo, Acordeón arriba */
    }
    .sede-image-display {
        height: 300px; /* Reducir altura en móvil/tablet */
        margin-bottom: 25px;
    }
    .col-lg-5, .col-lg-7 {
        width: 100%;
        max-width: 100%;
    }
}
    
/* Convenios conveniso */
   /* --- VARIABLES GLOBALES (Reconfirmadas) --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
}

/* --- TÍTULOS DE SECCIÓN (Reutilización de estilos) --- */
.section-title-blue {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}
.section-subtitle-dark {
    font-size: 1.2rem;
    color: var(--color-dark);
}

/* --- SECCIÓN PRINCIPAL DEL CARRUSEL --- */
.convenios-section {
    padding: 60px 0;
    background: var(--color-white);
    overflow: hidden; /* Oculta los logos fuera del área visible */
}

.convenios-carousel-container {
    width: 100%;
    overflow: hidden; /* Asegura que solo se vea la pista */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.452);
    border-radius: 10px;
    background: var(--color-white);
    padding: 20px 0;
}

.convenios-carousel-track {
    /* Define el ancho total (2 veces el grupo de logos) */
    display: flex;
    width: 200%; 
    animation: scroll-left 35s linear infinite; /* 40s para el desplazamiento completo */
}

/* PAUSA DEL CARRUSEL AL HACER HOVER EN EL CONTENEDOR */
.convenios-carousel-container:hover .convenios-carousel-track {
    animation-play-state: paused;
}

/* --- ANIMACIÓN DE DESPLAZAMIENTO --- */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplaza el 50% del ancho del contenedor (la mitad de los logos) */
        transform: translateX(-190%);
    }
}

/* --- ESTILOS DE LOGO --- */
.logo-group {
    display: flex;
    flex-shrink: 0; /* Evita que el grupo se encoja */
}

.logo-item {
  padding: 0 20px; /* Espacio horizontal entre logos */
    /* Asegura que cada logo ocupe un ancho fijo para que la velocidad sea constante */
    width: 250px; 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    /* Estilos iniciales (Blanco y Negro, Opacidad baja) */
    max-width: 100%;
    max-height: 80px; /* Altura máxima para uniformidad */
    filter: grayscale(100%);
    opacity: 0.9;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

/* --- EFECTO DE HOVER INDIVIDUAL (Se colorea y escala) --- */
.logo-item img:hover {
    filter: grayscale(0%); /* Quita el blanco y negro */
  opacity: 1; /* Aumenta la opacidad (máx 1) */
    transform: scale(1.3); /* Efecto de acercamiento sutil */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .logo-item {
        padding: 0 15px; 
        width: 180px; /* Reducir ancho en móvil */
    }
    .logo-item img {
        max-height: 60px; /* Reducir altura en móvil */
    }
}
    
/* Quiénes Somos para poder modiciar la ideas  */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
    --color-gray-border: #e6e6e6;
}

/* --- SECCIÓN BASE --- */
.about-section {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}

/* Decoraciones (Mantenidas, pero ajustadas para el nuevo layout) */
.corporate-decoration {
    position: absolute;
    background: rgba(1, 5, 12, 0); /* Usando Azul Marino */
    border-radius: 50%;
    z-index: 0;
}
.dec-3 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 20px;
    opacity: 0.7;
}

/* --- COLUMNA DE IMAGEN (CARRUSEL) --- */
.corporate-img-carousel {
    padding: 15px;
    height: 500px; /* Altura fija para el carrusel */
    position: relative;
    z-index: 1;
}

.carousel-images-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.corporate-img {
    position: absolute; /* Para superponerlas */
    top: 0;
    left: 0;
    width: 95%; /* Se ajusta mejor en el contenedor */
    height: 95%; /* Se ajusta mejor en el contenedor */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.678);
    border: 1px solid var(--color-white);
    
    /* Control de visibilidad para el carrusel */
    opacity: 0; 
    transition: opacity 2s ease-in-out; /* Transición suave entre imágenes */
}

.carousel-img.active {
    opacity: 1;
}

/* --- CONTENIDO FIJO --- */
.corporate-content {
    padding: 40px 60px 40px 40px;
}
.corporate-title {
    color: var(--color-primary); 
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px !important;
}
.corporate-title i {
    color: var(--color-accent-red); /* Icono en Rojo Vivo */
}

/* Texto y Destacados */
.corporate-lead {
    color: var(--color-dark);
    font-size: 1.2rem;
    line-height: 1.8;
}
.corporate-highlight {
    color: var(--color-accent-red);
    font-weight: 800;
}
.corporate-experience {
    background: var(--color-primary); /* Fondo Azul Marino */
    color: var(--color-white);
    padding: 1px 5px;
    border-radius: 5px;
    font-weight: 600;
}

/* Historia */
.corporate-story {
    background: var(--color-white);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    background:
    /* borde superior  */
    linear-gradient(
      to right,
      var(--color-accent-red) 0 40%,
      transparent 50% 100%
    ) top left/100% 5px no-repeat,

    /* borde inferior  */
    linear-gradient(
      to left,
      var(--color-accent-red) 0 40%,
      transparent 50% 100%
    ) bottom left/100% 5px no-repeat,

    /* borde izquierdo  */
    linear-gradient(
      to bottom,
      var(--color-primary) 0 40%,
      transparent 50% 100%
    ) left/5px 100% no-repeat,

    /* borde derecho  */
    linear-gradient(
      to top,
      var(--color-primary) 0 40%,
      transparent 50% 100%
    ) right/5px 100% no-repeat;

  padding: 15px; /* espacio para que no tape el contenido */

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.719);
}
.corporate-mission {
    position: relative;
    padding: 15px;
    font-style: italic;
    color: var(--color-dark);
    text-align: center;
    font-weight: 800;
    background: var(--color-light-bg);
    border-radius: 8px;
    margin-top: 15px;
}
.corporate-quote {
  color: var(--color-accent-red);
  font-size: 1.5rem;
  opacity: 0.95;
}

/* Botón */
.quien-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    justify-content: center;
    color: var(--color-white) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.945);
    transition: all 0.3s ease;
    text-decoration: none;
}
.quien-btn:hover {
    background: var(--color-accent-red);
    transform: translateY(-3px);
    
    color: var(--color-white);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .corporate-img-carousel {
        height: 350px;
        padding: 0;
    }
    .corporate-img {
        width: 100%;
        height: 100%;
        margin: 0;
        transform: none;
    }
    .corporate-content {
        padding: 40px 20px;
        text-align: center;
    }
    .corporate-story {
        text-align: left;
    }
}

    /* estilos para blog  */
/* --- VARIABLES GLOBALES (Asegúrate de que estas estén definidas globalmente) --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino */
    --color-accent-red: #B02222; /* Rojo Vivo (Ajustado desde el color del botón) */
    --color-white: #ffffff;
    --color-dark: #2c2b2b;  /* Texto oscuro */
    --color-light-bg: #f8faff; /* Fondo claro */
    --color-text-muted: #6c757d;
}

/* --- ESTILOS GENERALES Y TÍTULOS --- */

.blog-section {
    background: var(--color-light-bg);
}

.section-title-dark-blue {
    font-size: 2.5rem;
    font-weight: 800;
    
    color: var(--color-primary);
}
.section-title-dark-blue i {
    color: var(--color-accent-red);
    
}

.section-subtitle-dark {
    font-size: 1.2rem;
    color: var(--color-dark);
}

/* --- BOTÓN CORPORATIVO (Ajustado a tus estilos previos) --- */

.btn-corporate {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(176, 34, 34, 0.3) !important;
}

.btn-corporate:hover {
    background-color: #9a1d1d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(176, 34, 34, 0.4) !important;
}

/* --- ESTILOS DE TARJETAS --- */

/* 1. Tarjeta Destacada Principal (Featured Card) */
.featured-card {
    border: 1px solid rgb(128, 125, 125);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    transition: transform 0.9s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.678) !important;
}

.featured-img {
    width: 100%;
    height: 100%; /* Asegura que la imagen ocupe todo el espacio en altura en desktop */
    object-fit: cover;
}

.featured-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 15px;
}
.featured-text {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.3;
}

.featured-footer {
    padding-top: 10px;
    border-top: 1px solid #6b6b6b;
    margin-top: 15px;
}

.btn-read-more {
    background: var(--color-accent-red);
    color: var(--color-white);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-read-more:hover {
    background: var(--color-dark-blue);
    transform: translateX(3px);
}

/* 2. Tarjetas Simples (Grid) */
.simple-card {
    border: 1px solid rgba(73, 71, 71, 0.959);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-white);
    transition: transform 0.9s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.simple-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.637) !important;
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-top: 10px;
}
.card-text {
    color: var(--color-dark);
    font-size: 0.9rem;
}

/* Enlaces de lectura y categorías */
.badge-category {
    background-color: var(--color-accent-red);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.text-link-red {
    color: var(--color-accent-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 10px;
}
.text-link-red:hover {
    color: var(--color-text-muted);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 767.98px) {
    .section-title-dark-blue {
        font-size: 2rem;
        text-align: center;
    }
    .section-subtitle-dark {
        text-align: center;
        font-size: 1rem;
    }
    .col-md-4.text-md-end {
        text-align: center !important; /* Centrar el botón "Ver todos" en móvil */
    }
    
    /* En el Destacado, la imagen y el contenido se apilan */
    .featured-card .col-md-6 {
        width: 100%;
    }
    .featured-img {
        height: 250px; /* Altura más manejable en móvil */
    }
    .featured-body {
        padding: 20px;
    }
    .featured-title {
        font-size: 1.5rem;
    }
    
    /* El Destacado Secundario (col-lg-4) ocupará todo el ancho */
    .col-lg-4 {
        width: 100%;
    }
    .simple-card {
        margin-bottom: 20px;
    }
}
/* Footer  pie de  la paguina web */
    /* --- VARIABLES GLOBALES (Asegúrate de que estas estén definidas globalmente) --- */
:root {
    --color-dark-blue: #4A6FA5; /* Azul Marino (Usado como Primary/Secondary base) */
    --color-accent-red: #B02222; /* Rojo Vivo (Usado como Accent) */
    --color-white: #ffffff;
    --color-light-text: rgba(255, 255, 255, 0.85);
}

/* --- ESTILOS DEL FOOTER --- */

.footer {
    /* Usamos gradiente entre el Azul Marino y un tono más oscuro */
    background: linear-gradient(135deg, var(--color-primary) 0%, #3a5c8e 100%);
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* Línea superior con el color de acento */
    background: var(--color-dark); 
}

/* Títulos de las secciones del Footer */
.footer h4, .footer h5 {
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Subrayado de los títulos (Accent Red) */
.footer h4:after, .footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent-red);
    border-radius: 10px;
}

.footer p {
    color: var(--color-white);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estilo del Logo Placeholder (si no hay imagen) */
.logo-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-accent-red);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.932);
}

/* Enlaces de navegación */
.footer-link {
    color: var(--color-light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.footer-logo {
    /* Control del tamaño */
    width: 250px; /* Ancho fijo */
    height: 80px; /* Alto fijo */
    
    /* Mantener proporciones */
    object-fit: contain;
    
    /* Espaciado */
    margin-right: 10px;
    
    /* Efectos visuales */
    filter: brightness(1.1); /* Aclarar si es necesario */
    transition: all 0.3s ease;
}

/* Efecto hover opcional */
.footer-logo:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.footer-link:hover {
    color: var(--color-white);
    padding-left: 8px; /* Pequeño efecto de deslizamiento */
}

/* Iconos de Redes Sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(3, 2, 2, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-text-muted);
    color: var(--color-white); /* Color del icono al hacer hover */
    transform: translateY(-4px); /* Efecto de elevación */
}

/* Mapa de Google Maps */
.map-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    /* Altura fija para mantener el layout, responsive width por Bootstrap */
}

.map-responsive iframe {
    border: none;
    display: block; /* Elimina espacio extra debajo del iframe */
}

/* Estilo para el texto de Copyright y direcciones */
.footer-bottom-text {
    color: rgba(255, 255, 255, 0.7);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    /* Centrar los títulos y el subrayado en móvil */
    .footer h4:after, .footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Centrar los enlaces y hacer que ocupen el 100% del ancho para mejor toque */
    .list-unstyled {
        padding: 0;
    }
    .list-unstyled li {
        display: block;
        margin: 5px 0;
    }
    .footer-link {
        text-align: center;
    }
    .footer-link:hover {
        padding-left: 0; /* Desactivar el deslizamiento en móvil */
    }
    
    /* Centrar los iconos sociales */
    .mt-4 {
        display: flex;
        justify-content: center;
        margin-top: 20px !important;
    }
}
    

/* Estilos del botón flotante */
.btn-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: #25D366;
  color: #fff;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: #1ebe57;
}

/* Animación de pulso */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.btn-whatsapp {
  animation: pulse 2s infinite;
}