/* Territorios Inteligentes - Contact Form Styles */

.contacto-seccion { 
    padding: 80px 20px; 
    background-color: #f8fafc; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
}

.contacto-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 50px; 
    background: white; 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
}

.info-header h2 { 
    font-size: 2.2rem; 
    color: #0f172a; 
    margin-bottom: 10px; 
    font-weight: 800; 
}

.info-header p { 
    color: #64748b; 
    margin-bottom: 40px; 
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-detalles { 
    margin-bottom: 30px; 
}

.info-item { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 25px; 
    align-items: flex-start; 
}

.info-item .icon { 
    background: #eff6ff; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px; 
    font-size: 1.2rem; 
    flex-shrink: 0;
}

.info-item .text h4 { 
    margin: 0 0 5px 0; 
    color: #0f172a; 
    font-weight: 700; 
    font-size: 1rem;
}

.info-item .text p { 
    margin: 0; 
    color: #64748b; 
    font-size: 0.95rem; 
}

.mapa-wrapper { 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    transition: all 0.3s ease;
    position: relative;
}

.mapa-wrapper:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.mapa-wrapper::after {
    content: "🗺️ Click para abrir en Google Maps";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 102, 255, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.mapa-wrapper:hover::after {
    opacity: 1;
}

.contacto-form-wrapper {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
}

.contacto-form h3 { 
    font-size: 1.5rem; 
    color: #0f172a; 
    margin-bottom: 25px; 
    font-weight: 700; 
}

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

.form-group label { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #334155; 
    margin-bottom: 8px; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    font-size: 1rem; 
    background: #ffffff; 
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: #0066ff; 
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1); 
}

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

.btn-enviar { 
    width: 100%; 
    background-color: #0066ff; 
    color: white; 
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 10px 15px rgba(0, 102, 255, 0.2); 
}

.btn-enviar:hover { 
    background-color: #0052cc; 
    transform: translateY(-2px); 
    box-shadow: 0 20px 25px rgba(0, 102, 255, 0.3); 
}

.btn-enviar:active {
    transform: translateY(0);
}

.btn-enviar:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensajes de estado del formulario */
#ti-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

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

#ti-form-messages.success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    display: block;
}

#ti-form-messages.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    display: block;
}

/* Responsive */
@media (max-width: 900px) { 
    .contacto-container { 
        grid-template-columns: 1fr; 
        padding: 30px 20px; 
        gap: 30px;
    }
    
    .info-header h2 {
        font-size: 1.8rem;
    }
    
    .contacto-form-wrapper {
        padding: 25px 20px;
    }
}

@media (max-width: 600px) {
    .contacto-seccion {
        padding: 40px 15px;
    }
    
    .contacto-container {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .info-header h2 {
        font-size: 1.6rem;
    }
    
    .mapa-wrapper::after {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}
