.formulario-hbm-contacto-container { width: auto !important; max-width: 1200px !important; margin: 0 auto !important; padding: 20px !important; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; }
            .formulario-hbm-contacto-container #formulario-hbm-contacto { background: linear-gradient(135deg,rgb(255, 255, 255) 0%,rgb(255, 255, 255) 100%) !important; border-radius: 20px !important; padding: 0 !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important; border: none !important; }
            .formulario-hbm-contacto-container .form-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 25px !important; }
            .formulario-hbm-contacto-container .form-section { background: rgba(255, 255, 255, 0.98) !important; margin: 20px !important; padding: 30px !important; border-radius: 15px !important; }
            .formulario-hbm-contacto-container .form-group { display: flex !important; flex-direction: column !important; }
            .formulario-hbm-contacto-container .form-group-full { grid-column: 1 / -1 !important; }
            .formulario-hbm-contacto-container .form-group input, .formulario-hbm-contacto-container .form-group select { width: 100% !important; padding: 15px 18px !important; border: 2px solid #e1e8ed !important; border-radius: 12px !important; background: #ffffff !important; box-sizing: border-box !important; }
            .form-message { padding: 15px !important; border-radius: 8px !important; margin-bottom: 20px !important; font-weight: bold !important; }
            .form-message.error { background-color: #fee !important; color: #c33 !important; border: 1px solid #fcc !important; }
            .form-message.success { background-color: #efe !important; color: #363 !important; border: 1px solid #cfc !important; }
            .recaptcha-container { display: flex !important; justify-content: center !important; margin: 20px 0 !important; }
            @media (max-width: 768px) { .formulario-hbm-contacto-container .form-grid { grid-template-columns: 1fr !important; } }
       
/* Estilos generales con mayor especificidad */
.formulario-hbm-contacto-container *,
.formulario-hbm-contacto-container *::before,
.formulario-hbm-contacto-container *::after {
    box-sizing: border-box !important;
}

.mi-textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical; /* permite ajustar solo la altura */
}
/* Contenedor principal */
.formulario-hbm-contacto-container {
    width: auto !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    clear: both !important;
    position: relative !important;
}

/* Formulario principal */
.formulario-hbm-contacto-container #formulario-hbm-contacto {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    position: relative !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

#formulario-hbm-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 400% 400%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* Secciones del formulario */
.form-section {
    background: rgba(255, 255, 255, 0.98);
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Títulos de sección */
.form-section h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
    position: relative;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.form-section:hover h3::after {
    width: 120px;
}

/* Grid de campos */
.formulario-hbm-contacto-container .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Grupos de campos */
.formulario-hbm-contacto-container .form-group {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    margin: 0 !important;
}

.formulario-hbm-contacto-container .form-group-full {
    grid-column: 1 / -1 !important;
}

/* Etiquetas */
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.form-group label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group:has(input[required]) label::after,
.form-group:has(select[required]) label::after {
    opacity: 1;
}

/* Inputs y selects */
.formulario-hbm-contacto-container .form-group input[type="text"],
.formulario-hbm-contacto-container .form-group input[type="email"],
.formulario-hbm-contacto-container .form-group input[type="tel"],
.formulario-hbm-contacto-container .form-group input[type="date"],
.formulario-hbm-contacto-container .form-group select {
    width: 100% !important;
    padding: 15px 18px !important;
    font-size: 16px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #b4c6fc;
}

/* Placeholder mejorado */
.form-group input::placeholder {
    color: #a0aec0;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder {
    opacity: 0.5;
}

/* Campos deshabilitados */
.form-group input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Radio buttons personalizados */
.radio-group {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label:hover .radio-custom {
    border-color: #b4c6fc;
}

/* Acciones del formulario */
.form-actions {
    background: rgba(255, 255, 255, 0.98);
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Botón de envío */
#submit-button {
    background: linear-gradient(135deg, #25687a 0%, #25687a 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(37, 104, 122);
    min-width: 200px;
    justify-content: center;
}

#submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

#submit-button:active {
    transform: translateY(0);
}

#submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner para el botón */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Iconos de sección (usando pseudo-elementos) */
.form-section h3 i::before {
    content: '👤';
    font-style: normal;
}

.form-section h3 i.icon-location::before {
    content: '📍';
}

.form-section h3 i.icon-family::before {
    content: '👨‍👩‍👧‍👦';
}

.form-section h3 i.icon-book::before {
    content: '📚';
}

.form-section h3 i.icon-health::before {
    content: '🏥';
}

/* Mensajes de error y éxito */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px;
    font-weight: 500;
    text-align: center;
}

.form-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.form-message.success {
    background-color: #efe;
    color: #363;
    border: 1px solid #cfc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .formulario-hbm-contacto-container {
        padding: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group-full {
        grid-column: 1;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 26px;
    }
    
    .form-section {
        margin: 15px;
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    #submit-button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-section {
        margin: 10px;
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }