/* Estilos generales */
:root {
    --header-offset: 140px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: #f8f9fa;
    color: #333;
}

@media (max-width: 991px) {
    :root {
        --header-offset: 160px;
    }
}

/* ===== DARK MODE TOGGLE ===== */
/* Estilos base del toggle para que se vea igual en modo claro y oscuro */
.navbar-nav .nav-item.d-flex {
    padding: 0;
    margin: 0;
}

#darkModeToggleEmpresa {
    cursor: pointer;
    width: 3rem;
    height: 1.5rem;
    margin: 0;
}

#darkModeToggleEmpresa:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.navbar-nav .nav-item .form-check-label {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1;
    font-size: 1.25rem;
}

.navbar-nav .nav-item .form-check-label i {
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item .form-check-label:hover i {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item.d-flex {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 0;
    }
}
/* ===== END DARK MODE TOGGLE ===== */

/* Encabezado */
.header {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Logo en el menú */
.menu-logo {
    max-width: 150px;
    /* Ajusta el tamaño del logo */
    height: auto;
}

/* Compensación automática para navegación con anclas */
section[id] {
    scroll-margin-top: 90px;
}

/* Sección Hero */
.hero {
    height: 65vh;
    min-height: 500px;
    max-height: 750px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(52, 58, 64, 0.8)), url('../images_sitio/hero/hero-background.jpg') 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;
    position: relative;
    z-index: 1;
}

/* Responsive para hero */
@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 400px;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }
}

.hero-details {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.5rem;
}

/* Banner promocional Portal Emprendedor */
.portal-banner-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 24px;
}

.portal-banner {
    width: min(980px, 92%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    animation: portal-banner-pulse 3.2s ease-in-out infinite, portal-banner-float 4.8s ease-in-out infinite;
}

.portal-banner::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: portal-banner-shine 6s ease-in-out infinite;
}

.portal-banner__label {
    font-weight: 600;
    font-size: 15px;
}

.portal-banner__cta {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.portal-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Equipo empresa */
.equipo-showcase {
    position: relative;
}

.equipo-showcase__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    justify-items: center;
    margin-bottom: 22px;
}

.equipo-showcase__intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.equipo-showcase__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
}

.equipo-showcase__title {
    font-size: clamp(1.55rem, 1.9vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #14213d;
    margin-bottom: 8px;
}

.equipo-showcase__text {
    margin: 0;
    max-width: 680px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #516074;
}

.equipo-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 18px;
}

.equipo-showcase__grid--solo {
    grid-template-columns: minmax(0, 1fr);
}

.equipo-showcase__stack {
    display: grid;
    gap: 14px;
}

.equipo-showcase__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    position: relative;
}

.equipo-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.98));
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.08);
}

.equipo-card--featured {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
    min-height: 100%;
}

.equipo-card--compact {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 138px;
}

.equipo-card__media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe9f3, #fef6e4);
}

.equipo-card__media--featured {
    min-height: 320px;
}

.equipo-card__media--compact {
    min-height: 100%;
}

.equipo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipo-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(20, 33, 61, 0.78);
}

.equipo-card__placeholder--compact {
    font-size: 1.55rem;
}

.equipo-card__body {
    padding: 18px;
}

.equipo-card__body--featured {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equipo-card__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.68rem;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #7c4d00;
    background: rgba(255, 193, 7, 0.18);
}

.equipo-card__name {
    margin: 0;
    font-size: clamp(1.3rem, 1.6vw, 1.9rem);
    font-weight: 700;
    color: #14213d;
}

.equipo-card__name--compact {
    font-size: 1.05rem;
}

.equipo-card__role {
    margin: 6px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0d6efd;
}

.equipo-card__role--compact {
    font-size: 0.88rem;
}

.equipo-card__bio {
    margin: 12px 0 0;
    color: #516074;
    font-size: 0.95rem;
    line-height: 1.65;
}

