/* Skip link: visible solo al foco (accesibilidad) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-dark, #212529);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Zonas AdSense: contenedor y espaciado */
.ad-slot {
    display: block;
    margin: 2rem 0;
}
.ad-slot__inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paleta de colores */
:root {
    --color-primary: #ff5a5f; /* Rojo vibrante */
    --color-secondary: #4bc0c0; /* Verde suave */
    --color-light: #f8f9fa; /* Gris claro */
    --color-dark: #212529; /* Gris oscuro del logo */
    --color-accent: #f1a7a6; /* Rosa suave */
    --color-bg: #e9ecef; /* Fondo suave */
}

/* Efectos de animación de entrada */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para fade-up */
.fade-up {
    animation: fade-up 1s ease-out;
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.9), rgba(0, 123, 255, 0.85));
    color: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card .quote {
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-card .quote i {
    color: #ffd166;
}

body h1, body h2, body h3, body p {
    font-family: 'Poppins', sans-serif;
}

/* Secciones diferenciadas pero con colores coherentes */
section {
    padding: 60px 0;
}

/* Sección de emprendedores - Fondo gris claro */
section#emprendedores {
    background-color: var(--color-light); 
}

/* Sección de noticias - Fondo rosa suave */
section#noticias {
    background-color: var(--color-light); 
}

/* Sección de productos - Fondo suave */
section#productos {
    background-color: var(--color-bg); 
}

/* Títulos de las secciones */
section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 20px;
}

/* Hero */
/*.hero {
    background: url('../images/hero/hero-background.jpg') center center/cover no-repeat;
    height: 70vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}*/

.hero {
    height: 60vh;
    min-height: 450px;
    max-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images_sitio/hero/hiro_web.webp') center/cover no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Legibilidad del texto sobre la imagen del hero */
.hero h1,
.hero h2,
.hero .lead,
.hero .hero-a {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.5);
}
.hero h2 {
    font-weight: 700;
}

/* Responsive para hero */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 300px;
    }
}

/* Compensación automática para navegación con anclas */
section[id] {
    scroll-margin-top: 90px;
}

.fade-up {
    animation: fadeUp 1s ease-in-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para las cards */
.card {
    width: 100%;                
    border: none;
    border-radius: 10px;        
    overflow: hidden;           
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);          
    background-color: var(--color-light);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.card-body {
    padding: 15px;
    flex-grow: 1; /* Hace que el cuerpo de la tarjeta ocupe el espacio restante */
}

.card-img-top {
    width: 100%;
    height: 200px; /* Altura fija para la imagen */
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
    border-radius: 8px;
}

/* .card img {
    width: 100%;             
    height: auto;
    max-height: 300px;           
    object-fit: cover;       
    border-radius: 8px;      
} */

/* Estilos de hover para cards */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Botón de "Leer más" dentro de las cards */
.card .btn {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card .btn:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Estilos de la navbar */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: #212529 !important;
    background: #212529 !important;
    opacity: 1 !important;
}

.navbar {
    padding: 0.5rem;
    border-bottom: 2px solid var(--color-primary); /* Línea de separación debajo del menú */
    font-family: 'Poppins', sans-serif;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1); /* Línea aparece al hacer hover */
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.chip {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #111;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.chip i {
    color: var(--color-primary);
}

.chip:hover,
.chip.active {
    background: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.4);
    color: #0b5ed7;
}

/* Header home - padding sin inline */
.header-home .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hero - "a" con menor peso visual */
.hero-a {
    font-weight: 400;
    opacity: 0.95;
}

/* Footer home */
.footer-home .footer-text {
    font-size: 0.9rem;
}

.footer-home a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-home a:hover,
.footer-home a:focus {
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Formulario de búsqueda */
#buscadorForm {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

#buscadorForm .form-select, #buscadorForm .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#buscadorForm .form-select:focus, #buscadorForm .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#buscadorForm .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#buscadorForm .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Ajustes para las redes sociales en el footer */
footer .social-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

footer .social-links .btn:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Navbar: Logo centrado y ajustado */
.navbar-brand {
    color: white !important;
}

.navbar-brand img {
    width: 150px; /* Ajusta el tamaño de la imagen del logo */
    margin-right: 15px;
}

/* Mejoras en el comportamiento de la navbar en pantallas pequeñas */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 1rem;
    }
}

/* Ajustes en pantallas muy pequeñas */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    #buscadorForm {
        padding: 20px;
    }

    #buscadorForm .form-select, #buscadorForm .form-control, #buscadorForm .btn-primary {
        font-size: 1rem;
        padding: 8px;
    }

    #buscadorForm h3 {
        font-size: 1.5rem;
    }
}

/* Animación para el acordeón */
.collapse {
    transition: height 0.3s ease, opacity 0.3s ease;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
}

