﻿* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f9fb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Header superior */
header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 16px;
    color: #0088cc;
}

    .brand-logo i {
        font-size: 18px;
    }

    .brand-logo span {
        color: #333;
    }

    .brand-logo .suite {
        font-size: 11px;
        background-color: #0088cc;
        color: #fff;
        padding: 2px 4px;
        border-radius: 3px;
        margin-left: 2px;
    }

/* Contenido principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sección de bienvenida central */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-logo-text {
    max-width: 800px; /* Tamaño máximo permitido */
    width: 100%; /* Se adapta a pantallas pequeñas */
    min-height: 70px; /* Altura mínima en lugar de fija */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .main-logo-text img {
        max-width: 100%; /* No se sale del contenedor */
        height: auto; /* Mantiene la proporción sin deformarse */
        object-fit: contain; /* Se asegura de encajar perfectamente */
    }

.main-logo-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Grid de tarjetas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Estilos de tarjeta */
.card-button {
    background-color: #ffffff;
    padding: 30px 24px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .card-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

/* Íconos con degradado */
.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    margin-bottom: 24px;
}

.card-button:hover .explore-link {
    transform: translateX(4px); /* Desplaza ligeramente la flecha al hacer hover */
}

/* --- COLOR Y HOVER ESPECÍFICO POR MÓDULO --- */

/* 1. STAFF (Morado) */
.card-button.staff .icon-box {
    background: linear-gradient(135deg, #a832ff, #8a2be2);
    box-shadow: 0 6px 14px rgba(138, 43, 226, 0.3);
}

.card-button.staff .explore-link {
    color: #a832ff;
}

.card-button.staff:hover {
    background: linear-gradient(145deg, #ffffff 40%, #f6eaff 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(168, 50, 255, 0.12);
}

/* 2. OPERACIONES (Azul) */
.card-button.operaciones .icon-box {
    background: linear-gradient(135deg, #00bfff, #007bff);
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
}

.card-button.operaciones .explore-link {
    color: #007bff;
}

.card-button.operaciones:hover {
    background: linear-gradient(145deg, #ffffff 40%, #ebf5ff 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 123, 255, 0.12);
}

/* 3. ASISTENCIA (Naranja) */
.card-button.asistencia .icon-box {
    background: linear-gradient(135deg, #ff9900, #ff5500);
    box-shadow: 0 6px 14px rgba(255, 85, 0, 0.3);
}

.card-button.asistencia .explore-link {
    color: #ff5500;
}

.card-button.asistencia:hover {
    background: linear-gradient(145deg, #ffffff 40%, #fff4ec 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(255, 85, 0, 0.12);
}

/* 4. NÓMINA (Verde) */
.card-button.nomina .icon-box {
    background: linear-gradient(135deg, #00d26a, #00a854);
    box-shadow: 0 6px 14px rgba(0, 168, 84, 0.3);
}

.card-button.nomina .explore-link {
    color: #00a854;
}

.card-button.nomina:hover {
    background: linear-gradient(145deg, #ffffff 40%, #eafaf1 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 168, 84, 0.12);
}

/* 5. BI (Rosa/Magenta) */
.card-button.bi .icon-box {
    background: linear-gradient(135deg, #ff2a75, #e0004d);
    box-shadow: 0 6px 14px rgba(224, 0, 77, 0.3);
}

.card-button.bi .explore-link {
    color: #e0004d;
}

.card-button.bi:hover {
    background: linear-gradient(145deg, #ffffff 40%, #ffeaf1 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(224, 0, 77, 0.12);
}

/* Textos de tarjetas */
.card-button h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.card-button p {
    margin: 0;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Footer inferior */
footer {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

    footer a {
        color: #9ca3af;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }
