/* ===================================================
   UBI-SALUD COMPONENT STYLES (EXACT 1:1 FIDELITY)
   =================================================== */

/* Ocultar divisores negros de Elementor */
.elementor-shape,
.elementor-shape-top,
.elementor-shape-bottom,
.elementor-shape-fill {
    display: none !important;
}

/* ---------------------------------------------------
   1. BUSCADOR PRINCIPAL (Imagen 1)
   --------------------------------------------------- */
.ubi-search-container {
    max-width: 1140px;
    margin: 20px auto 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

.ubi-search-form {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.ubi-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    position: relative;
    min-width: 0;
}

.ubi-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.ubi-field-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.ubi-field-content.ubi-no-icon {
    padding-left: 4px;
}

.ubi-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #003057;
    margin: 0 0 2px 0;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
    font-family: 'Raleway', sans-serif;
}

.ubi-field-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    height: auto !important;
    line-height: 1.4 !important;
    width: 100% !important;
    font-family: 'Raleway', sans-serif !important;
}

.ubi-field-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.ubi-field-select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 16px 0 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    height: auto !important;
    line-height: 1.4 !important;
    width: 100% !important;
    cursor: pointer !important;
    font-family: 'Raleway', sans-serif !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
}

.ubi-search-divider {
    width: 1px;
    height: 36px;
    background-color: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

.ubi-search-submit {
    background: #29c3a7 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(41, 195, 167, 0.3) !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
}

.ubi-search-submit:hover {
    background: #23ad94 !important;
    transform: translateY(-1px);
}

/* ---------------------------------------------------
   2. LAS 6 TARJETAS DE SERVICIOS (Imagen 2)
   --------------------------------------------------- */
.elementor-element-1dd8b567 {
    background-color: #ECF3F9 !important;
}

.ubi-card-box {
    background-color: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #edf2f7 !important;
    padding: 22px 14px 18px 14px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 215px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    box-sizing: border-box !important;
}

.elementor-inner-column:hover .ubi-card-box,
.ubi-card-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 22px rgba(41, 195, 167, 0.12) !important;
    border-color: #29c3a7 !important;
}

.ubi-card-icon-wrap {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

.ubi-card-heading {
    font-family: 'Raleway', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #003057 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.ubi-card-text {
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: center !important;
    min-height: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.ubi-card-text p {
    font-family: 'Raleway', sans-serif !important;
    font-size: 12px !important;
    color: #718096 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ubi-card-action {
    margin-top: 2px !important;
    text-align: center !important;
    width: 100% !important;
}

.ubi-card-link {
    font-family: 'Raleway', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #29c3a7 !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ubi-card-link:hover {
    color: #1ea58d !important;
}

/* ---------------------------------------------------
   11. AUTH & MY PROFILE PAGE (EXACT 1:1 FIDELITY)
   --------------------------------------------------- */
.ubi-auth-container {
    max-width: 500px;
    margin: 40px auto 80px auto;
    padding: 0 15px;
}

.ubi-auth-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 28px;
    position: relative;
}

.ubi-auth-tab {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 14px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease !important;
    font-family: 'Poppins', sans-serif !important;
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
}

.ubi-auth-tab:hover {
    color: #29c3a7 !important;
}

.ubi-auth-tab.active {
    color: #29c3a7 !important;
    font-weight: 600 !important;
}

.ubi-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #29c3a7;
    border-radius: 2px 2px 0 0;
}

.ubi-auth-panel {
    display: none;
}

.ubi-auth-panel.active {
    display: block;
    animation: ubiFadeIn 0.2s ease-in-out;
}

