/**
 * ESTILOS MODERNOS PARA FORMULARIO DE CONTACTO
 * Consistente con el sistema de diseño moderno
 */

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */

.contacto-modern {
    padding: 60px 0;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

@media (max-width: 767px) {
    .contacto-modern {
        padding: 40px 0;
    }
}

/* ===========================
   TÍTULO
   =========================== */

.contacto-modern h3 {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 3rem;
    line-height: 1.3 !important;
}

.contacto-modern h3.color-primary {
    color: #0ea5e9 !important;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.contacto-modern h3.color-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 2px;
}

/* ===========================
   LAYOUT DE DOS COLUMNAS
   =========================== */

.contacto-content-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .contacto-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===========================
   FORMULARIO - TARJETA
   =========================== */

.form-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.form-card-modern:hover {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
}

/* ===========================
   CAMPOS DEL FORMULARIO
   =========================== */

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    font-family: "Source-B", "Source Sans Pro", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group-modern label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group-modern .label-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #0ea5e9;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: "Source", "Source Sans Pro", sans-serif;
    font-size: 1rem;
    color: #334155;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input-modern::placeholder {
    color: #94a3b8;
}

/* Textarea específico */
textarea.form-input-modern {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Campo honeypot (oculto para bots) */
.form-group-modern.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===========================
   CAPTCHA
   =========================== */

.captcha-container-modern {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.captcha-container-modern p {
    margin: 0 0 1rem 0;
    font-family: "Source", sans-serif;
    font-size: 0.9375rem;
    color: #475569;
}

.captcha-image-modern {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 0 1rem 0;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
}

.captcha-input-modern {
    width: 100%;
    max-width: 200px;
    padding: 0.625rem 1rem;
    font-family: "Source", sans-serif;
    font-size: 1rem;
    color: #334155;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.captcha-input-modern:focus {
    outline: none;
    border-color: #0ea5e9;
}

.captcha-refresh-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Source-B", sans-serif;
    font-size: 0.875rem;
    color: #0ea5e9;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.captcha-refresh-modern:hover {
    color: #0284c7;
    background: #f0f9ff;
    text-decoration: none;
}

.captcha-refresh-modern i {
    font-size: 1rem;
}

/* ===========================
   BOTÓN SUBMIT
   =========================== */

.btn-submit-modern {
    width: 100%;
    padding: 1rem 2rem;
    font-family: "Source-B", "Source Sans Pro", sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-submit-modern:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-submit-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* ===========================
   NOTA DE CAMPOS OBLIGATORIOS
   =========================== */

.required-note-modern {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-family: "Source", sans-serif;
    font-size: 0.875rem;
    color: #92400e;
}

/* ===========================
   INFORMACIÓN DE CONTACTO
   =========================== */

.info-card-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.contact-info-modern {
    margin-bottom: 2rem;
}

.contact-info-modern h4 {
    font-family: "Source-B", "Source Sans Pro", sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0ea5e9;
}

.contact-info-modern p {
    font-family: "Source", "Source Sans Pro", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.5rem;
}

.contact-info-modern strong {
    font-family: "Source-B", sans-serif;
    color: #0ea5e9;
}

.contact-info-modern a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-modern a:hover {
    color: #0284c7;
    text-decoration: underline;
}

.contact-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item-modern i {
    color: #0ea5e9;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.contact-item-modern .contact-detail {
    flex: 1;
}

/* ===========================
   MAPA
   =========================== */

.map-container-modern {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.map-container-modern iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===========================
   BOTÓN FLOTANTE DE LLAMADA (MÓVIL)
   =========================== */

.btn-llamada-modern {
    display: none;
}

@media (max-width: 767px) {
    .btn-llamada-modern {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 0;
        margin: 0;
    }
    
    .btn-llamada-modern a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: #ffffff;
        text-decoration: none;
        font-family: "Source-B", sans-serif;
        font-size: 1.125rem;
        font-weight: 600;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .btn-llamada-modern a:hover {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    }
    
    .btn-llamada-modern a i {
        font-size: 1.5rem;
    }
    
    /* Ajustar padding inferior del contenedor cuando hay botón flotante */
    .contacto-modern {
        padding-bottom: 80px;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 767px) {
    .contacto-modern h3 {
        font-size: 1.5rem !important;
    }
    
    .form-card-modern,
    .info-card-modern {
        padding: 1.5rem;
    }
    
    .map-container-modern iframe {
        height: 300px;
    }
}

/* ===========================
   ESTADOS DE VALIDACIÓN
   =========================== */

.form-input-modern:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input-modern:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* ===========================
   ANIMACIONES
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacto-modern.wow.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}
