/* Estilos generales */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Contenedor de tarjetas */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Estilos de la tarjeta */
.card {
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: default;
    border: none;
}
.card-footer a {
    position: relative;
    z-index: 10; /* Asegura que esté encima */
  }

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-content {
    padding: 25px;
    position: relative;

}

.card h3 {
    font-size: 32px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer con botón */
.card-footer {
    background: rgba(0,0,0,0.1);
    padding: 12px 20px;
    text-align: right;
    transition: background-color 0.3s ease;
}

.card:hover .card-footer {
    background: rgba(0,0,0,0.15);
}

.card-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.card-footer a:hover {
    transform: translateX(3px);
    opacity: 1;
}

.card-footer a::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-footer a:hover::after {
    transform: translateX(3px);
}

/* Colores de tarjetas con gradientes */
.card-blue {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.card-green {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.card-yellow {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.card-yellow .card-footer {
    background: rgba(0,0,0,0.08);
}

.card-yellow .card-footer a {
    color: #212529;
}

.card-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Efecto de brillo al hacer hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .card {
        min-height: 140px;
    }
    
    .card h3 {
        font-size: 28px;
    }
}