/* Modal de Recolección de Datos */
.data-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.data-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
    position: relative;
}

/* Botón de cerrar modal */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 107, 0, 0.8);
    transform: rotate(90deg);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Prata', serif;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
}

.data-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    display: block;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b00;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.form-group select {
    cursor: pointer;
    /* Solo remover appearance en móvil para estilo personalizado */
}

.form-group select:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group select option {
    background: #2a2a2a;
    color: white;
    padding: 0.5rem;
}

.form-group select option:hover {
    background: #3a3a3a;
}

/* Fix para Chrome/Edge */
.form-group select::-ms-expand {
    display: none;
}

/* Asegurar que el select sea clickeable */
.form-group select {
    position: relative;
    z-index: 10;
}

/* Fix adicional para el dropdown del select */
.form-group {
    position: relative;
    z-index: 2;
}

/* Asegurar que el select sea interactivo */
.form-group select:not(:disabled) {
    pointer-events: auto;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8800);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 10;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    display: inline-block;
}

.btn-loader {
    display: none;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.privacy-note {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lock-icon {
    font-size: 1rem;
}

.error-message,
.success-message {
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
}

.success-message {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Estilos específicos para escritorio - mantener consistencia con móvil */
@media (min-width: 768px) {
    /* Mantener el mismo estilo que móvil para consistencia */
    .form-group select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 2.5rem;
        min-height: 50px;
        font-size: 1rem;
    }

    /* Asegurar que el select sea clickeable en desktop */
    .form-group select {
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 100 !important;
    }

    /* Mejorar el hover en desktop */
    .form-group select:hover {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: #ff6b00;
    }

    /* Inputs con mejor tamaño en desktop */
    .form-group input {
        min-height: 50px;
        font-size: 1rem;
    }

    /* Botón más grande en desktop */
    .submit-btn {
        min-height: 50px;
        font-size: 1.1rem;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
}

/* Responsive móvil - mantener estilo personalizado */
@media (max-width: 767px) {
    .form-group select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 2.5rem;
    }
}

/* Responsive móvil específico */
@media (max-width: 480px) {
    .data-modal {
        align-items: flex-start;
        padding-top: 5vh;
    }

    .modal-content {
        width: 92%;
        max-height: 80vh;
        padding: 3rem 1.5rem 2rem;
        margin: 0 auto;
    }

    .modal-close-btn {
        width: 38px;
        height: 38px;
        font-size: 26px;
        top: 10px;
        right: 10px;
    }

    .modal-header {
        margin-bottom: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-logo {
        width: 55px;
        height: 55px;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .data-form {
        gap: 1.1rem;
    }
}