/* ========== RESET Y CONFIGURACIÓN BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* ========== SECCIÓN DE CONTACTO ========== */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.contact-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(106, 13, 173, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #d4a0ff;
    font-weight: 300;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #b19cd9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ========== FORMULARIO ========== */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(106, 13, 173, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b19cd9;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* Select personalizado */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: #1a0033;
    color: #ffffff;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    font-size: 0.85rem;
    color: #b19cd9;
    text-align: right;
    margin-top: 0.3rem;
}

/* ========== CHECKBOX Y AVISO DE PRIVACIDAD ========== */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    gap: 0.7rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 0.1rem;
}

.checkbox-label span {
    color: #e0e0e0;
}

.checkbox-label a {
    color: #b19cd9;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #d4a0ff;
}

/* ========== reCAPTCHA ========== */
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

/* ========== BOTÓN DE ENVÍO ========== */
button[type="submit"] {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6a0dad 0%, #b19cd9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

/* ========== ALERTAS Y MENSAJES ========== */
.alert {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(80, 255, 179, 0.1);
    border: 1px solid #50ffb3;
    color: #80ffb3;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff8080;
}

#mensaje-status {
    margin-top: 1rem;
    text-align: center;
}

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

/* ========== VALIDACIÓN VISUAL ========== */
input.error,
select.error,
textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

input.success,
select.success,
textarea.success {
    border-color: #50ffb3;
}

.error-message {
    color: #ff8080;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1.5rem;
    }

    .contact-section h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }

    .contact-section {
        padding: 1.5rem 1rem;
    }

    .contact-section h1 {
        font-size: 1.75rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    button[type="submit"] {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}
