/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    background: #f8f9fa;
}

/* Responsive breakpoints para el contenedor */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}


/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .espacio-vertical {
        min-height: 0px;
    }
}

/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .espacio-vertical {
        min-height: 0px;
    }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .espacio-vertical {
        min-height: 450px;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .espacio-vertical {
        min-height: 450px;
    }
}

/*Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .espacio-vertical {
        min-height: 450px;
    }
}



/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .espacio-vertical2 {
        min-height: 480px;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .espacio-vertical2 {
        min-height: 480px;
    }
}

/*Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .espacio-vertical2 {
        min-height: 480px;
    }
}


/* Hero Section Compacto */
.hero-section-compact {
    background: linear-gradient(135deg, #e7520f 0%, #c4450c 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 16px 16px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Star Section Compacta */
.star-section-compact {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 4.5rem 2.5rem;
    margin-top: 3rem;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(231, 82, 15, 0.1);
}

.star-section-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.section-header-compact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    position: relative;
}

/* Alineación derecha para secciones alternadas derecha */
.section-alternate-right .section-header-compact {
    text-align: right;
}

/* Alineación izquierda para secciones alternadas izquierda */
.section-alternate-left .section-header-compact {
    text-align: left;
}

.section-title-compact {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #e7520f;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-logo-compact {
    width: 94.875px;
    height: 94.875px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.section-content-compact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Alternar orden de columnas */
.section-alternate-right .section-content-compact {
    grid-template-columns: 1fr 1fr;
}

/* Teaching section: 50% texto, 50% galería */
#teaching.section-alternate-right .section-content-compact {
    grid-template-columns: 50% 50%;
}

/* Employability section: 50% galería, 50% texto */
#employability.section-alternate-left .section-content-compact {
    grid-template-columns: 50% 50%;
}

/* Global Engagement section: 50% texto, 50% galería */
#global-engagement.section-alternate-right .section-content-compact {
    grid-template-columns: 50% 50%;
}

.section-alternate-right .text-wrapper {
    order: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.section-alternate-right .gallery-grid {
    order: 2;
    min-width: 0;
}

.section-alternate-left .section-content-compact {
    grid-template-columns: 1fr 1fr;
}

.section-alternate-left .gallery-grid {
    order: 1;
    min-width: 0;
}

.section-alternate-left .text-wrapper {
    order: 2;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Alineación del padding lateral del text-wrapper para unificar con las galerías */
.section-alternate-right .text-wrapper {
    padding-left: 20px;
    padding-right: 0;
    text-align: right;
    align-items: flex-end;
}

.section-alternate-left .text-wrapper {
    padding-left: 0;
    padding-right: 20px;
    text-align: left;
    align-items: flex-start;
}

.text-content-compact {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1875rem;
    line-height: 1.85;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Estilos para enlaces dentro del texto */
.text-content-compact a {
    color: #e7520f;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    opacity: 0.85;
}

.text-content-compact a:hover {
    color: #c45a0c;
    opacity: 1;
    outline: none;
}

.text-content-compact a:visited {
    outline: none;
}

.text-content-compact a:focus {
    outline: none;
}

/* Estilos para pie de texto (fuentes y referencias) */
.text-content-compact .footnote,
.text-wrapper .footnote {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Estilos para listas dentro de text-wrapper */
.text-wrapper ul {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1875rem;
    line-height: 1.85;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.text-wrapper ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.text-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #008888;
    font-weight: 600;
    font-size: 1.1em;
}

/* Estilos para Acordeón UDLAP */
.udlap-accordion {
    margin: 1.5rem 0;
    border: 1px solid rgba(231, 82, 15, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.udlap-accordion-item {
    border-bottom: 1px solid rgba(231, 82, 15, 0.1);
}

.udlap-accordion-item:last-child {
    border-bottom: none;
}

.udlap-accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: #e7520f;
    transition: all 0.3s ease;
    position: relative;
}

.udlap-accordion-header:hover {
    background: rgba(231, 82, 15, 0.05);
    color: #c4450c;
    outline: none;
}

.udlap-accordion-header:visited {
    outline: none;
}

.udlap-accordion-header:focus {
    outline: none;
}

.udlap-accordion-header.active {
    background: #fff;
    color: #e7520f;
}

.udlap-accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.udlap-accordion-header.active .udlap-accordion-icon {
    transform: rotate(180deg);
}

.udlap-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.udlap-accordion-content.active {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.udlap-accordion-body {
    padding-top: 1rem;
}

.udlap-accordion-body .text-content-compact {
    margin-bottom: 1rem;
}

.udlap-accordion-body ul {
    margin: 1rem 0;
}

.udlap-accordion-body .footnote {
    margin-top: 1rem;
}

/* Gallery Grid Base */
.gallery-grid {
    display: grid;
    gap: 1rem;
    margin: 0;
    position: relative;
    align-self: start;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Grid uniforme 2x2 para todas las galerías */
.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.gallery-item-compact {
    aspect-ratio: 1 / 1;
}

/* Galerías en primera columna: padding izquierdo */
.section-alternate-left .gallery-grid {
    padding-left: 20px;
    padding-right: 20px;
}

/* Galerías en segunda columna: padding izquierdo igual al padding izquierdo de las galerías en primera columna */
.section-alternate-right .gallery-grid {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item-compact {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item-compact:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(231, 82, 15, 0.25);
    z-index: 2;
}

.gallery-item-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-compact:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 82, 15, 0.85) 0%, rgba(196, 69, 12, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-compact:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 36px;
    height: 36px;
    color: white;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Learn More Link Compacto - Enlace simple */
.learn-more-link-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e7520f;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
    opacity: 0.85;
}

.learn-more-link-compact:hover {
    color: #c45a0c;
    outline: none;
}

.learn-more-link-compact:hover .arrow-icon {
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.learn-more-link-compact:visited {
    outline: none;
}

.learn-more-link-compact:focus {
    outline: none;
}

.arrow-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.lightbox-counter {
    color: #333;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.lightbox-close:focus {
    outline: 3px solid #e7520f;
    outline-offset: 2px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(231, 82, 15, 0.9);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.lightbox-nav:hover {
    background: rgba(196, 69, 12, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .star-section-compact {
        padding: 2rem 1.75rem;
    }

    .learn-more-link-compact {
        font-size: 0.9375rem;
        font-weight: 400;
        padding: 0.625rem 1.25rem;
        opacity: 0.85;
    }

    .section-title-compact {
        font-size: 2rem;
        font-weight: 800;
    }

    .section-logo-compact {
        width: 82.225px;
        height: 82.225px;
    }

    .section-header-compact {
        text-align: left !important;
    }

    .section-content-compact {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .section-alternate-right .section-content-compact {
        grid-template-columns: 1fr !important;
    }

    .section-alternate-left .section-content-compact {
        grid-template-columns: 1fr !important;
    }

    .text-wrapper {
        order: 1 !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .gallery-grid {
        order: 2 !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 1rem;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    /* Resetear layouts específicos en tabletas */
    .gallery-grid .gallery-item-compact {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .gallery-grid .gallery-item-compact:nth-child(4) {
        display: block !important;
    }

    .text-content-compact {
        font-size: 1.0625rem;
    }

    .text-wrapper ul {
        font-size: 1.0625rem;
    }

    .text-wrapper .footnote {
        font-size: 0.8125rem;
    }

    .udlap-accordion-header {
        font-size: 1.0625rem;
        padding: 1rem 1.25rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-section-compact {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .star-section-compact {
        padding: 1.75rem 1.5rem;
        margin-top: 3rem;
        margin-bottom: 0;
    }

    .learn-more-link-compact {
        font-size: 0.875rem;
        font-weight: 400;
        padding: 0.625rem 1.125rem;
        opacity: 0.85;
    }

    .section-header-compact {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
        text-align: left !important;
    }


    .section-title-compact {
        font-size: 1.75rem;
        font-weight: 800;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .section-content-compact {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .text-wrapper {
        text-align: left !important;
        align-items: flex-start !important;
        order: 1 !important;
    }

    .gallery-grid {
        order: 2 !important;
    }

    .section-logo-compact {
        width: 75.9px;
        height: 75.9px;
    }

    .section-content-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .text-content-compact {
        font-size: 1rem;
        line-height: 1.75;
    }

    .text-wrapper ul {
        font-size: 1rem;
    }

    .text-wrapper .footnote {
        font-size: 0.8125rem;
    }

    .udlap-accordion-header {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .udlap-accordion-content.active {
        padding: 0 1rem 1rem 1rem;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        scrollbar-color: #e7520f #f0f0f0;
        gap: 1rem;
        margin: 0;
        padding: 1rem 0 2rem 0;
        position: relative;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    /* Resetear layouts específicos en móvil */
    .gallery-grid .gallery-item-compact {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .gallery-grid .gallery-item-compact:nth-child(4) {
        display: block !important;
    }

    .gallery-grid::before {
        content: '← Desliza para ver más fotos →';
        position: absolute;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.875rem;
        color: #e7520f;
        font-weight: 500;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0.8;
    }

    .gallery-grid::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.95));
        pointer-events: none;
        opacity: 1;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
        margin: 0 1rem;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #e7520f 0%, #ff8c42 100%);
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(231, 82, 15, 0.3);
    }

    .gallery-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #c4450c 0%, #e7520f 100%);
    }

    .gallery-item-compact {
        flex: 0 0 280px;
        scroll-snap-align: start;
        width: 280px;
        max-width: 85vw;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .gallery-overlay {
        opacity: 0;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }
}

/* Responsive - Mobile Pequeño */
@media (max-width: 480px) {
    .hero-section-compact {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .star-section-compact {
        padding: 1.5rem 1.25rem;
    }

    .learn-more-link-compact {
        font-size: 0.875rem;
    }

    .section-header-compact {
        text-align: left !important;
    }


    .section-title-compact {
        font-size: 1.5rem;
        font-weight: 800;
        justify-content: flex-start;
    }

    .section-logo-compact {
        width: 63.25px;
        height: 63.25px;
    }

    .section-content-compact {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .text-wrapper {
        text-align: left !important;
        align-items: flex-start !important;
        order: 1 !important;
    }

    .gallery-grid {
        order: 2 !important;
    }

    .text-content-compact {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .text-wrapper ul {
        font-size: 0.9375rem;
    }

    .text-wrapper .footnote {
        font-size: 0.75rem;
    }

    .udlap-accordion-header {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }

    .udlap-accordion-content.active {
        padding: 0 1rem 1rem 1rem;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        scrollbar-color: #e7520f #f0f0f0;
        gap: 0.875rem;
        margin: 0;
        padding: 1rem 0 2rem 0;
        position: relative;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .gallery-grid::before {
        content: '← Desliza para ver más →';
        position: absolute;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8125rem;
        color: #e7520f;
        font-weight: 500;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0.8;
    }

    .gallery-grid::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 35px;
        background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.95));
        pointer-events: none;
        opacity: 1;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
        margin: 0 0.75rem;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #e7520f 0%, #ff8c42 100%);
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(231, 82, 15, 0.3);
    }

    .gallery-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #c4450c 0%, #e7520f 100%);
    }

    .gallery-item-compact {
        flex: 0 0 250px;
        scroll-snap-align: start;
        width: 250px;
        max-width: 80vw;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .gallery-overlay {
        opacity: 0;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* Accesibilidad - Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .learn-more-link-compact:hover .arrow-icon {
        transform: none;
    }
}

/* ============================================
   CLASES DE ESPACIADO VERTICAL
   De 5px a 100px, de 5 en 5 píxeles
   ============================================ */

/* Margin Top */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-40 { margin-top: 40px; }
.mt-45 { margin-top: 45px; }
.mt-50 { margin-top: 50px; }
.mt-55 { margin-top: 55px; }
.mt-60 { margin-top: 60px; }
.mt-65 { margin-top: 65px; }
.mt-70 { margin-top: 70px; }
.mt-75 { margin-top: 75px; }
.mt-80 { margin-top: 80px; }
.mt-85 { margin-top: 85px; }
.mt-90 { margin-top: 90px; }
.mt-95 { margin-top: 95px; }
.mt-100 { margin-top: 100px; }

/* Margin Bottom */
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-35 { margin-bottom: 35px; }
.mb-40 { margin-bottom: 40px; }
.mb-45 { margin-bottom: 45px; }
.mb-50 { margin-bottom: 50px; }
.mb-55 { margin-bottom: 55px; }
.mb-60 { margin-bottom: 60px; }
.mb-65 { margin-bottom: 65px; }
.mb-70 { margin-bottom: 70px; }
.mb-75 { margin-bottom: 75px; }
.mb-80 { margin-bottom: 80px; }
.mb-85 { margin-bottom: 85px; }
.mb-90 { margin-bottom: 90px; }
.mb-95 { margin-bottom: 95px; }
.mb-100 { margin-bottom: 100px; }

/* Margin Vertical (top y bottom) */
.my-5 { margin-top: 5px; margin-bottom: 5px; }
.my-10 { margin-top: 10px; margin-bottom: 10px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-25 { margin-top: 25px; margin-bottom: 25px; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }
.my-35 { margin-top: 35px; margin-bottom: 35px; }
.my-40 { margin-top: 40px; margin-bottom: 40px; }
.my-45 { margin-top: 45px; margin-bottom: 45px; }
.my-50 { margin-top: 50px; margin-bottom: 50px; }
.my-55 { margin-top: 55px; margin-bottom: 55px; }
.my-60 { margin-top: 60px; margin-bottom: 60px; }
.my-65 { margin-top: 65px; margin-bottom: 65px; }
.my-70 { margin-top: 70px; margin-bottom: 70px; }
.my-75 { margin-top: 75px; margin-bottom: 75px; }
.my-80 { margin-top: 80px; margin-bottom: 80px; }
.my-85 { margin-top: 85px; margin-bottom: 85px; }
.my-90 { margin-top: 90px; margin-bottom: 90px; }
.my-95 { margin-top: 95px; margin-bottom: 95px; }
.my-100 { margin-top: 100px; margin-bottom: 100px; }

/* Padding Top */
.pt-5 { padding-top: 5px; }
.pt-10 { padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-20 { padding-top: 20px; }
.pt-25 { padding-top: 25px; }
.pt-30 { padding-top: 30px; }
.pt-35 { padding-top: 35px; }
.pt-40 { padding-top: 40px; }
.pt-45 { padding-top: 45px; }
.pt-50 { padding-top: 50px; }
.pt-55 { padding-top: 55px; }
.pt-60 { padding-top: 60px; }
.pt-65 { padding-top: 65px; }
.pt-70 { padding-top: 70px; }
.pt-75 { padding-top: 75px; }
.pt-80 { padding-top: 80px; }
.pt-85 { padding-top: 85px; }
.pt-90 { padding-top: 90px; }
.pt-95 { padding-top: 95px; }
.pt-100 { padding-top: 100px; }

/* Padding Bottom */
.pb-5 { padding-bottom: 5px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.pb-25 { padding-bottom: 25px; }
.pb-30 { padding-bottom: 30px; }
.pb-35 { padding-bottom: 35px; }
.pb-40 { padding-bottom: 40px; }
.pb-45 { padding-bottom: 45px; }
.pb-50 { padding-bottom: 50px; }
.pb-55 { padding-bottom: 55px; }
.pb-60 { padding-bottom: 60px; }
.pb-65 { padding-bottom: 65px; }
.pb-70 { padding-bottom: 70px; }
.pb-75 { padding-bottom: 75px; }
.pb-80 { padding-bottom: 80px; }
.pb-85 { padding-bottom: 85px; }
.pb-90 { padding-bottom: 90px; }
.pb-95 { padding-bottom: 95px; }
.pb-100 { padding-bottom: 100px; }

/* Padding Vertical (top y bottom) */
.py-5 { padding-top: 5px; padding-bottom: 5px; }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-25 { padding-top: 25px; padding-bottom: 25px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-35 { padding-top: 35px; padding-bottom: 35px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-45 { padding-top: 45px; padding-bottom: 45px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.py-55 { padding-top: 55px; padding-bottom: 55px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.py-65 { padding-top: 65px; padding-bottom: 65px; }
.py-70 { padding-top: 70px; padding-bottom: 70px; }
.py-75 { padding-top: 75px; padding-bottom: 75px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.py-85 { padding-top: 85px; padding-bottom: 85px; }
.py-90 { padding-top: 90px; padding-bottom: 90px; }
.py-95 { padding-top: 95px; padding-bottom: 95px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }

/* Rankings Section */
.rankings-section {
    background: #f8f9fa;
    padding-top: 2.5rem;
    padding-bottom: 0;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 0;
    min-height: auto;
}

.rankings-content {
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto;
    padding-bottom: 0;
}

.rankings-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.rankings-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ranking-logo-link {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    outline: none;
    max-width: 200px;
    width: 100%;
}

.ranking-logo-link:hover {
    transform: translateY(-5px) scale(1.05);
    opacity: 0.9;
}

.ranking-logo-link:focus {
    outline: 3px solid #e7520f;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Botón de rankings */
.rankings-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    margin-bottom: 0;
}

.rankings-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #e7520f;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 82, 15, 0.3);
    outline: none;
}

.rankings-button:hover {
    background: #c4450c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 82, 15, 0.4);
    outline: none !important;
    border: none !important;
}

.rankings-button:visited {
    background: #e7520f;
    color: white;
    outline: none !important;
    border: none !important;
}

.rankings-button:visited:hover {
    background: #c4450c;
    color: white;
    outline: none !important;
    border: none !important;
}

.rankings-button:focus {
    outline: 3px solid #e7520f;
    outline-offset: 4px;
    border-radius: 50px;
    border: none !important;
}

.rankings-button:focus:hover {
    outline: none !important;
    border: none !important;
}

.rankings-button .arrow-icon {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.rankings-button:hover .arrow-icon {
    transform: translateX(4px);
}

.ranking-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ranking-logo-link:hover .ranking-logo {
    box-shadow: 0 4px 16px rgba(231, 82, 15, 0.2);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .rankings-section {
        padding-top: 1.5rem;
        padding-bottom: 0;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        margin-top: 3rem;
        margin-bottom: 0;
        min-height: auto;
    }

    .rankings-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .rankings-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        margin-bottom: 0;
    }

    .rankings-button-wrapper {
        margin-top: 3rem;
    }

    .rankings-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }

    .ranking-logo-link {
        max-width: 180px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .rankings-section {
        padding-top: 1rem;
        padding-bottom: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 0;
        min-height: auto;
    }

    .rankings-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .rankings-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 0;
    }

    .rankings-button-wrapper {
        margin-top: 2.5rem;
    }

    .rankings-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .ranking-logo-link {
        max-width: 100%;
    }
}

/* Responsive - Mobile Pequeño */
@media (max-width: 480px) {
    .rankings-section {
        padding-top: 0.75rem;
        padding-bottom: 0;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        margin-top: 3rem;
        margin-bottom: 0;
        min-height: auto;
    }

    .rankings-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        margin-top: 0;
    }

    .rankings-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        margin-bottom: 0;
    }

    .rankings-button-wrapper {
        margin-top: 2rem;
    }

    .rankings-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Accesibilidad - Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .ranking-logo-link {
        transition: none;
    }

    .ranking-logo-link:hover {
        transform: none;
    }
}



