﻿.dashboard-layout {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-welcome {
    margin-bottom: 34px;
}

    .dashboard-welcome h1 {
        color: #08305f;
        font-size: 32px;
        font-weight: 900;
        margin: 0 0 8px 0;
    }

    .dashboard-welcome p {
        color: #667085;
        font-size: 18px;
        margin: 0;
    }

/* Grilla adaptable */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Estilo Base de las Tarjetas */
.dashboard-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0, 63, 125, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 35px rgba(0, 63, 125, 0.12);
        border-color: #0070c9;
    }

/* Iconos Gigantes */
.card-icon {
    font-size: 42px;
    width: 70px;
    height: 70px;
    background: #eef7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.dashboard-card:hover .card-icon {
    background: #e0f0ff;
}

/* Textos internos */
.card-content {
    flex: 1;
}

    .card-content h2 {
        margin: 0 0 6px 0;
        color: #0c2d57;
        font-size: 21px;
        font-weight: 800;
    }

    .card-content p {
        margin: 0;
        color: #667085;
        font-size: 14px;
        line-height: 1.4;
    }

/* Flecha decorativa de acción */
.card-arrow {
    font-size: 18px;
    color: #cfd8e3;
    margin-left: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-card:hover .card-arrow {
    color: #0070c9;
    transform: translateX(4px);
}

/* Variante deshabilitada temporalmente para familiares */
.alternative-disabled {
    opacity: 0.85;
}

    .alternative-disabled .card-icon {
        background: #f4f6f9;
    }

.dashboard-card.alternative-disabled:hover {
    border-color: #cfd8e3;
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.alternative-disabled .card-arrow {
    display: none;
}

/* Responsive para pantallas chicas */
@media (max-width: 600px) {
    .dashboard-welcome h1 {
        font-size: 26px;
    }

    .dashboard-welcome p {
        font-size: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .card-icon {
        font-size: 32px;
        width: 56px;
        height: 56px;
        margin-right: 16px;
    }

    .card-content h2 {
        font-size: 18px;
    }
}