@keyframes ubiFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.ubi-field-wrap {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.ubi-field-wrap input[type="text"],
.ubi-field-wrap input[type="password"],
.ubi-field-wrap input[type="email"] {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 45px 0 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    font-size: 14.5px !important;
    color: #1e293b !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ubi-field-wrap select {
    height: 50px !important;
    min-height: 50px !important;
    line-height: normal !important;
    padding: 12px 42px 12px 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    font-size: 14.5px !important;
    color: #1e293b !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ubi-field-wrap select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 14.5px !important;
}

.ubi-field-wrap select option:disabled {
    color: #94a3b8 !important;
}

.ubi-field-wrap input:focus,
.ubi-field-wrap select:focus {
    border-color: #29c3a7 !important;
    box-shadow: 0 0 0 3px rgba(41, 195, 167, 0.15) !important;
    outline: none !important;
}

.ubi-field-wrap.ubi-has-error input,
.ubi-field-wrap.ubi-has-error select {
    border-color: #e53e3e !important;
}

.ubi-input-left-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.ubi-pwd-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: color 0.2s ease;
}

.ubi-pwd-toggle-btn:hover {
    color: #29c3a7;
}

.ubi-select-chevron-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    z-index: 3;
}

.ubi-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
    text-align: left;
}

.ubi-lost-pwd {
    display: inline-block;
    font-size: 13.5px;
    color: #666666;
    text-decoration: none;
    margin-top: 2px;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.ubi-lost-pwd:hover {
    color: #29c3a7;
    text-decoration: underline;
}

.ubi-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #29c3a7 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 38px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    margin-bottom: 18px !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 4px 14px rgba(41, 195, 167, 0.25) !important;
    height: auto !important;
    line-height: normal !important;
    text-decoration: none !important;
}

.ubi-auth-btn:hover {
    background-color: #23ab93 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(41, 195, 167, 0.35) !important;
}

.ubi-remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
}

.ubi-remember-checkbox {
    width: 17px !important;
    height: 17px !important;
    border-radius: 3px !important;
    border: 1px solid #ccc !important;
    accent-color: #29c3a7 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    box-shadow: none !important;
}

/* Alert notifications */
.ubi-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ubi-alert-success {
    background-color: #e6fcf5;
    border: 1px solid #b7f0e0;
    color: #0c8569;
}

.ubi-alert-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.ubi-alert ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
}

/* Profile Card (Authenticated View) */
.ubi-profile-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    padding: 36px;
    text-align: center;
}

.ubi-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29c3a7 0%, #17a2b8 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(41, 195, 167, 0.3);
}

.ubi-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.ubi-profile-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ubi-badge-paciente {
    background: #e0f2fe;
    color: #0369a1;
}

.ubi-badge-medico {
    background: #e6fcf5;
    color: #0c8569;
}

.ubi-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.ubi-profile-info-item {
    font-size: 13.5px;
}

.ubi-profile-info-label {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.ubi-profile-info-value {
    color: #1e293b;
    font-weight: 600;
}

/* ---------------------------------------------------
   12. USER ACCOUNT HOVER DROPDOWN MENU
   --------------------------------------------------- */
.ubi-user-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ubi-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Hero Section Background Fidelity */
.elementor-156 .elementor-element.elementor-element-fef86d6,
.elementor-element-fef86d6,
.elementor-156 .elementor-element.elementor-element-fef86d6:not(.elementor-motion-effects-element-type-background),
.elementor-156 .elementor-element.elementor-element-fef86d6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("/images/Png-2.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Triangle caret on top of dropdown */
.ubi-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #eef2f6;
    border-top: 1px solid #eef2f6;
    transform: rotate(45deg);
}

.ubi-user-menu-wrapper:hover .ubi-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ubi-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.ubi-user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29c3a7 0%, #17a2b8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(41, 195, 167, 0.3);
}

.ubi-user-dropdown-info {
    overflow: hidden;
    text-align: left;
}

.ubi-user-dropdown-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ubi-user-dropdown-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ubi-user-dropdown-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ubi-user-dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 8px 0;
}

.ubi-user-dropdown-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ubi-user-dropdown-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.ubi-user-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.ubi-user-dropdown-item:hover {
    background: #f8fafc !important;
    color: #29c3a7 !important;
}

