/* Estilos generales para formulario.html */

/* Sección de Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-dark-bg);
    /* Fondo base oscuro */
    background-image: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 20%);
    /* Sutil luz naranja */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.info-column h3,
.form-column h3 {
    font-size: 2.2rem;
    color: var(--color-orange);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Info Column */
.info-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    /* Un poco de aire superior */
}

.info-svg-container {
    margin-bottom: 25px;
}

.contact-svg-icon {
    width: 60px;
    height: 60px;
    stroke: var(--color-orange);
    /* Naranja corporativo */
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
    /* Brillo sutil */
}

.info-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Form Column */
.form-column {
    background-color: #121212;
    /* Tarjeta sutil */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ddd;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-orange);
    background-color: #222;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    /* Anillo de foco */
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* CAPTCHA Styles */
.captcha-group {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.captcha-group label {
    display: block;
    margin-bottom: 15px;
    color: #ddd;
    font-weight: 600;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    /* Quitamos el fondo blanco al contenedor, la imagen ya tiene fondo */
    padding: 0;
}

#captcha-image {
    display: block;
    border-radius: 4px;
    border: 1px solid #444;
}

#captcha-input {
    letter-spacing: 3px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
    background-color: #222;
    border-color: #444;
}

#captcha-input:focus {
    border-color: var(--color-orange);
}

#refresh-captcha {
    background: #252525;
    border: 1px solid #444;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-orange);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

#refresh-captcha:hover {
    background-color: #333;
    transform: rotate(180deg);
    border-color: var(--color-orange);
}

.captcha-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Botón Enviar Moderno */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #e65c00 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(230, 92, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 92, 0, 0.3);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(230, 92, 0, 0.2);
}

.btn-submit:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #888;
}

/* --- MODAL DE RESPUESTA --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fondo más oscuro */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card {
    background-color: #151515;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
}

.modal-message {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.modal-close-btn {
    background-color: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.modal-close-btn:hover {
    background-color: var(--color-orange);
    color: white;
}

/* Variantes de estado */
.modal-success .modal-icon {
    background-color: rgba(25, 174, 79, 0.15);
    color: #19ae4f;
    border: 2px solid rgba(25, 174, 79, 0.3);
}

.modal-success .modal-icon::after {
    content: '✓';
}

.modal-error .modal-icon {
    background-color: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 2px solid rgba(255, 77, 77, 0.3);
}

.modal-error .modal-icon::after {
    content: '!';
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .form-column {
        padding: 25px;
    }
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #19ae4f;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-button::before {
    content: '';
    /* Aquí podrías poner un ícono SVG de fondo si quisieras */
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.5 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}