/* =============================================================================
   SentirIA · estilos i18n compartidos (toggle + popup)
   ============================================================================= */

/* Toggle ES/EN del navbar */
.lang-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    list-style: none;
    padding: 0;
}
.lang-btn {
    background: transparent;
    color: rgba(255,255,255,.6);
    border: none;
    padding: 5px 11px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}
.lang-btn + .lang-btn { border-left: 1px solid rgba(255,255,255,.15); }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: rgba(39,174,96,.25); color: #fff; }

/* Popup de sugerencia de idioma */
.lang-popup {
    position: fixed;
    bottom: 24px; right: 24px;
    max-width: 360px;
    background: rgba(13, 18, 51, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(78,205,196,.12);
    padding: 18px 20px 16px;
    color: #fff;
    z-index: 10000;
    font-family: 'Inter', -apple-system, sans-serif;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform .55s cubic-bezier(.2,1.3,.4,1), opacity .35s ease;
}
.lang-popup.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.lang-popup-close {
    position: absolute;
    top: 8px; right: 10px;
    background: none; border: none;
    color: rgba(255,255,255,.45);
    cursor: pointer; font-size: 16px;
    padding: 2px 6px; line-height: 1;
    transition: color .2s;
}
.lang-popup-close:hover { color: #fff; }
.lang-popup-icon {
    font-size: 22px;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 8px rgba(78,205,196,.4));
}
.lang-popup-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    color: #fff;
}
.lang-popup-text span {
    color: rgba(255,255,255,.68);
    font-size: .85rem;
    line-height: 1.45;
}
.lang-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.lang-popup-btn {
    flex: 1;
    font-size: .8rem;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: .2s;
}
.lang-popup-btn-primary {
    background: linear-gradient(135deg, #27AE60, #2ecc71);
    color: #fff;
}
.lang-popup-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(39,174,96,.35);
}
.lang-popup-btn-ghost {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
}
.lang-popup-btn-ghost:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
@media (max-width: 520px) {
    .lang-popup {
        bottom: 16px;
        left: 16px; right: 16px;
        max-width: none;
    }
}
