/* Botón Flotante de Feedback */
.feedback-float-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9998;
    background: linear-gradient(135deg, #2ec27e 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: pulse-shadow 2s infinite;
}

.feedback-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
}

.feedback-float-button:active {
    transform: translateY(-1px) scale(1.02);
}

.feedback-float-button i {
    font-size: 18px;
}

@keyframes pulse-shadow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(16, 185, 129, 0.6);
    }
}

/* Modal de Feedback Reutilizable */
.feedback-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal-overlay.show {
    opacity: 1;
}

.feedback-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feedback-modal-overlay.show .feedback-modal-content {
    transform: scale(1);
}

.feedback-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}

.feedback-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.feedback-modal-close i {
    font-size: 24px;
    color: #64748b;
}

.feedback-modal-header {
    background: linear-gradient(135deg, #2ec27e 0%, #10b981 100%);
    padding: 25px 30px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.feedback-modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.feedback-modal-icon i {
    font-size: 24px;
    color: white;
}

.feedback-modal-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.feedback-modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin: 0;
}

.feedback-modal-body {
    padding: 20px 25px;
}

.feedback-form-group {
    margin-bottom: 12px;
}

.feedback-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.feedback-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    resize: none;
    transition: border-color 0.2s;
    height: 80px;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #10b981;
}

.feedback-email {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s;
}

.feedback-email:focus {
    outline: none;
    border-color: #10b981;
}

.feedback-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-status.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #10b981;
}

.feedback-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.feedback-status.sending {
    display: block;
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.feedback-modal-footer {
    padding: 0 25px 20px;
    display: flex;
    gap: 10px;
}

.feedback-btn {
    flex: 1;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.feedback-btn-primary {
    background: linear-gradient(135deg, #2ec27e 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feedback-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.feedback-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.feedback-btn-secondary:hover {
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .feedback-float-button {
        bottom: 85px;
        right: 15px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .feedback-float-button span {
        display: none;
    }

    .feedback-modal-content {
        width: 95%;
    }

    .feedback-modal-header {
        padding: 20px 20px 15px;
    }

    .feedback-modal-header h2 {
        font-size: 18px;
    }

    .feedback-modal-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .feedback-modal-icon i {
        font-size: 22px;
    }

    .feedback-modal-header p {
        font-size: 12px;
    }

    .feedback-modal-body {
        padding: 15px 20px;
    }

    .feedback-form-group {
        margin-bottom: 10px;
    }

    .feedback-form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .feedback-textarea {
        height: 70px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .feedback-email {
        font-size: 12px;
        padding: 8px 10px;
    }

    .feedback-modal-footer {
        padding: 0 20px 15px;
        flex-direction: column-reverse;
    }

    .feedback-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
}