/* Estilos para la ventana modal de contacto */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal__content {
    position: relative;
    background: linear-gradient(180deg, #0F172A 0%, #1a0d2e 100%);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(110, 0, 255, 0.15);
    border: 1px solid rgba(200, 150, 255, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #CBD5E1;
    transition: color 0.2s ease;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    color: #ffffff;
}

.modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #CBD5E1;
}

.form__input {
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 150, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 150, 255, 0.6);
    box-shadow: 0 0 15px rgba(110, 0, 255, 0.2);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #6e00ff 0%, #8b00ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 0, 255, 0.4);
}

.form__submit:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal__content {
        padding: 2rem;
        max-width: 100%;
    }

    .modal__title {
        font-size: 1.5rem;
    }

    .form__input {
        padding: 0.7rem 0.9rem;
        font-size: 16px;
    }
}

@media (max-width: 425px) {
    .modal__content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal__close {
        font-size: 1.5rem;
    }

    .modal__title {
        font-size: 1.3rem;
    }

    .modal__form {
        gap: 1rem;
    }
}