/* ---------------------------------------------------
   13. HOME SEARCH RESULTS SECTION
   --------------------------------------------------- */
.ubi-search-results-section {
    max-width: 1200px;
    margin: 30px auto 40px auto;
    padding: 0 20px;
}

.ubi-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
    flex-wrap: wrap;
    gap: 12px;
}

.ubi-search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.ubi-search-results-badge {
    background: #e6fcf5;
    color: #0c8569;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.ubi-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.ubi-doctor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ubi-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(41, 195, 167, 0.15);
    border-color: #b7f0e0;
}

.ubi-doctor-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29c3a7 0%, #17a2b8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(41, 195, 167, 0.25);
}

.ubi-doctor-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ubi-doctor-spec-badge {
    display: inline-block;
    background: #e6fcf5;
    color: #0c8569;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 10px;
}

.ubi-doctor-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 18px;
}

.ubi-doctor-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.ubi-doctor-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ubi-doctor-btn-primary {
    background-color: #29c3a7;
    color: #ffffff !important;
    border: none;
}

.ubi-doctor-btn-primary:hover {
    background-color: #22a991;
    color: #ffffff !important;
}

.ubi-doctor-btn-outline {
    background-color: transparent;
    color: #29c3a7 !important;
    border: 1.5px solid #29c3a7;
}

.ubi-doctor-btn-outline:hover {
    background-color: #29c3a7;
    color: #ffffff !important;
}

.ubi-no-results-card {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}


/* ---------------------------------------------------
   RESPONSIVIDAD MÓVIL Y TABLET
   --------------------------------------------------- */
