@charset "UTF-8";

/* --- ESTILOS GENERALES Y FONDO --- */
body {
    background-image: url('../header/difcdmx2026cb.jpeg');
    background-color: #f4f4f4;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover; 
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.document {
    position: relative;
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* --- HEADER --- */
.header {
    background-color: transparent;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.logo-gob, .logo-rotulo { width: 320px; height: auto; }
.line { width: 100%; height: 6px; background-color: #9e1f49; }

/* --- CONTENIDO PRINCIPAL --- */
.main {	
    padding: 30px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.titulo1 {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #691c32; /* Guinda Institucional */
    margin-bottom: 5px;
    text-transform: uppercase;
}

.texto-bienvenida {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 25px;
    color: #444;
}

/* --- GRID DE BOTONES (TARJETAS) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas para escritorio */
    gap: 15px;
    width: 100%;
}

/* Estilo unificado para las tarjetas */
.icono, .iconoSistema {
    background-color: #ffffff;
    border: 1.5px solid #8d8d8d;
    border-radius: 12px;
    padding: 15px 20px;
    color: #333 !important; /* Texto inicial oscuro */
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease; /* Transición suave para todos los cambios */
    min-height: 70px;
    cursor: pointer;
    box-sizing: border-box;
}

/* --- EFECTO HOVER (CORREGIDO) --- */
.icono:hover, .iconoSistema:hover {
    background-color: #691c32 !important; /* Fondo Guinda al pasar cursor */
    border-color: #691c32 !important;
    color: #ffffff !important; /* Texto Blanco al pasar cursor */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 5px 15px rgba(105, 28, 50, 0.4);
}

/* --- CONFIGURACIÓN DE ICONOS (IMÁGENES) --- */
.icono::before, .iconoSistema::before {
    content: ""; 
    width: 55px; 
    height: 55px;
    margin-right: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: filter 0.3s ease; /* Transición suave para el color del icono */
}

/* Volver el icono blanco en Hover usando filtros */
.icono:hover::before, .iconoSistema:hover::before {
    filter: brightness(0) invert(1);
}

/* Rutas de imágenes */
.recibo_nomina::before         { background-image: url('../header/portal_trabajador.png'); }
.marcoNormativo::before        { background-image: url('../header/marco_normativo.png'); }
.directorio::before            { background-image: url('../header/directorio.png'); }
.house::before                 { background-image: url('../header/organizaciones.png'); }
.mail::before                  { background-image: url('../header/correo.png'); }
.serviciosInformaticos::before { background-image: url('../header/informatica.png'); }
.serviciosGenerales::before    { background-image: url('../header/servicios_generales.png'); }
.sui::before                   { background-image: url('../header/sui.png'); }

/* --- BOTONES DE ANCHO COMPLETO --- */
.full-width {
    grid-column: 1 / -1; 
}

.full-width .iconoSistema {
    font-size: 20px;
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .titulo1 {
        font-size: 24px;
    }

    .logo-gob, .logo-rotulo {
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
    }
}