/* Panel de Administración Moderno - Mantiene el estilo del sitio */
.panel-admin-title {
    color: #000000;
    text-align: left;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
}

.panel-admin-moderno {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: static !important;
    transform: none !important;
}

.panel-title {
    color: #000000;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.panel-subtitle {
    color: #555555;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

.acciones-rapidas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto;
}

.accion-card {
    flex: 1 1 calc(16.666% - 1rem); /* 6 por fila */
    min-width: 160px;
}

@media (max-width: 1400px) {
    .accion-card {
        flex: 1 1 calc(20% - 1rem); /* 5 por fila */
    }
}

@media (max-width: 1200px) {
    .accion-card {
        flex: 1 1 calc(25% - 1rem); /* 4 por fila */
    }
}

@media (max-width: 992px) {
    .accion-card {
        flex: 1 1 calc(33.333% - 1rem); /* 3 por fila */
    }
}

@media (max-width: 768px) {
    .accion-card {
        flex: 1 1 calc(50% - 0.5rem); /* 2 por fila */
    }
    .acciones-rapidas {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .accion-card {
        flex: 1 1 100%; /* 1 por fila */
    }
}

.accion-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #28a745;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    color: #28a745;
}

.accion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.accion-card:hover::before {
    left: 100%;
}

.accion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border-color: #218838;
    text-decoration: none !important;
    background-color: #28a745;
    color: white !important;
}

.accion-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: #28a745;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.accion-card:hover .accion-icon {
    transform: scale(1.1);
    background: white;
    color: #28a745;
}

/* Mantenemos el color verde consistente con el tema del sitio */

.accion-title {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.accion-card:hover .accion-title {
    color: white;
}

.accion-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.accion-card:hover .accion-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Animaciones específicas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accion-card {
    animation: fadeInUp 0.6s ease forwards;
}

.accion-card:nth-child(1) { animation-delay: 0.1s; }
.accion-card:nth-child(2) { animation-delay: 0.2s; }
.accion-card:nth-child(3) { animation-delay: 0.3s; }
.accion-card:nth-child(4) { animation-delay: 0.4s; }
.accion-card:nth-child(5) { animation-delay: 0.5s; }
.accion-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .panel-admin-moderno {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .accion-card {
        padding: 1rem;
    }
    
    .accion-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
    
    .panel-admin-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .accion-card {
        padding: 0.8rem;
    }
    
    .accion-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .accion-title {
        font-size: 0.9rem;
    }
    
    .accion-description {
        font-size: 0.75rem;
    }
}

/* Efectos adicionales */
.accion-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #28a745;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.accion-card:hover::after {
    transform: scaleX(1);
}

/* Pulso de atención para acciones importantes */
@keyframes pulse-attention {
    0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
}

.accion-card.destacado {
    animation: pulse-attention 2s infinite;
}