.accordion-body {
    background-color: #ffffff;
    border-top: 1px solid #ddd;
}


/* Drawer de Noticias */
.drawer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 90vw;
    max-width: 1200px;
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 0;
    overflow-y: auto;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.drawer.open {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer .drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.drawer .drawer-body {
    padding: 20px 28px;
    overflow-y: auto;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.drawer-open {
    overflow: hidden;
}

/* Drawer responsivo para mobile */
@media (max-width: 768px) {
    .drawer {
        width: 100vw;
        max-width: 100%;
        border-radius: 0;
        height: 100%;
        top: 0;
    }
    
    .drawer.open {
        transform: translateX(-50%) scale(1);
    }
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #343a40;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: color 0.3s ease;
    z-index: 1000;
}

.close-btn:hover {
    color: #007bff; /* Cambio de color al pasar el ratón */
}

/* Drawer de Emprendimientos */
.emp-drawer-shell {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 12px 18px 24px;
    box-sizing: border-box;
}

.emp-drawer-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 260px;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.3)), var(--emp-hero-img, linear-gradient(135deg, #0d6efd, #6f42c1));
    background-size: cover;
    background-position: center;
    color: #fff;
}

.emp-drawer-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: brightness(0.75);
}

.emp-drawer-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.emp-drawer-hero__eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.emp-drawer-hero__title {
    margin: 0;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.emp-drawer-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.emp-drawer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.emp-drawer-body {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.emp-drawer-body .content-text {
    line-height: 1.6;
    width: 100%;
}

/* Drawer de Productos - Galería */
.prod-drawer-gallery-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
}

.prod-drawer-carousel {
    position: relative;
    min-height: 300px;
    max-height: 450px;
    background: #000;
}

.prod-drawer-carousel-inner {
    height: 100%;
}

.prod-drawer-carousel-img {
    object-fit: contain;
    height: 450px;
    max-height: 450px;
    width: 100%;
    background: #000;
}

/* Hero estático para productos con una sola imagen */
#prodDrawerHero.emp-drawer-hero {
    min-height: 300px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

/* Fondo blur de la imagen del producto */
#prodDrawerHero.emp-drawer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--prod-hero-img, none);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 0;
}

/* Imagen principal del producto completa */
#prodDrawerHero .prod-hero-main-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Overlay del hero - posicionado absoluto en la parte inferior */
#prodDrawerHero .emp-drawer-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    height: 70%;
}

/* Contenido del hero - posicionado absoluto */
#prodDrawerHero .emp-drawer-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    max-width: 100%;
    z-index: 2;
}

/* Hero blur para el drawer de noticias */
#noticiaDrawerHero.emp-drawer-hero {
    min-height: 220px;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

#noticiaDrawerHero.emp-drawer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--noticia-hero-img, none);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    z-index: 0;
}

#noticiaDrawerHero .prod-hero-main-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#noticiaDrawerHero .emp-drawer-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    height: 65%;
}

#noticiaDrawerHero .emp-drawer-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    max-width: 100%;
    z-index: 2;
}

@media (max-width: 768px) {
    #noticiaDrawerHero.emp-drawer-hero {
        min-height: 180px;
        max-height: 260px;
    }
    
    #noticiaDrawerHero .prod-hero-main-img {
        max-height: 260px;
    }
    
    #noticiaDrawerHero .emp-drawer-hero__content {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    #noticiaDrawerHero.emp-drawer-hero {
        min-height: 160px;
        max-height: 230px;
        border-radius: 10px;
    }
    
    #noticiaDrawerHero .prod-hero-main-img {
        max-height: 220px;
    }
    
    #noticiaDrawerHero .emp-drawer-hero__content {
        padding: 12px;
        gap: 6px;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    #prodDrawerHero.emp-drawer-hero {
        min-height: 250px;
        max-height: 350px;
    }
    
    #prodDrawerHero .prod-hero-main-img {
        max-height: 350px;
    }
    
    #prodDrawerHero .emp-drawer-hero__content {
        padding: 16px;
    }
    
    .emp-drawer-hero__title {
        font-size: 1.5rem;
    }
    
    .emp-drawer-hero__subtitle {
        font-size: 0.9rem;
    }
}

/* Responsive - Móvil */
@media (max-width: 480px) {
    #prodDrawerHero.emp-drawer-hero {
        min-height: 240px;
        max-height: 340px;
        border-radius: 10px;
    }
    
    #prodDrawerHero .prod-hero-main-img {
        max-height: 280px;
    }
    
    #prodDrawerHero .emp-drawer-hero__content {
        padding: 12px;
        gap: 6px;
    }
    
    .emp-drawer-hero__eyebrow {
        font-size: 0.65rem;
    }
    
    .emp-drawer-hero__title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .emp-drawer-hero__subtitle {
        font-size: 0.75rem;
    }
    
    .emp-drawer-cta {
        gap: 6px;
        margin-top: 6px;
    }
    
    .emp-drawer-cta .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }
}