@media (max-width: 1024px) {
    .elementor-element-13ec0a60 .elementor-container {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .elementor-element-13ec0a60 .elementor-col-16 {
        width: 33.333% !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
    .ubi-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }

    .ubi-search-divider {
        display: none;
    }

    .ubi-search-field {
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .ubi-search-submit {
        margin-left: 0 !important;
        justify-content: center;
        width: 100%;
        padding: 14px !important;
    }

    .elementor-element-13ec0a60 .elementor-col-16 {
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .elementor-element-13ec0a60 .elementor-col-16 {
        width: 100% !important;
    }
}

/* ---------------------------------------------------
   5. HEADER ACTIONS & SELECTOR DE IDIOMA (ES / EN)
   --------------------------------------------------- */
.elementor-372 .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Columna 1: Logo (Más grande y más alto) */
.elementor-element-6340c947 {
    width: 250px !important;
    max-width: 260px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.elementor-element-6340c947 .elementor-widget-container,
.elementor-element-296ffef {
    width: 100% !important;
    max-width: 260px !important;
}

.elementor-element-6340c947 img,
.elementor-element-296ffef img {
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Columna 2: Menú Navegación (Letras con menos peso / más ligeras) */
.elementor-element-465284ce {
    flex-grow: 1 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 15px !important;
}

.elementor-element-465284ce .wpr-nav-menu-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.elementor-element-465284ce ul.wpr-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 18px !important;
}

.elementor-element-465284ce ul.wpr-nav-menu > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.elementor-element-465284ce ul.wpr-nav-menu > li > a {
    white-space: nowrap !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    padding: 8px 4px !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0.2px !important;
}

.elementor-element-465284ce ul.wpr-nav-menu > li > a:hover {
    color: #29c3a7 !important;
}

.elementor-element-465284ce ul.wpr-nav-menu > li.current-menu-item > a,
.elementor-element-465284ce ul.wpr-nav-menu > li > a.wpr-active-menu-item {
    color: #ff6b6b !important;
    font-weight: 400 !important;
    position: relative !important;
}

.elementor-element-465284ce ul.wpr-nav-menu > li.current-menu-item > a::after,
.elementor-element-465284ce ul.wpr-nav-menu > li > a.wpr-active-menu-item::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #ff6b6b !important;
    border-radius: 2px !important;
}

/* Columna 3: Botones y Selector de Idioma (Más altos) */
.elementor-element-739410a5 {
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
}

.elementor-element-739410a5 .elementor-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
}

.elementor-element-739410a5 .elementor-element {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Iniciar sesión (Más alto) */
.elementor-element-4d6bc051 .wpr-button {
    white-space: nowrap !important;
    background-color: #ffffff !important;
    border: 1.5px solid #29c3a7 !important;
    color: #29c3a7 !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.elementor-element-4d6bc051 .wpr-button .wpr-button-text {
    color: #29c3a7 !important;
    font-weight: 400 !important;
}

.elementor-element-4d6bc051 .wpr-button:hover {
    background-color: #29c3a7 !important;
    color: #ffffff !important;
}

.elementor-element-4d6bc051 .wpr-button:hover .wpr-button-text {
    color: #ffffff !important;
}

/* Regístrate (Más alto) */
.elementor-element-9d4235d .wpr-button {
    white-space: nowrap !important;
    background-color: #29c3a7 !important;
    border: 1.5px solid #29c3a7 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 22px !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.elementor-element-9d4235d .wpr-button .wpr-button-text {
    color: #ffffff !important;
    font-weight: 400 !important;
}

.elementor-element-9d4235d .wpr-button:hover {
    background-color: #23ad94 !important;
    border-color: #23ad94 !important;
}

/* Selector de Idioma (Banderita ES / EN alineada) */
.ubi-lang-switcher {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    z-index: 1000 !important;
    font-family: "Poppins", Sans-serif !important;
    flex-shrink: 0 !important;
}

.ubi-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0 12px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #333333 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    height: 46px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.ubi-lang-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.ubi-lang-flag {
    width: 24px !important;
    height: 16px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.ubi-lang-text {
    font-weight: 600 !important;
    color: #333333 !important;
    font-size: 13.5px !important;
    line-height: 1 !important;
}

.ubi-lang-caret {
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease !important;
    margin-left: 2px !important;
}

.ubi-lang-switcher.open .ubi-lang-caret {
    transform: rotate(180deg) !important;
}

.ubi-lang-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    background: #ffffff !important;
    min-width: 155px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: none !important;
    z-index: 10000 !important;
    border: 1px solid #e2e8f0 !important;
}

.ubi-lang-switcher.open .ubi-lang-dropdown {
    display: block !important;
}

.ubi-lang-opt {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.ubi-lang-opt:hover {
    background: #f1f5f9 !important;
    color: #29c3a7 !important;
}

.ubi-lang-opt.active {
    background: #e6f9f5 !important;
    color: #29c3a7 !important;
    font-weight: 600 !important;
}

/* Ocultar banners / toolbars molestos de Google Translate */
.goog-te-banner-frame, 
.goog-te-balloon-frame, 
#goog-gt-tt, 
.goog-te-spinner-pos {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.skiptranslate:not(.ubi-lang-switcher) {
    display: none !important;
}

/* ==========================================================================
   Home Search Results Pop-up Modal & Real Database Live Filters
   ========================================================================== */
.ubi-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.ubi-modal-box {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 940px !important;
    height: 86vh !important;
    max-height: 820px !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box !important;
    font-family: "Poppins", Sans-serif !important;
}

.ubi-modal-overlay.active .ubi-modal-box {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.ubi-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.ubi-modal-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.ubi-modal-header-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #e6f9f5 !important;
    color: #29c3a7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ubi-modal-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.ubi-modal-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #e6f9f5 !important;
    color: #0d9488 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    border: 1px solid #b2eee2 !important;
    margin-left: 6px !important;
}

.ubi-modal-close-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ubi-modal-close-btn:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: rotate(90deg) !important;
}

/* Modal In-Popup Filter Bar */
.ubi-modal-filter-bar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 24px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.ubi-mfilter-search {
    flex: 1.4 !important;
    min-width: 180px !important;
    position: relative !important;
}

.ubi-mfilter-search svg {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
}

.ubi-mfilter-search input {
    width: 100% !important;
    height: 42px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 12px 0 36px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.ubi-mfilter-search input:focus {
    border-color: #29c3a7 !important;
    box-shadow: 0 0 0 3px rgba(41, 195, 167, 0.15) !important;
}

.ubi-mfilter-select-wrap {
    flex: 1.1 !important;
    min-width: 150px !important;
    position: relative !important;
}

.ubi-mfilter-select-wrap select {
    width: 100% !important;
    height: 42px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 28px 0 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ubi-mfilter-select-wrap select:focus {
    border-color: #29c3a7 !important;
    box-shadow: 0 0 0 3px rgba(41, 195, 167, 0.15) !important;
}

.ubi-mfilter-select-wrap svg {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
}

.ubi-mfilter-reset-btn {
    height: 42px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.ubi-mfilter-reset-btn:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}

/* Modal Body (Scrollable List) */
.ubi-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 18px 24px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
}

.ubi-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ubi-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ubi-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ubi-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ubi-modal-doctors-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.ubi-modal-doc-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.ubi-modal-doc-card:hover {
    border-color: #29c3a7 !important;
    box-shadow: 0 6px 18px rgba(41, 195, 167, 0.12) !important;
    transform: translateY(-2px) !important;
}

.ubi-modal-doc-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.ubi-modal-doc-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #29c3a7 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 3px 8px rgba(41, 195, 167, 0.25) !important;
}

.ubi-modal-doc-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.ubi-modal-doc-name {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 5px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ubi-modal-doc-badges {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.ubi-modal-spec-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #e6f9f5 !important;
    color: #0d9488 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 2px 9px !important;
    border-radius: 6px !important;
}

.ubi-modal-loc-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.ubi-modal-loc-tag svg {
    color: #29c3a7 !important;
}

.ubi-modal-doc-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.ubi-modal-btn-tel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #29c3a7 !important;
    color: #ffffff !important;
    border-radius: 7px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(41, 195, 167, 0.25) !important;
}

.ubi-modal-btn-tel:hover {
    background: #23ad94 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.ubi-modal-btn-wa {
    width: 36px !important;
    height: 36px !important;
    border-radius: 7px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25) !important;
}

.ubi-modal-btn-wa:hover {
    background: #20ba5a !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

/* Empty State */
.ubi-modal-empty {
    text-align: center !important;
    padding: 45px 20px !important;
}

.ubi-modal-empty-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}

.ubi-modal-empty-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
}

.ubi-modal-empty-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin-bottom: 16px !important;
}