.equipo-card__bio--compact {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.equipo-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.equipo-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    color: #14213d;
    background: rgba(13, 110, 253, 0.08);
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.equipo-card__link:hover {
    transform: translateY(-1px);
    background: rgba(13, 110, 253, 0.16);
}

/* Grid Multi-columna sin destacado */
.equipo-showcase__grid--sin-destacado {
    grid-template-columns: minmax(0, 1fr);
}

.equipo-showcase__stack {
    display: grid;
    gap: 14px;
}

.equipo-showcase__stack--paginated {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.equipo-showcase__stack--featured-paginated {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
}

.equipo-card--compact {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 138px;
}

/* Stack normal: mostrar todos (excepto variantes paginadas) */
.equipo-showcase__stack:not(.equipo-showcase__stack--paginated):not(.equipo-showcase__stack--featured-paginated) .equipo-card--compact {
    display: grid;
}

/* Stack paginated: control de visibilidad por página */
.equipo-showcase__stack--paginated .equipo-card--compact {
    display: none;
}

.equipo-showcase__stack--paginated .equipo-card--compact.equipo-stack-visible {
    display: grid;
}

.equipo-showcase__stack--featured-paginated .equipo-card--compact {
    display: none;
}

.equipo-showcase__stack--featured-paginated .equipo-card--compact.equipo-stack-visible {
    display: grid;
}

/* Paginación */
.equipo-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 0;
}

.equipo-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #14213d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.equipo-pagination__btn:hover {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.5);
}

.equipo-pagination__btn--active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.equipo-pagination--arrows {
    margin-top: 0;
    pointer-events: none;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: -18px;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
}

.equipo-pagination__arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 6px 16px rgba(20, 33, 61, 0.12);
    transition: all 0.2s ease;
}

.equipo-pagination__arrow:hover {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.55);
}

.equipo-pagination__arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.equipo-showcase__grid--sin-destacado {
    position: relative;
}

@media (max-width: 991px) {
    .equipo-showcase__stack--paginated {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipo-showcase__header,
    .equipo-showcase__grid,
    .equipo-card--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .equipo-card__media--featured {
        min-height: 260px;
    }

    .equipo-pagination--arrows {
        position: static;
        transform: none;
        margin-top: 12px;
        justify-content: center;
        gap: 12px;
        pointer-events: auto;
    }
}

@media (max-width: 767px) {
    .equipo-showcase__stack--paginated {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 12px;
    }

    .equipo-card--compact {
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 122px;
    }

    .equipo-card__body,
    .equipo-card__body--featured {
        padding: 16px;
    }

    .equipo-showcase__header {
        margin-bottom: 18px;
    }

    .equipo-showcase__title {
        font-size: 1.45rem;
    }

    .equipo-pagination {
        gap: 8px;
        margin-top: 24px;
    }

    .equipo-pagination__btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@keyframes portal-banner-pulse {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 18px rgba(102, 126, 234, 0.28);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
        transform: scale(1.006);
    }
}

@keyframes portal-banner-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes portal-banner-shine {
    0%, 65% { transform: translateX(-140%) rotate(25deg); opacity: 0; }
    75% { opacity: 0.6; }
    100% { transform: translateX(300%) rotate(25deg); opacity: 0; }
}

@media (max-width: 768px) {
    .portal-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Botón primario */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Carrusel */
.carousel-inner img {
    border-radius: 10px;
    object-fit: contain;
    /* Ajusta la imagen sin recortarla */
    width: 100%;
    /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: 100%;
}

/* .card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
} */

/* Tarjetas de Noticias */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Evita que la imagen sobresalga */
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 200px;
    /* Altura fija para la imagen */
    object-fit: cover;
    /* Asegura que la imagen cubra el área sin deformarse */
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    /* Hace que el cuerpo de la tarjeta ocupe el espacio restante */
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer UX */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-copy {
    margin-bottom: 6px;
    font-size: 14px;
    color: #dfe3ea;
}

.site-footer .footer-cta {
    margin: 0;
    font-size: 14px;
    color: #d8dee8;
    line-height: 1.6;
}

.site-footer .footer-cta a {
    color: #9fb2ff;
    text-decoration: none;
    font-weight: 600;
}

.site-footer .footer-cta a:hover {
    text-decoration: underline;
    color: #c7d2ff;
}

.site-footer .footer-icon {
    margin-right: 6px;
    color: #a9b8ff;
}

.site-footer .footer-sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 576px) {
    .site-footer .footer-cta {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .site-footer .footer-sep {
        display: none;
    }
}

/* Drawer de Noticias */
.drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    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: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Drawer responsivo para mobile */
@media (max-width: 768px) {
    .drawer {
        width: 100vw;
        max-width: 100%;
        border-radius: 0;
        height: 100%;
        max-height: 100vh;
        top: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.9);
    }
    
    .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;
}

.close-btn:hover {
    color: #007bff;
}

/* ==================== 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;
    }
}

/* Pie de Página */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}


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;
}

#map {
    width: 100%;
    height: -webkit-fill-available;
}

/* ================================================
   CONTACT CARD & MAP IMPROVEMENTS
   ================================================ */

/* Tarjeta de contacto mejorada */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-location { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
}

.icon-phone { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    color: white; 
}

.icon-email { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    color: white; 
}

.icon-web { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
    color: white; 
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
    word-break: break-word;
}

.contact-value a {
    color: #007bff;
}

.contact-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.map-container {
    position: relative;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-container #map {
    width: 100%;
    height: 100%;
}

.open-maps-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: white;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.open-maps-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================================
   UBICACIÓN: MAPA ARRIBA + CARDS AGRUPADAS
   ================================================ */

.ubicacion-map-wrapper {
    width: 100%;
}

.ubicacion-map-wrapper .map-container {
    margin-bottom: 0;
}

.ubicacion-cards-wrapper {
    margin-top: 0;
}

/* Compactar cards solo cuando hay sucursales */
.ubicacion-cards-wrapper .contact-card {
    padding: 1.05rem;
    border-radius: 14px;
}

.ubicacion-cards-wrapper .contact-item {
    padding: 0.45rem 0;
}

.ubicacion-cards-wrapper .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin-right: 0.6rem;
}

.ubicacion-cards-wrapper .contact-label {
    font-size: 0.78rem;
}

.ubicacion-cards-wrapper .contact-value {
    font-size: 0.92rem;
}

.ubicacion-cards-wrapper .contact-actions {
    margin-top: 0.75rem;
    gap: 0.35rem;
}

.ubicacion-cards-wrapper .casa-matriz-badge {
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}

.ubicacion-cards-wrapper .casa-matriz-card__title {
    font-size: 1rem;
    margin: 0 0 0.6rem;
}

.ubicacion-cards-wrapper .sucursal-card {
    padding: 1rem;
}

.ubicacion-cards-wrapper .sucursal-card__icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    margin: 0 auto 0.6rem;
}

.ubicacion-cards-wrapper .sucursal-card__title {
    font-size: 0.95rem;
    margin: 0 0 0.6rem;
}

.ubicacion-cards-wrapper .sucursal-card__actions {
    padding-top: 0.6rem;
}

/* Casa Matriz: tarjeta destacada */
.casa-matriz-card {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.casa-matriz-card:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.28);
}

.casa-matriz-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
}

.casa-matriz-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.casa-matriz-card .contact-item:first-of-type {
    padding-top: 0;
}

.casa-matriz-card__actions {
    margin-top: auto;
}

/* Sucursales: mismas cards, agrupadas en la misma fila */
.sucursales-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sucursales-section .h4 {
    color: #212529;
    font-weight: 600;
}

.sucursal-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sucursal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sucursal-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sucursal-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem;
    text-align: center;
    line-height: 1.3;
}

.sucursal-card .contact-item.sucursal-card__item {
    padding: 0.6rem 0;
}

.sucursal-card .contact-item.sucursal-card__item:last-of-type {
    border-bottom: none;
}

.sucursal-card__link {
    color: #007bff;
    text-decoration: none;
    word-break: break-word;
}

.sucursal-card__link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.sucursal-card__actions {
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 991px) {
    .map-container {
        height: 350px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
    }

    .sucursales-section .h4 {
        font-size: 1.25rem;
    }

    .sucursal-card {
        padding: 1.25rem;
    }

    .sucursal-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .sucursal-card__title {
        font-size: 1rem;
    }
}



.product-card {
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: 250px;
    /* Altura fija para uniformidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.card.producto.agotado {
    opacity: 0.5;
}

.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
}

.soldout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.6);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.soldout-badge {
    background-color: #9e9e9e;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #343a40;
    /* border-bottom: 3px solid #007bff;
    display: inline-block; */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

.section-light:not(.section-tone) {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.section-dark:not(.section-tone) {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6);
    /* De blanco a un gris claro */
    color: #333;
    padding: 60px 20px;
}

.section-dark:not(.section-tone) h2 {
    color: #007bff;
    /* Resalta los títulos en azul */
    border-bottom-color: #0056b3;
    /* Un azul más oscuro para diferenciar */
}

.section-tone {
    position: relative;
    overflow: hidden;
    background: var(--section-bg);
}

.section-tone::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--section-watermark) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    pointer-events: none;
}

.section-tone > .container,
.section-tone > h2 {
    position: relative;
    z-index: 1;
}