/* Hero blur para el drawer de emprendimiento */
#empDrawerHero.emp-drawer-hero {
    min-height: 300px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

#empDrawerHero.emp-drawer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--emp-hero-img, none);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.05);
    z-index: 0;
}

#empDrawerHero .prod-hero-main-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#empDrawerHero .emp-drawer-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    height: 70%;
}

#empDrawerHero .emp-drawer-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    max-width: 100%;
    z-index: 2;
}

@media (max-width: 768px) {
    #empDrawerHero.emp-drawer-hero {
        min-height: 250px;
        max-height: 350px;
    }
    
    #empDrawerHero .prod-hero-main-img {
        max-height: 350px;
    }
    
    #empDrawerHero .emp-drawer-hero__content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    #empDrawerHero.emp-drawer-hero {
        min-height: 240px;
        max-height: 340px;
        border-radius: 10px;
    }
    
    #empDrawerHero .prod-hero-main-img {
        max-height: 280px;
    }
    
    #empDrawerHero .emp-drawer-hero__content {
        padding: 12px;
        gap: 6px;
    }
}

.prod-drawer-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 28px;
    color: #fff;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.prod-drawer-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.prod-drawer-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.prod-drawer-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.prod-drawer-thumbnails {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.prod-drawer-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    opacity: 0.7;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prod-drawer-thumbnail:hover {
    opacity: 1;
    border-color: rgba(13, 110, 253, 0.6);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.prod-drawer-thumbnail.active {
    opacity: 1;
    border-color: #0d6efd;
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.prod-drawer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controles del carrusel de productos - mejor visibilidad */
.prod-drawer-carousel .carousel-control-prev,
.prod-drawer-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.prod-drawer-carousel .carousel-control-prev {
    left: 16px;
}

.prod-drawer-carousel .carousel-control-next {
    right: 16px;
}

.prod-drawer-carousel .carousel-control-prev:hover,
.prod-drawer-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prod-drawer-carousel .carousel-control-prev-icon,
.prod-drawer-carousel .carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .prod-drawer-carousel {
        min-height: 250px;
        max-height: 350px;
    }
    
    .prod-drawer-carousel-img {
        height: 350px;
        max-height: 350px;
    }
    
    #prodDrawerHero.emp-drawer-hero {
        min-height: 250px;
        max-height: 350px;
    }
    
    .prod-drawer-info-overlay {
        padding: 18px;
    }
    
    .prod-drawer-title {
        font-size: 1.35rem;
    }
    
    .prod-drawer-thumbnail {
        width: 60px;
        height: 60px;
    }
}

.emp-card__actions {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .emp-drawer-hero__content {
        padding: 20px;
    }

    .emp-drawer-shell {
        padding: 12px;
    }
}

.pagination-sticky {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== ESTILOS PARA ARTÍCULOS DE NOTICIAS ==================== */
.noticia-contenido {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.noticia-contenido h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #212529;
    text-align: left;
}

.noticia-contenido .text-muted {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #6c757d;
    font-style: italic;
}

.noticia-contenido img {
    display: block;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    height: auto;
}

.noticia-contenido .content-text {
    font-size: 1.1rem;
    color: #343a40;
    line-height: 1.9;
}

.noticia-contenido .content-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.noticia-contenido .content-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #212529;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
}

.noticia-contenido .content-text strong {
    font-weight: 700;
    color: #212529;
}

.noticia-contenido .content-text em {
    font-style: italic;
    color: #495057;
}

.noticia-contenido .content-text ul,
.noticia-contenido .content-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.noticia-contenido .content-text li {
    margin-bottom: 0.8rem;
    color: #343a40;
}

.noticia-contenido .content-text blockquote {
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
}

/* Responsivo para móvil */
@media (max-width: 768px) {
    .noticia-contenido {
        padding: 15px;
    }

    .noticia-contenido h2 {
        font-size: 1.6rem;
    }

    .noticia-contenido .content-text {
        font-size: 1rem;
    }

    .noticia-contenido .content-text h3 {
        font-size: 1.3rem;
    }
}

pre {
    color: #343a40;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    overflow-x: auto;
    font-family: 'Poppins', sans-serif;
    white-space: pre-wrap; /* Permite que el texto se ajuste */
    word-wrap: break-word;
    text-align: left;
}

.product-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card .card-title {
    font-weight: 700;
}

