/* Estilos para el sistema de feedback */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.feedback-overlay.active .feedback-container {
    transform: translateY(0);
    opacity: 1;
}

.feedback-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feedback-success .feedback-icon {
    background-color: #e6f7f0;
    color: #0d9488; /* Tailwind cyan-600 */
}

.feedback-error .feedback-icon {
    background-color: #fef2f2;
    color: #dc2626; /* Tailwind red-600 */
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.feedback-success .feedback-title {
    color: #0d9488; /* Tailwind cyan-600 */
}

.feedback-error .feedback-title {
    color: #dc2626; /* Tailwind red-600 */
}

.feedback-message {
    margin-bottom: 1.5rem;
    color: #4b5563; /* Tailwind gray-600 */
}

.feedback-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-success .feedback-button {
    background-color: #0d9488; /* Tailwind cyan-600 */
    color: white;
}

.feedback-success .feedback-button:hover {
    background-color: #0f766e; /* Tailwind cyan-700 */
}

.feedback-error .feedback-button {
    background-color: #dc2626; /* Tailwind red-600 */
    color: white;
}

.feedback-error .feedback-button:hover {
    background-color: #b91c1c; /* Tailwind red-700 */
}

/* Animación para el icono de éxito */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    width: 50px;
    height: 50px;
    stroke-width: 2;
    stroke: #0d9488;
    stroke-miterlimit: 10;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Animación para el icono de error */
@keyframes crossmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.crossmark {
    width: 50px;
    height: 50px;
    stroke-width: 2;
    stroke: #dc2626;
    stroke-miterlimit: 10;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: crossmark 1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Responsive */
@media (max-width: 640px) {
    .feedback-container {
        padding: 1.5rem;
    }
    
    .feedback-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feedback-title {
        font-size: 1.25rem;
    }
    
    .checkmark, .crossmark {
        width: 40px;
        height: 40px;
    }
}