.section-tone--1 {
    --section-bg: linear-gradient(135deg, #f3f6fb 0%, #e2e8f3 100%);
    --section-watermark: rgba(30, 64, 175, 0.12);
}

.section-tone--2 {
    --section-bg: linear-gradient(135deg, #eef2f8 0%, #dbe3f0 100%);
    --section-watermark: rgba(30, 64, 175, 0.12);
}

.section-tone--3 {
    --section-bg: linear-gradient(135deg, #edf2f7 0%, #d7e0ee 100%);
    --section-watermark: rgba(15, 23, 42, 0.12);
}

.section-tone--4 {
    --section-bg: linear-gradient(135deg, #ecf2f9 0%, #d5dfef 100%);
    --section-watermark: rgba(30, 58, 138, 0.12);
}

.section-tone--5 {
    --section-bg: linear-gradient(135deg, #e9eff7 0%, #d2dcea 100%);
    --section-watermark: rgba(23, 37, 84, 0.12);
}

.section-tone--6 {
    --section-bg: linear-gradient(135deg, #edf2f8 0%, #dbe5f1 100%);
    --section-watermark: rgba(30, 64, 175, 0.12);
}

.section-tone--7 {
    --section-bg: linear-gradient(135deg, #e6edf6 0%, #cfd9ea 100%);
    --section-watermark: rgba(15, 23, 42, 0.12);
}


.section-divider {
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin: 20px auto;
}

/* Resena premium */
.resena-premium {
    position: relative;
}

.resena-premium__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.75rem;
    color: #5b6b85;
    margin-bottom: 0.5rem;
}

.resena-premium__title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 1rem;
}

.resena-premium__lede {
    font-size: 1.05rem;
    color: #5b6b85;
    line-height: 1.7;
    margin: 0;
}

.resena-premium__body {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(0, 123, 255, 0.25);
    color: #2e3a52;
    line-height: 1.9;
    font-size: 1rem;
}

.resena-premium__content-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.resena-premium__social-proof {
    background: linear-gradient(135deg, rgba(31, 42, 68, 0.06), rgba(36, 77, 122, 0.12));
    border: 1px solid rgba(44, 92, 148, 0.18);
    border-radius: 16px;
    padding: 0.85rem;
}

.resena-premium__social-proof--full {
    width: 100%;
    padding: 1rem;
}

.resena-premium__social-proof--full .testimonial-card {
    width: 100%;
}

.resena-premium__social-proof .testimonial-card {
    margin: 0;
    padding: 1rem;
}

.resena-premium__social-proof .quote {
    font-size: 0.96rem;
    line-height: 1.5;
}

.resena-premium__social-proof .testimonial-rating i.fa-star {
    font-size: 0.95rem;
}

.resena-premium__social-proof .carousel-item {
    min-height: 145px;
}

.resena-premium__social-proof .btn-light {
    padding: 0.22rem 0.46rem;
}

@media (max-width: 991px) {
    .resena-premium__content-grid {
        grid-template-columns: 1fr;
    }

    .resena-premium__body {
        padding-left: 0;
        border-left: none;
    }

    .resena-premium__social-proof {
        margin-top: 0.25rem;
    }
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.portfolio img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portfolio img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.modal-content {
    background: black;
}

.carousel-item img {
    width: 100%;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
}

.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);
}

/* #gallery .video-item {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#gallery .video-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
#gallery .video-item label {
  font-weight: 500;
  color: #555;
}
#gallery .video-item input,
#gallery .video-item textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}
#gallery .btn-eliminar {
  background: transparent;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 20px;
} */

/* ================================================
   GALERÍA DE VIDEOS YOUTUBE - RESPONSIVE
   ================================================ */

/* Contenedor principal */
.video-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Reproductor principal con aspect ratio 16:9 */
.main-video {
    width: 100%;
    margin-bottom: 30px;
}

.main-video .player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #000;
}

.main-video .player-wrapper > div,
.main-video .player-wrapper iframe,
#playerGallery {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 12px;
}

/* Lista de miniaturas en grid responsive */
.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

/* Scrollbar personalizado para la lista de videos */
.video-list::-webkit-scrollbar {
    width: 8px;
}

.video-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.video-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.video-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cada item de video */
.video-item {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Estado activo del video */
.video-item.active {
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.video-item.active .video-title {
    color: #0d6efd;
    font-weight: 600;
}

/* Miniatura del video */
.video-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #e0e0e0;
}

/* Título del video */
.video-title {
    font-size: 13px;
    font-weight: 500;
    color: #2c2c2c;
    text-align: left;
    margin-top: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== GALERÍAS ESPECIALIZADAS ===== */
#galerias-especializadas {
    position: relative;
    z-index: 1;
}

#galerias-especializadas .container {
    position: relative;
    z-index: 2;
}

#galerias-especializadas .galeria-card-evento {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
}

#galerias-especializadas .galeria-card-evento .card-compact__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #212529;
}