.product-card .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card .meta .badge {
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .btn {
    width: 100%;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.zoom-hover {
  overflow: hidden;
  display: inline-block;
}

.zoom-hover img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
}

.zoom-hover:hover img {
  transform: scale(1.1);
}
/* Breadcrumb Dark Mode - Para navegación en headers oscuros */
.breadcrumb-dark {
  background-color: transparent;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
}

.breadcrumb-dark .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-dark .breadcrumb-item a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-dark .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-dark .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

.skeleton-card {
    position: relative;
    overflow: hidden;
    background: #f6f7f8;
    border-radius: 12px;
    min-height: 280px;
    box-shadow: inset 0 0 0 1px #f0f0f0;
}

.skeleton-line {
    height: 14px;
    margin: 10px 15px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
/* Estilos para drawer (noticiaDrawer) en modo oscuro */
body.dark-mode .drawer {
  background: #1f1f1f !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer .drawer-content {
  background: #1f1f1f !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer .drawer-body {
  background: #1c1c1e !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer h2,
body.dark-mode .drawer h3,
body.dark-mode .drawer h4 {
  color: #ffffff !important;
}

body.dark-mode .drawer p,
body.dark-mode .drawer .content-text {
  color: #e0e0e0 !important;
}

body.dark-mode .close-btn {
  color: #e0e0e0 !important;
}

body.dark-mode .close-btn:hover {
  color: #0056B3 !important;
}

/* Mejoras adicionales para noticiaDrawer en dark-mode */
body.dark-mode #noticiaDrawer {
  background: #1f1f1f !important;
  color: #e0e0e0 !important;
  border-radius: 12px;
}

body.dark-mode #noticiaDrawer .drawer-body {
  background: #1c1c1e !important;
}

body.dark-mode #noticiaDrawer h2,
body.dark-mode #noticiaDrawer h3,
body.dark-mode #noticiaDrawer h4 {
  color: #ffffff !important;
  margin-bottom: 1rem;
}

body.dark-mode #noticiaDrawer p,
body.dark-mode #noticiaDrawer .content-text,
body.dark-mode #noticiaDrawer span {
  color: #e0e0e0 !important;
}

body.dark-mode #noticiaDrawer img {
  border-radius: 8px;
  border: 1px solid #444;
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

body.dark-mode #noticiaDrawer iframe {
  border-radius: 8px;
  border: 1px solid #444 !important;
}

body.dark-mode #noticiaDrawer a {
  color: #67aef8 !important;
  text-decoration: none;
}

body.dark-mode #noticiaDrawer a:hover {
  color: #9fd0ff !important;
  text-decoration: underline;
}

body.dark-mode #noticiaDrawer pre {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
}

body.dark-mode #noticiaDrawer code {
  color: #ffd966 !important;
  background: #2a2a2a !important;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

body.dark-mode #noticiaDrawer blockquote {
  border-left: 4px solid #0056B3;
  padding-left: 1rem;
  color: #b0d4ff;
  font-style: italic;
  margin: 1rem 0;
}

body.dark-mode #noticiaDrawer hr {
  border-color: #444 !important;
}

/* Forzar background oscuro del drawer en dark-mode - FIXES */
body.dark-mode .drawer,
body.dark-mode #noticiaDrawer {
  background-color: #1f1f1f !important;
  background: #1f1f1f !important;
}

body.dark-mode .drawer-content,
body.dark-mode #noticiaDrawer .drawer-content {
  background-color: #1c1c1e !important;
  background: #1c1c1e !important;
}

body.dark-mode .drawer-body,
body.dark-mode #noticiaDrawer .drawer-body {
  background-color: #1c1c1e !important;
  background: #1c1c1e !important;
}

/* Sobrescribir clases de Bootstrap en dark-mode para drawer */
body.dark-mode #noticiaDrawer .text-primary {
  color: #0056B3 !important;
}

body.dark-mode #noticiaDrawer .text-muted {
  color: #9ca3af !important;
}

body.dark-mode #noticiaDrawer .text-secondary {
  color: #b0d4ff !important;
}

body.dark-mode #noticiaDrawer .text-light {
  color: #e0e0e0 !important;
}

body.dark-mode #noticiaDrawer .text-white {
  color: #ffffff !important;
}

body.dark-mode #noticiaDrawer .bg-light {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
}

body.dark-mode #noticiaDrawer .bg-white {
  background-color: #1c1c1e !important;
  color: #e0e0e0 !important;
}

body.dark-mode #noticiaDrawer .lead {
  color: #e0e0e0 !important;
}

body.dark-mode #noticiaDrawer .display-6 {
  color: #ffffff !important;
}

body.dark-mode #noticiaDrawer .noticia-contenido {
  background: #1c1c1e !important;
  color: #e0e0e0 !important;
}

/* Asegurar que todo el contenido dentro sea visible */
body.dark-mode #noticiaDrawer * {
  background-color: inherit !important;
}

body.dark-mode #noticiaDrawer p,
body.dark-mode #noticiaDrawer span,
body.dark-mode #noticiaDrawer div:not([class*='bg-']) {
  color: #e0e0e0 !important;
}