/* Modal Footer */
.ubi-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 24px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.ubi-modal-footer-info {
    font-size: 13px !important;
    color: #64748b !important;
}

.ubi-modal-footer-close {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 7px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ubi-modal-footer-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

@media (max-width: 768px) {
    .ubi-modal-filter-bar {
        flex-wrap: wrap !important;
    }
    .ubi-mfilter-search {
        flex: 1 1 100% !important;
    }
    .ubi-mfilter-select-wrap {
        flex: 1 1 calc(50% - 6px) !important;
    }
    .ubi-mfilter-reset-btn {
        flex: 1 1 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 580px) {
    .ubi-modal-box {
        height: 94vh !important;
        border-radius: 12px !important;
    }
    .ubi-modal-doc-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .ubi-modal-doc-actions {
        width: 100% !important;
        margin-top: 8px !important;
    }
    .ubi-modal-btn-tel {
        flex: 1 !important;
        justify-content: center !important;
    }
}

/* ==========================================================
   RESPONSIVE NAVBAR & MOBILE HAMBURGER DRAWER
   ========================================================== */
.ubi-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 100;
}

.ubi-mobile-menu-toggle:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.ubi-hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ubi-mobile-menu-toggle.active .ubi-hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: #0d9488;
}

.ubi-mobile-menu-toggle.active .ubi-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ubi-mobile-menu-toggle.active .ubi-hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: #0d9488;
}

