/* --- Estilos específicos para la página de inicio (index.php) --- */
.hero-background-section {
    /* El color de fondo es heredado del body */
}

.hero-section {
    position: relative;
    padding-bottom: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.image-placeholder {
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 1.5rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Asegura que la imagen de fondo respete los bordes redondeados */
}

.welcome-text-small {
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: transparent;
    transition: color 0.3s ease;
}

.welcome-text-large {
    font-weight: 400;
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    color: transparent;
    transition: color 0.3s ease;
}

.nav-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-grid-container {
    position: relative;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--md-sys-color-on-primary);
    text-align: center;
    transition: background-color 0.2s ease-in-out, border-radius 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, filter 0.2s ease;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.nav-button:hover {
    filter: saturate(1.2) brightness(1.08);
}

.nav-button:active {
    border-radius: 3rem;
    filter: saturate(1.2) brightness(0.95);
}

/* Colores de identidad (Material Design Extended Colors) */
.btn-ubicaciones {
    background-color: var(--md-extended-color-ubicaciones-color);
    color: var(--md-extended-color-ubicaciones-on-color);
}

.btn-programas {
    background-color: var(--md-extended-color-programas-color);
    color: var(--md-extended-color-programas-on-color);
}

.btn-contacto {
    background-color: var(--md-extended-color-contacto-color);
    color: var(--md-extended-color-contacto-on-color);
}

.btn-about {
    background-color: var(--md-extended-color-about-color);
    color: var(--md-extended-color-about-on-color);
}

.nav-icon {
    margin-bottom: 0.75rem;
    line-height: 1;
}

.nav-icon .material-symbols-outlined {
    font-size: 100px;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

.nav-icon .icon-svg {
    width: 100px;
    height: 100px;
    background-color: currentColor;
    -webkit-mask-image: url('/archivos/insumos/logo-cesfam-mono/Cesfam Dalcahue Emblema Monocromo.svg');
    mask-image: url('/archivos/insumos/logo-cesfam-mono/Cesfam Dalcahue Emblema Monocromo.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.nav-text {
    font-weight: 700;
    font-size: 1rem;
}

.nav-button.new-tab-opening {
    border-radius: 3rem;
    outline: 3px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Responsividad para Home */
@media (max-width: 992px) {
    .nav-grid-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {

    .nav-grid-container,
    .nav-section {
        display: none;
    }

    .hero-section {
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    .image-placeholder {
        min-height: unset;
        height: auto;
        aspect-ratio: 4 / 3;
        justify-content: flex-end;
        padding: 1.5rem;
        border-radius: 0;
        /* En móvil, las esquinas no son redondeadas */
    }

    .welcome-text-large {
        font-size: 2.5rem;
    }

    .welcome-text-small {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-text-large {
        font-size: 2rem;
    }

    .welcome-text-small {
        font-size: 1.2rem;
    }
}