#galerias-especializadas .galeria-card-evento .card-compact__description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6c757d;
}

#galerias-especializadas .galeria-card-evento .card-compact__meta .badge {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

#galerias-especializadas .galeria-card-evento .card-compact__price-badge {
    color: #0a58ca;
    background: #e7f1ff;
    border-color: rgba(10, 88, 202, 0.25);
}

#galerias-especializadas .galeria-card-evento .card-compact__actions .btn {
    width: 100%;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

/* Tablets grandes y desktop pequeño (768px - 1024px) */
@media (max-width: 1024px) {
    .video-gallery {
        max-width: 960px;
        padding: 30px 15px;
    }
    
    .video-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

/* Tablets (600px - 768px) */
@media (max-width: 768px) {
    .video-gallery {
        padding: 20px 10px;
    }
    
    .main-video {
        margin-bottom: 20px;
    }
    
    .video-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .video-title {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* Móviles (hasta 600px) */
@media (max-width: 600px) {
    .video-gallery {
        padding: 15px 5px;
    }
    
    .main-video > div {
        border-radius: 8px;
    }
    
    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-item {
        padding: 8px;
    }
    
    .video-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

/* Móviles muy pequeños (hasta 400px) */
@media (max-width: 400px) {
    .video-list {
        grid-template-columns: 1fr;
    }
    
    .video-item {
        max-width: 280px;
        margin: 0 auto;
    }
}

.video-fluid {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    /* Opcional */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Opcional */
}

.video-fluid iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #343a40;
    margin: 0;
    padding: 8px 0;
}

.content-description {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: #555;
    font-size: 14px;
    padding: 15px;
}

.content-detail {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #666;
    font-size: 13px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* TABS MINIMALISTAS CON UNDERLINE ANIMADO */
.productos-tabs {
    border: none;
    position: relative;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
}

.productos-tabs::-webkit-scrollbar {
    height: 4px;
}

.productos-tabs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.productos-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.productos-tabs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.productos-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    padding: 0.75rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

.productos-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.productos-tabs .nav-link:hover {
    color: #007bff;
}

.productos-tabs .nav-link.active {
    color: #007bff;
    background: transparent;
    border: none;
}

.productos-tabs .nav-link.active::after {
    width: 100%;
}
/* ============================================
   SECCIÓN DE DESCARGAS
   ============================================ */

/* Filtros y búsqueda */
#descargas-filtros .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#descargas-search {
    border: none;
    padding: 12px;
}

#descargas-search:focus {
    box-shadow: none;
    border-color: transparent;
}

#descargas-filtros .input-group-text {
    background: white;
    border: none;
}

#btn-limpiar-busqueda-descargas {
    border: none;
    border-left: 1px solid #dee2e6;
}

#descargas-contador {
    display: block;
    margin-top: 8px;
    text-align: center;
}

/* Cards de descargas usan el sistema card-compact estándar */
#descargas .card-compact__media {
    background: linear-gradient(135deg, #f6f7fb 0%, #eef0f5 100%);
}

/* Cuando no hay imagen, mostrar icono centrado */
#descargas .card-compact__media:not([style*="--card-img"]) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Mode para filtros */
body.dark-mode #descargas-filtros .input-group-text,
body.dark-mode #descargas-search {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode #btn-limpiar-busqueda-descargas {
    background: #374151;
    color: #e2e8f0;
    border-left-color: #4a5568;
}

body.dark-mode #btn-limpiar-busqueda-descargas:hover {
    background: #4a5568;
}

body.dark-mode #descargas .card-compact__media:not([style*="--card-img"]) {
    background: linear-gradient(135deg, #4c51bf 0%, #6b46c1 100%);
}

/* Modal de contrase�a */
#modalPasswordDescargas .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#modalPasswordDescargas .btn-close {
    filter: brightness(0) invert(1);
}

#modalPasswordDescargas .input-group .btn {
    border-color: #ced4da;
}

/* Animaci�n de entrada de las cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada de cards (usa el sistema card-compact) */
#descargas .card-compact {
    animation: fadeInUp 0.6s ease-out;
}