/* Mobile Nav Overlay & Drawer */
.ubi-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ubi-mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ubi-mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999999;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: "Poppins", Sans-serif;
}

.ubi-mobile-nav-drawer.active {
    right: 0;
}

.ubi-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ubi-mobile-nav-logo img {
    height: 34px;
    width: auto;
}

.ubi-mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubi-mobile-nav-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ubi-mobile-nav-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.ubi-mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ubi-mobile-nav-links li a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ubi-mobile-nav-links li a:hover,
.ubi-mobile-nav-links li a.active {
    background: #f0fdf9;
    color: #0d9488;
    font-weight: 600;
}

.ubi-mobile-nav-links li a.active {
    border-left: 4px solid #29c3a7;
}

.ubi-mobile-nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 2px 0;
}

/* Mobile Auth Section */
.ubi-mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ubi-mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29c3a7 0%, #0d9488 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ubi-mobile-user-info {
    flex: 1;
    overflow: hidden;
}

.ubi-mobile-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ubi-mobile-user-email {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ubi-mobile-auth-actions,
.ubi-mobile-auth-guest {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ubi-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ubi-mobile-btn-login {
    background: #f0fdf9;
    color: #0d9488;
    border: 1.5px solid #29c3a7;
}

.ubi-mobile-btn-login:hover {
    background: #e6f9f5;
    color: #0c8569;
}

.ubi-mobile-btn-register {
    background: linear-gradient(135deg, #fd3101 0%, #e92c00 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(253, 49, 1, 0.25);
}

.ubi-mobile-btn-register:hover {
    box-shadow: 0 6px 16px rgba(253, 49, 1, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.ubi-mobile-btn-profile {
    background: #0d9488;
    color: #ffffff;
}

.ubi-mobile-btn-profile:hover {
    background: #0c8569;
    color: #ffffff;
}

.ubi-mobile-btn-logout {
    background: #fee2e2;
    color: #dc2626;
}

.ubi-mobile-btn-logout:hover {
    background: #fecaca;
}

/* Mobile Language Section */
.ubi-mobile-lang-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ubi-mobile-lang-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ubi-mobile-lang-pills {
    display: flex;
    gap: 8px;
}

.ubi-mobile-lang-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubi-mobile-lang-pill img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.ubi-mobile-lang-pill.active {
    border-color: #29c3a7;
    background: #f0fdf9;
    color: #0d9488;
    box-shadow: 0 2px 6px rgba(41, 195, 167, 0.15);
}

/* Header Responsive Media Queries (Solo en teléfono / tablet <= 991px) */
@media (max-width: 991px) {
    .ubi-mobile-menu-toggle {
        display: flex !important;
    }
    
    .elementor-372 .elementor-element.elementor-element-3d34050 > .elementor-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 75px !important;
        padding: 10px 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .elementor-372 .elementor-element.elementor-element-6340c947 {
        width: auto !important;
        max-width: 230px !important;
        flex: 0 0 auto !important;
    }

    .elementor-372 .elementor-element.elementor-element-6340c947 > .elementor-widget-wrap {
        margin: 0 !important;
        padding: 0 !important;
    }

    .elementor-372 .elementor-element.elementor-element-296ffef {
        width: 100% !important;
        max-width: 230px !important;
    }

    .elementor-372 .elementor-element.elementor-element-296ffef img {
        max-height: 54px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .elementor-372 .elementor-element.elementor-element-465284ce {
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .elementor-372 .elementor-element.elementor-element-465284ce .wpr-nav-menu-container {
        display: none !important;
    }

    .elementor-372 .elementor-element.elementor-element-465284ce .wpr-mobile-nav-menu-container {
        display: none !important;
    }

    .elementor-372 .elementor-element.elementor-element-739410a5 {
        display: none !important;
    }
}



