/* Home */
/* Colores para categorías de noticias */
.category-innovacion {
    color: var(--category-innovacion) !important;
}

.category-sustentabilidad {
    color: var(--category-sustentabilidad) !important;
}

.category-seguridad {
    color: var(--category-seguridad) !important;
}

/* Hero Section */
.home__hero {
    position: relative;
    padding: 82px 0;
    box-shadow: 0px 4px 6px 0px #0000001A;
    border-radius: 8px;
}

.home__hero-background {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../../images/backgrounds/home-hero.jpg');
    border-radius: 8px;
}

.home__hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #A6192E 0%, #B91C1C 100%);
    opacity: 0.9;
    border-radius: 8px;
}

.home__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: var(--text-white);
}

.home__hero-logo {
    max-width: 80%;
}

.home__hero-title {
    margin-top: -31px;
    margin-bottom: 0px;
    font-weight: 400;
    font-size: 48px;
    line-height: 36px;
    letter-spacing: -4px;
    text-align: center;
}

.home__hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
}

/* Featured Links Section */
.home__featured-links {
    margin-top: 48px;
}

.home__featured-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.home__featured-links-item {
    border-radius: 8px;
    border-width: 1px;
    background: var(--bg-white);
    box-shadow: 0px 2px 4px 0px var(--shadow-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 100 / 72;
    text-decoration: none;
    color: var(--text-black);
}

.home__featured-links-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    opacity: 1;
    border-radius: 9999px;
    background: var(--bg-secondary);
}

.home__featured-links-icon {
    background-color: var(--text-white);
    width: 20px;
    height: 28px;
}

.home__featured-links-icon.icon-people {
    width: 25px;
}

.home__featured-links-title {
    margin: 24px 0 8px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 2px;
    color: var(--text-dark-blue);

}

.home__featured-links-description {
    margin: 0;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--text-gray);
}

/* News & Events Section */
.home__news-events {
    margin-top: 91px;
}

.home__news-events-container {
    display: flex;
    gap: 56px;
    height: 100%;
    align-items: stretch;
}

/* News Section */
.home__news-container {
    max-width: 65%;
}

.home__news-section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home__news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.home__news-title {
    font-size: 24px;
    color: var(--text-dark-blue);
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;

}

.home__news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 1px;
    color: var(--text-accent);
    text-decoration: none;
}

.home__news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    flex: 1;
}

.home__news-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0;
    box-shadow: 0px 2px 4px 0px var(--shadow-primary);

}

.home__news-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.home__news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home__news-item:hover .home__news-image img {
    transform: scale(1.05);
}

.home__news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.home__news-content {
    position: relative;
    padding: 22px 20px 23px;
    flex-grow: 1;
}

.home__news-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.home__news-category {
    padding: 12px 8px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
}

.home__news-item-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--text-dark-blue);
    margin: 0;
    text-decoration: none;
}

.home__news-date {
    display: block;
    margin-top: 20px;
}

.home__news-excerpt {
    margin: 6px 0 40px;
}

.home__news-read-more {
    position: absolute;
    bottom: 23px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-accent);
    text-decoration: none;
}

.home__news-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

/* Events Section */
.home__events-container {
    flex: 1;
    display: flex;
}

.home__events-section {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0px 2px 4px 0px var(--shadow-primary);
    padding: 24px 24px 27px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home__events-header {
    margin-bottom: 24px;
}

.home__events-icon {
    width: 14px;
    height: 16px;
    color: var(--text-accent);
    margin: 4px 12px 0 0;
}

.home__events-title {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0;
    margin: 0;
    color: var(--text-dark-blue);
}

.home__events-list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 20px;
    flex: 1;
}

.home__event-item {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.home__event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
    max-height: 68px;
}

.home__event-month {
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
}

.home__event-day {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    line-height: 24px;
}

.home__event-content {
    flex: 1;
}

.home__event-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 4px;
    color: var(--text-dark-blue);
}

.home__event-time {
    font-weight: 500;
    font-size: 12px;
    margin: 0 0 3px;
    color: var(--text-gray);
}

.home__event-location {
    font-weight: 500;
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
}

.home__events-footer {
    margin-top: 41px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home__events-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    text-align: center;
    vertical-align: middle;
}

.home__events-arrow-icon {
    width: 13px;
    height: 11px;
    color: var(--text-accent);
}

/* Quick Access Section */
.home__quick-access {
    margin-top: 71px;
}

.home__quick-access-header {
    margin-bottom: 24px;
}

.home__quick-access-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: var(--text-dark-blue);
    margin: 0;
}

.home__quick-access-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.home__quick-access-item {
    width: 24%;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 20px 44px;
    text-decoration: none;
    color: var(--text-black);
}

.home__quick-access-icon.icon-suitcase {
    color: #2563EB;
}

.home__quick-access-icon.icon-book {
    color: #16A34A;
    width: 18px;
}

.home__quick-access-icon.icon-cake {
    background: #CA8A04;
    width: 14px;
}

.home__quick-access-icon.icon-newspaper {
    background: #9333EA;
}

.home__quick-access-icon {
    width: 16px;
    height: 16px;
    margin-bottom: 24px;
}

.home__quick-access-title-text {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text-dark-blue);
    margin: 0;
}


/* Responsive */
@media (max-width: 1280px) {
    .home__news-events-container {
        flex-direction: column;
    }

    .home__news-events {
        margin-top: 48px;
    }

    .home__news-container {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .home__featured-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home__news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home__quick-access-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .home__quick-access-item {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .home__featured-links-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .home__featured-links-item {
        aspect-ratio: unset;
        height: 200px;
    }

    .home__news-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .home__hero-title {
        font-size: 24px;
        letter-spacing: 0;
    }

    .home__quick-access-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .home__news-view-all {
        font-size: 16px;
    }
}
