/* LINEAGE2 — Panel de registro MMORPG */

/* Quitar franja oscura del header (tema Nasa / sticky) en páginas del panel */
body.lineage2-banner-bg #header-content,
body.lineage2-banner-bg #header-content .header-wrapper,
body.lineage2-banner-bg #header-content .sticky-wrapper,
body.lineage2-banner-bg #header-content .sticky-wrapper.is-sticky,
body.lineage2-banner-bg #masthead,
body.lineage2-banner-bg .site-header,
body.lineage2-banner-bg .header-type-5,
body.lineage2-banner-bg .nasa-header-flex,
body.lineage2-banner-bg .nasa-elements-wrap,
body.lineage2-banner-bg.home #header-content,
body.lineage2-banner-bg.home #masthead,
body.lineage2-banner-bg.home .header-wrapper,
body.lineage2-banner-bg.home .sticky-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.lineage2-banner-bg #header-content::before,
body.lineage2-banner-bg #header-content::after,
body.lineage2-banner-bg #masthead::before,
body.lineage2-banner-bg #masthead::after,
body.lineage2-banner-bg .header-wrapper::before,
body.lineage2-banner-bg .header-wrapper::after,
body.lineage2-banner-bg .sticky-wrapper::before,
body.lineage2-banner-bg .sticky-wrapper::after,
body.lineage2-banner-bg .site-header::before,
body.lineage2-banner-bg .site-header::after,
body.lineage2-banner-bg .header-type-5::before,
body.lineage2-banner-bg .header-type-5::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
}

.lineage2-panel.l2-register {
    --l2-gold: #d13a3a;
    --l2-gold-bright: #e34a4a;
    --l2-gold-dim: #8e1717;
    --l2-panel-bg: #12151c;
    --l2-panel-inner: #1a1f28;
    --l2-input-bg: #0c0e14;
    --l2-text: #dedede;
    --l2-text-muted: #bdbdbd;
    --l2-border: rgba(209, 58, 58, 0.45);
    --l2-glow: 0 0 18px rgba(209, 58, 58, 0.25);
    --l2-danger: #c44a4a;
    --l2-success: #4a9c5c;
    font-family: 'Cinzel', 'Kurale', Georgia, serif;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Hueco bajo logo 188px — desk afina (~11.5rem / punto medio) */
    padding: 11.5rem 0.75rem 0.65rem;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

/*
 * Logo: conservar la proporcion original; el ancho lo configura el tema.
 */
html body.lineage2-banner-bg .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.home .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-register .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-recovery .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-confirm-account .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.lineage2-page-register .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.lineage2-page-recovery .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.lineage2-page-confirm .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-id-3823 .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-id-3962 .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.page-id-3845 .logo .header_logo:not(.logo_sticky):not(.logo_mobile),
html body.single-product .logo .header_logo:not(.logo_sticky):not(.logo_mobile) {
    height: auto !important;
    object-fit: contain !important;
}

html body.admin-bar.page-register .lineage2-panel.l2-register,
html body.admin-bar.page-recovery .lineage2-panel.l2-register,
html body.admin-bar.page-confirm-account .lineage2-panel.l2-register,
html body.admin-bar.lineage2-page-register .lineage2-panel.l2-register,
html body.admin-bar.lineage2-page-recovery .lineage2-panel.l2-register,
html body.admin-bar.lineage2-page-confirm .lineage2-panel.l2-register,
html body.admin-bar.page-id-3823 .lineage2-panel.l2-register,
html body.admin-bar.page-id-3962 .lineage2-panel.l2-register {
    padding-top: 12.25rem;
}

/* Confirm: el orbe del header llega a 300px; 11.5rem (184px) lo pisa */
.lineage2-panel.l2-register.l2-confirm {
    padding-top: 19rem;
}
html body.admin-bar .lineage2-panel.l2-register.l2-confirm {
    padding-top: 20rem;
}

/* Empuje extra del contenedor Elementor del shortcode */
body.elementor-page-3823 .elementor-element-4e64f9bb,
body.elementor-page-3962 .elementor-element-bf0d771 {
    margin-top: 0 !important;
    --margin-top: 0px !important;
    padding-top: 0 !important;
}

@media (max-width: 767px) {
    .lineage2-panel.l2-register {
        padding-top: 8.5rem;
        padding-bottom: 1rem;
    }

    html body.admin-bar.page-register .lineage2-panel.l2-register,
    html body.admin-bar.page-recovery .lineage2-panel.l2-register,
    html body.admin-bar.page-confirm-account .lineage2-panel.l2-register {
        padding-top: 10rem;
    }

    .lineage2-panel.l2-register.l2-confirm {
        padding-top: 10.5rem;
    }
    html body.admin-bar .lineage2-panel.l2-register.l2-confirm {
        padding-top: 11.5rem;
    }


}

.lineage2-panel.l2-register *,
.lineage2-panel.l2-register *::before,
.lineage2-panel.l2-register *::after {
    box-sizing: border-box;
}

.l2-register__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.l2-register__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(227, 74, 74, 0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(227, 74, 74, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(227, 74, 74, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(227, 74, 74, 0.4) 0%, transparent 100%);
    animation: l2ParticlesDrift 24s linear infinite;
}

@keyframes l2ParticlesDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.l2-register__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 3px;
    background: linear-gradient(145deg, var(--l2-gold-dim) 0%, var(--l2-gold) 35%, var(--l2-gold-bright) 50%, var(--l2-gold) 65%, var(--l2-gold-dim) 100%);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 8px 28px rgba(0, 0, 0, 0.55),
        var(--l2-glow);
}

.l2-register__frame-inner {
    background:
        linear-gradient(180deg, rgba(26, 31, 40, 0.98) 0%, rgba(18, 21, 28, 0.99) 100%);
    border-radius: 2px;
    padding: 1rem 1.15rem 0.9rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.l2-register__frame-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: 2px;
}

.l2-register__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--l2-gold-bright);
    border-style: solid;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.l2-register__corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.l2-register__corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.l2-register__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.l2-register__corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.l2-register__header {
    text-align: center;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.l2-register__subtitle {
    font-family: 'Kurale', serif;
    font-size: 0.7rem;
    color: #e8c36a;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    opacity: 1;
}

.l2-register .panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--l2-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
    text-shadow:
        0 0 20px rgba(209, 58, 58, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.25;
}

.l2-register .panel-description {
    font-family: 'Kurale', serif;
    font-size: 0.8rem;
    color: #f0f0f0;
    line-height: 1.4;
    max-width: 28rem;
    margin: 0 auto;
}

.l2-register__email-notice {
    font-family: 'Kurale', serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e8c36a;
    line-height: 1.4;
    max-width: 32rem;
    margin: 0.45rem auto 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(232, 195, 106, 0.35);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
}

.l2-oracle-msg {
    position: relative;
    z-index: 1;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 4px;
    text-align: center;
    font-family: 'Kurale', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid;
    animation: l2FadeIn 0.45s ease-out;
}

.l2-oracle-msg--error {
    background: rgba(80, 24, 24, 0.55);
    border-color: rgba(196, 74, 74, 0.6);
    color: #f5b8b8;
    box-shadow: inset 0 0 20px rgba(196, 74, 74, 0.15);
}

.l2-oracle-msg--success {
    background: rgba(24, 60, 36, 0.55);
    border-color: rgba(74, 156, 92, 0.6);
    color: #b8f0c8;
    box-shadow: inset 0 0 20px rgba(74, 156, 92, 0.15);
}

.l2-register .form-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.l2-register .form-inner {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.l2-register #lineage2-register-form {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.l2-field {
    margin-bottom: 0.45rem;
}

.l2-field__label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f2f2f2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.l2-field__icon {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1;
}

.l2-field__input {
    width: 100%;
    padding: 0.45rem 0.7rem;
    background: var(--l2-input-bg);
    border: 1px solid var(--l2-border);
    border-radius: 3px;
    color: var(--l2-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

.l2-field__input::placeholder {
    color: var(--l2-text-muted);
    opacity: 0.65;
    text-transform: none;
    font-weight: 400;
}

.l2-field__input:focus {
    outline: none;
    border-color: var(--l2-gold-bright);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(209, 58, 58, 0.2),
        var(--l2-glow);
    background: #10131a;
}

.l2-field__input.l2-field--error {
    border-color: var(--l2-danger);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(196, 74, 74, 0.25);
}

.l2-power-meter {
    margin-top: 0.45rem;
}

.l2-power-meter__track {
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(209, 58, 58, 0.2);
}

.l2-power-meter__fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.35s ease, background 0.35s ease;
}

.l2-power-meter__fill.l2-power--weak {
    background: linear-gradient(90deg, #8b3030, #c44a4a);
}

.l2-power-meter__fill.l2-power--medium {
    background: linear-gradient(90deg, #8e1717, #e8a030);
}

.l2-power-meter__fill.l2-power--strong {
    background: linear-gradient(90deg, #2d6b3a, #5cb86a);
}

.l2-power-meter__label {
    display: block;
    font-size: 0.72rem;
    color: var(--l2-text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

.l2-pact {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.45rem 0 0.45rem;
    padding: 0.4rem 0.55rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(209, 58, 58, 0.2);
    border-radius: 3px;
}

.l2-pact__checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    accent-color: var(--l2-gold);
    flex-shrink: 0;
    cursor: pointer;
}

.l2-pact__label {
    font-family: 'Kurale', serif;
    font-size: 0.78rem;
    color: #f0f0f0;
    line-height: 1.4;
    cursor: pointer;
}

.l2-pact__label a {
    color: var(--l2-gold-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.l2-pact__label a:hover {
    color: var(--l2-text);
}

.l2-turnstile-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(209, 58, 58, 0.15);
    border-radius: 3px;
}

.l2-register__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.l2-btn-quest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 40px;
    padding: 0.5rem 1.35rem;
    border: 1px solid rgba(150, 195, 255, 0.55);
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Cinzel', 'Kurale', Georgia, serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f2f6ff;
    background: linear-gradient(180deg, rgba(90, 130, 200, 0.55) 0%, rgba(28, 48, 88, 0.98) 42%, rgba(10, 16, 32, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(200, 225, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 16px rgba(60, 120, 220, 0.25);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
    -webkit-tap-highlight-color: transparent;
}

.l2-btn-quest__label {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    color: #f2f6ff;
    text-shadow: 0 0 10px rgba(90, 150, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.l2-btn-quest:hover:not(:disabled):not(.l2-btn-quest--disabled) {
    transform: translateY(-1px);
    border-color: rgba(200, 225, 255, 0.95);
    background: linear-gradient(180deg, rgba(130, 175, 255, 0.72) 0%, rgba(48, 80, 140, 1) 45%, rgba(12, 20, 40, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(230, 240, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 28px rgba(90, 160, 255, 0.5);
}

.l2-btn-quest:active:not(:disabled):not(.l2-btn-quest--disabled) {
    transform: translateY(1px);
    border-color: rgba(90, 130, 200, 0.5);
    background: linear-gradient(180deg, rgba(20, 32, 55, 1) 0%, rgba(8, 12, 22, 1) 100%);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
}

.l2-btn-quest:disabled,
.l2-btn-quest.l2-btn-quest--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
    transform: none;
    border-color: rgba(100, 110, 130, 0.35);
    background: linear-gradient(180deg, #1a1e28 0%, #0e1118 100%);
    box-shadow: none;
}

.l2-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Kurale', serif;
    font-size: 0.88rem;
    color: var(--l2-gold);
}

.l2-loading.l2-loading--visible {
    display: flex;
}

.l2-rune-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(209, 58, 58, 0.25);
    border-top-color: var(--l2-gold-bright);
    border-radius: 50%;
    animation: l2Spin 0.75s linear infinite;
}

@keyframes l2Spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

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

.l2-register__frame-inner {
    animation: l2FadeIn 0.55s ease-out;
}

@media (max-width: 640px) {
    .l2-register .panel-title {
        font-size: 1.15rem;
    }

    .l2-register__frame-inner {
        padding: 1.25rem 1rem 1rem;
    }

    .l2-btn-quest {
        min-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .l2-register__particles,
    .l2-register__frame-inner,
    .l2-oracle-msg {
        animation: none;
    }
}

/* Overrides: tema Elessi / Elementor fuerzan inputs blancos con !important */
.lineage2-panel.l2-register input.l2-field__input[type="text"],
.lineage2-panel.l2-register input.l2-field__input[type="email"],
.lineage2-panel.l2-register input.l2-field__input[type="password"],
.lineage2-panel.l2-register .l2-field__input {
    background-color: var(--l2-input-bg) !important;
    background: var(--l2-input-bg) !important;
    color: var(--l2-text) !important;
    border: 1px solid var(--l2-border) !important;
    border-radius: 3px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45) !important;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: 0.45rem 0.7rem !important;
    -webkit-appearance: none;
    appearance: none;
}

.lineage2-panel.l2-register input.l2-field__input::placeholder {
    color: var(--l2-text-muted) !important;
    opacity: 0.65 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

.lineage2-panel.l2-register input.l2-field__input:focus {
    background-color: #10131a !important;
    background: #10131a !important;
    border-color: var(--l2-gold-bright) !important;
    color: var(--l2-text) !important;
    outline: none !important;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(209, 58, 58, 0.2),
        var(--l2-glow) !important;
}

.lineage2-panel.l2-register input.l2-field__input.l2-field--error {
    border-color: var(--l2-danger) !important;
}

.lineage2-panel.l2-register input.l2-field__input:-webkit-autofill,
.lineage2-panel.l2-register input.l2-field__input:-webkit-autofill:hover,
.lineage2-panel.l2-register input.l2-field__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0c0e14 inset !important;
    -webkit-text-fill-color: #dedede !important;
    caret-color: #dedede !important;
    transition: background-color 99999s ease-out 0s;
}

.lineage2-panel.l2-register .l2-pact__label,
.lineage2-panel.l2-register .l2-pact__label span {
    color: #f0f0f0 !important;
}

.lineage2-panel.l2-register .l2-btn-quest {
    color: #f2f6ff !important;
    border: 1px solid rgba(150, 195, 255, 0.55) !important;
    border-radius: 2px !important;
    background: linear-gradient(180deg, rgba(90, 130, 200, 0.55) 0%, rgba(28, 48, 88, 0.98) 42%, rgba(10, 16, 32, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(200, 225, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 16px rgba(60, 120, 220, 0.25) !important;
    font-family: 'Cinzel', serif !important;
    width: auto !important;
    min-width: 220px !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 0.65rem 1.75rem !important;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease !important;
}

.lineage2-panel.l2-register .l2-btn-quest:hover:not(:disabled):not(.l2-btn-quest--disabled) {
    border-color: rgba(200, 225, 255, 0.95) !important;
    background: linear-gradient(180deg, rgba(130, 175, 255, 0.72) 0%, rgba(48, 80, 140, 1) 45%, rgba(12, 20, 40, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(230, 240, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 28px rgba(90, 160, 255, 0.5) !important;
    transform: translateY(-1px);
}

.lineage2-panel.l2-register .l2-btn-quest:active:not(:disabled):not(.l2-btn-quest--disabled),
.lineage2-panel.l2-register .l2-btn-quest:disabled,
.lineage2-panel.l2-register .l2-btn-quest.l2-btn-quest--disabled {
    background: linear-gradient(180deg, rgba(20, 32, 55, 1) 0%, rgba(8, 12, 22, 1) 100%) !important;
    transform: translateY(1px);
}

.lineage2-panel.l2-register .l2-btn-quest .l2-btn-quest__label {
    color: #f2f6ff !important;
    background: transparent !important;
    text-shadow: 0 0 10px rgba(90, 150, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}

/* Recovery: ocultar campos PIN legacy */
.lineage2-panel.l2-recovery #tab-pin,
.lineage2-panel.l2-recovery #recovery-tabs,
.lineage2-panel.l2-recovery #new-pin,
.lineage2-panel.l2-recovery #confirm-pin,
.lineage2-panel.l2-recovery [data-translate="tab_pin"],
.lineage2-panel.l2-recovery [data-translate="new_pin_label"],
.lineage2-panel.l2-recovery [data-translate="confirm_pin_label"],
.lineage2-panel.l2-recovery [for="new-pin"],
.lineage2-panel.l2-recovery [for="confirm-pin"],
.lineage2-panel.l2-recovery input[name="new_pin"],
.lineage2-panel.l2-recovery input[name="confirm_pin"] {
    display: none !important;
}

.lineage2-panel.l2-recovery .panel-title--error {
    color: #f5b8b8 !important;
    text-shadow: 0 0 12px rgba(196, 74, 74, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.lineage2-panel.l2-confirm .panel-title--error {
    color: #f5b8b8 !important;
    text-shadow: 0 0 12px rgba(196, 74, 74, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.lineage2-panel.l2-confirm .l2-oracle-msg.hidden {
    display: none !important;
}

/* Panel de control — portada (3 carteles) */
.lineage2-panel.l2-panel-home {
    --l2-gold: #d13a3a;
    --l2-gold-bright: #e34a4a;
    --l2-gold-dim: #8e1717;
    --l2-panel-bg: #12151c;
    --l2-panel-inner: #1a1f28;
    --l2-text: #dedede;
    --l2-text-muted: #bdbdbd;
    --l2-border: rgba(209, 58, 58, 0.45);
    --l2-glow: 0 0 18px rgba(209, 58, 58, 0.25);
    font-family: 'Cinzel', 'Kurale', Georgia, serif;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 1rem 0.75rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.lineage2-panel.l2-panel-home *,
.lineage2-panel.l2-panel-home *::before,
.lineage2-panel.l2-panel-home *::after {
    box-sizing: border-box;
}

.l2-panel-home .l2-panel-home__frame {
    max-width: 1000px;
    width: 100%;
}

.l2-panel-home .l2-register__frame-inner {
    padding: 2rem 1.5rem 1.75rem;
}

.lineage2-panel.l2-panel-home .l2-register__subtitle {
    font-family: 'Kurale', serif !important;
    font-size: 0.92rem !important;
    color: #e34a4a !important;
    letter-spacing: 0.35em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.35rem !important;
    opacity: 1 !important;
}

.lineage2-panel.l2-panel-home .panel-title,
.lineage2-panel.l2-panel-home h1.panel-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #dedede !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin: 0 0 0.5rem !important;
    text-shadow:
        0 0 20px rgba(209, 58, 58, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.9) !important;
    line-height: 1.3 !important;
}

.lineage2-panel.l2-panel-home .panel-description,
.lineage2-panel.l2-panel-home p.panel-description {
    font-family: 'Kurale', serif !important;
    font-size: 1rem !important;
    color: #bdbdbd !important;
    line-height: 1.5 !important;
    max-width: 36rem !important;
    margin: 0 auto !important;
}

.l2-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .l2-home-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.15rem;
    }

    .lineage2-panel.l2-panel-home .panel-title,
    .lineage2-panel.l2-panel-home h1.panel-title {
        font-size: 1.6rem !important;
    }
}

.l2-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.35rem 1.15rem 1.4rem;
    min-height: 100%;
    background: rgba(8, 10, 14, 0.55);
    border: 1px solid rgba(209, 58, 58, 0.28);
    border-radius: 4px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.l2-home-card:hover {
    border-color: rgba(227, 74, 74, 0.55);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(209, 58, 58, 0.15);
    transform: translateY(-2px);
}

.l2-home-card__title,
.lineage2-panel.l2-panel-home .l2-home-card__title {
    margin: 0 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #e34a4a !important;
    text-shadow: 0 0 12px rgba(209, 58, 58, 0.35) !important;
}

.l2-home-card__desc,
.lineage2-panel.l2-panel-home .l2-home-card__desc {
    margin: 0 !important;
    flex: 1;
    font-family: 'Kurale', serif !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #c4baa8 !important;
}

.l2-panel-home .l2-btn-quest {
    width: 100%;
    max-width: 240px;
    min-width: 0;
    margin-top: 0.5rem;
}

.lineage2-panel.l2-panel-home .l2-btn-quest {
    color: #f2f6ff !important;
    border: 1px solid rgba(150, 195, 255, 0.55) !important;
    border-radius: 2px !important;
    background: linear-gradient(180deg, rgba(90, 130, 200, 0.55) 0%, rgba(28, 48, 88, 0.98) 42%, rgba(10, 16, 32, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(200, 225, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 16px rgba(60, 120, 220, 0.25) !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    width: 100% !important;
    max-width: 240px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 0.55rem 1.25rem !important;
    line-height: 1.25 !important;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease !important;
}

.lineage2-panel.l2-panel-home .l2-btn-quest:hover:not(:disabled):not(.l2-btn-quest--disabled) {
    border-color: rgba(200, 225, 255, 0.95) !important;
    background: linear-gradient(180deg, rgba(130, 175, 255, 0.72) 0%, rgba(48, 80, 140, 1) 45%, rgba(12, 20, 40, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(230, 240, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 28px rgba(90, 160, 255, 0.5) !important;
    transform: translateY(-1px);
}

.lineage2-panel.l2-panel-home .l2-btn-quest:active:not(:disabled):not(.l2-btn-quest--disabled),
.lineage2-panel.l2-panel-home .l2-btn-quest:disabled,
.lineage2-panel.l2-panel-home .l2-btn-quest.l2-btn-quest--disabled {
    background: linear-gradient(180deg, rgba(20, 32, 55, 1) 0%, rgba(8, 12, 22, 1) 100%) !important;
    transform: translateY(1px);
}

.lineage2-panel.l2-panel-home .l2-btn-quest .l2-btn-quest__label {
    color: #f2f6ff !important;
    background: transparent !important;
    position: relative !important;
    transform: none !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-shadow: 0 0 10px rgba(90, 150, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}

/* Botón VOLVER (widget Elementor / pie de página) */
.elementor-widget-html:has(.l2-volver-wrap) .elementor-widget-container,
.elementor-element:has(.l2-volver-wrap) .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.l2-volver-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.5rem 1rem 0.35rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.l2-volver-wrap .l2-btn-quest,
.l2-volver-wrap .l2-btn-volver {
    display: inline-flex !important;
    min-width: 200px;
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.lineage2-panel.l2-panel-home ~ .l2-volver-wrap .l2-btn-quest,
.l2-volver-wrap .l2-btn-quest {
    color: #f2f6ff !important;
    border: 1px solid rgba(150, 195, 255, 0.55) !important;
    border-radius: 2px !important;
    background: linear-gradient(180deg, rgba(90, 130, 200, 0.55) 0%, rgba(28, 48, 88, 0.98) 42%, rgba(10, 16, 32, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(200, 225, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 16px rgba(60, 120, 220, 0.25) !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.08em !important;
    padding: 0.55rem 1.75rem !important;
    min-height: 42px !important;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease !important;
}

.l2-volver-wrap .l2-btn-quest:hover:not(:disabled):not(.l2-btn-quest--disabled) {
    border-color: rgba(200, 225, 255, 0.95) !important;
    background: linear-gradient(180deg, rgba(130, 175, 255, 0.72) 0%, rgba(48, 80, 140, 1) 45%, rgba(12, 20, 40, 1) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(230, 240, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 28px rgba(90, 160, 255, 0.5) !important;
    transform: translateY(-1px);
}

.l2-volver-wrap .l2-btn-quest:active:not(:disabled):not(.l2-btn-quest--disabled),
.l2-volver-wrap .l2-btn-quest:disabled,
.l2-volver-wrap .l2-btn-quest.l2-btn-quest--disabled {
    background: linear-gradient(180deg, rgba(20, 32, 55, 1) 0%, rgba(8, 12, 22, 1) 100%) !important;
    transform: translateY(1px);
}

.l2-volver-wrap .l2-btn-quest .l2-btn-quest__label {
    color: #f2f6ff !important;
    background: transparent !important;
    position: relative !important;
    transform: none !important;
    font-family: 'Kurale', Georgia, serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-shadow: 0 0 10px rgba(90, 150, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.75) !important;
    pointer-events: none !important;
}

/* Anular estilos viejos back-button del tema / Elementor */
.l2-volver-wrap .back-button,
.l2-volver-wrap .back-button-container .back-button {
    display: none !important;
}

/* Pie de página — compacto, legible (dorado / blanco) */
.elementor-element:has(.l2-panel-footer),
.elementor-element:has(.l2-panel-footer) > .elementor-widget-container,
.elementor-element:has(.l2-panel-footer) > .elementor-widget-wrap,
.elementor-widget-html:has(.l2-panel-footer),
.elementor-widget-html:has(.l2-panel-footer) .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    --min-height: 0px !important;
    --height: auto !important;
    flex-grow: 0 !important;
    align-self: center !important;
}

.elementor-widget-html:has(.l2-panel-footer) .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    line-height: 1 !important;
}

.l2-panel-footer,
footer.l2-panel-footer {
    display: block !important;
    width: auto !important;
    max-width: 22rem !important;
    margin: 0 auto 0.25rem !important;
    padding: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    line-height: 1 !important;
}

.l2-panel-footer__text,
.l2-panel-footer .footer-text,
.l2-panel-footer p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Kurale', Georgia, serif !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.03em !important;
    color: #eeeeee !important;
    text-shadow:
        0 0 10px rgba(209, 58, 58, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.9) !important;
    text-transform: none !important;
    max-width: 100% !important;
    width: auto !important;
    display: inline-block !important;
}

/* Anular footer viejo (absolute / ancho completo) */
.panel-footer,
footer.panel-footer:not(.l2-panel-footer) {
    position: static !important;
    width: auto !important;
    max-width: 22rem !important;
    margin: 0.25rem auto 0.5rem !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.panel-footer .footer-text {
    font-size: 0.8rem !important;
    color: #eeeeee !important;
    text-shadow: 0 0 10px rgba(209, 58, 58, 0.45), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

@media (max-width: 767px) {
    .l2-panel-home .l2-panel-home__frame {
        max-width: 460px;
    }

    .l2-home-card {
        padding: 0.85rem 0.75rem 0.9rem;
    }

    .lineage2-panel.l2-panel-home .l2-btn-quest .l2-btn-quest__label {
        font-size: 0.9rem !important;
    }
}

/* =========================================================
   Home / Register desk — punto medio (ni aplastado ni inflado)
   ========================================================= */
@media (min-width: 768px) {
    /*
     * Logo 188px: 292px de aire (+100 respecto al punto medio).
     * Con admin-bar NO bajar padding (la barra ya empuja el body).
     */
    body.home.lineage2-banner-bg .elementor-element-404e04e,
    body.page-id-3845 .elementor-element-404e04e,
    body.admin-bar.home.lineage2-banner-bg .elementor-element-404e04e,
    body.admin-bar.page-id-3845 .elementor-element-404e04e {
        --padding-top: 292px !important;
        --padding-bottom: 16px !important;
        padding-top: 292px !important;
        padding-bottom: 16px !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    html:has(body.admin-bar.home),
    html:has(body.admin-bar.page-id-3845),
    body.admin-bar.home.lineage2-banner-bg,
    body.admin-bar.page-id-3845,
    body.admin-bar.home.lineage2-banner-bg #wrapper,
    body.admin-bar.page-id-3845 #wrapper {
        min-height: calc(100vh - 32px) !important;
        min-height: calc(100dvh - 32px) !important;
    }

    .lineage2-panel.l2-panel-home {
        min-height: 0 !important;
        padding: 0.15rem 1rem 0.5rem !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .l2-panel-home .l2-panel-home__frame {
        max-width: 940px !important;
    }

    .l2-panel-home .l2-register__frame-inner {
        padding: 1.1rem 1.3rem 1rem !important;
    }

    .lineage2-panel.l2-panel-home .l2-register__header {
        margin-bottom: 0.5rem !important;
    }

    .lineage2-panel.l2-panel-home .l2-register__subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
        letter-spacing: 0.3em !important;
    }

    .lineage2-panel.l2-panel-home .panel-title,
    .lineage2-panel.l2-panel-home h1.panel-title {
        font-size: 1.35rem !important;
        margin: 0 0 0.35rem !important;
    }

    .lineage2-panel.l2-panel-home .panel-description,
    .lineage2-panel.l2-panel-home p.panel-description {
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
    }

    .l2-home-grid {
        gap: 0.8rem !important;
        margin-top: 0.45rem !important;
    }

    .l2-home-card {
        gap: 0.55rem !important;
        padding: 0.9rem 0.85rem 0.95rem !important;
    }

    .lineage2-panel.l2-panel-home .l2-home-card__title {
        font-size: 0.98rem !important;
    }

    .lineage2-panel.l2-panel-home .l2-home-card__desc {
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
    }

    .lineage2-panel.l2-panel-home .l2-btn-quest {
        min-height: 40px !important;
        padding: 0.45rem 1.25rem !important;
        font-size: 0.88rem !important;
    }

    .l2-volver-wrap {
        padding: 0.35rem 1rem 0.2rem !important;
    }

    body.home.lineage2-banner-bg .elementor-element-3cb8557 > .elementor-widget-container,
    body.page-id-3845 .elementor-element-3cb8557 > .elementor-widget-container {
        margin-top: 0.55rem !important;
        margin-bottom: 0 !important;
    }

    .l2-volver-wrap .l2-btn-quest,
    .l2-volver-wrap .l2-btn-volver {
        min-width: 160px !important;
        max-width: 230px !important;
        min-height: 38px !important;
        padding: 0.45rem 1.5rem !important;
        font-size: 0.88rem !important;
    }

    body.home .l2-panel-footer,
    body.page-id-3845 .l2-panel-footer,
    body.home footer.l2-panel-footer,
    body.page-id-3845 footer.l2-panel-footer {
        padding: 0.4rem 0.75rem 0.5rem !important;
        margin: 0 !important;
    }

    body.home .l2-panel-footer__text,
    body.page-id-3845 .l2-panel-footer__text,
    body.home .l2-panel-footer p,
    body.page-id-3845 .l2-panel-footer p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    /* Register: un poco más grande, sin tapar el arte de fondo */
    .lineage2-panel.l2-register:not(.l2-panel-home) {
        padding: 11.5rem 1rem 0.6rem !important;
        align-items: flex-start !important;
    }

    html body.admin-bar .lineage2-panel.l2-register:not(.l2-panel-home) {
        padding-top: 12.25rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__frame {
        max-width: 680px !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__frame-inner {
        padding: 1.25rem 1.55rem 1.2rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__header {
        margin-bottom: 0.7rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__subtitle {
        font-size: 0.82rem !important;
        margin-bottom: 0.25rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .panel-title {
        font-size: 1.28rem !important;
        margin: 0 0 0.35rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .panel-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        max-width: none !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__email-notice {
        margin-top: 0.55rem !important;
        padding: 0.55rem 0.85rem !important;
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        max-width: none !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.1rem;
        row-gap: 0.45rem;
        align-items: start;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > .l2-field {
        margin-bottom: 0.28rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > .l2-pact,
    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > .l2-turnstile-wrap,
    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > .l2-register__actions,
    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > input[type="hidden"],
    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > #_wpnonce,
    .lineage2-panel.l2-register:not(.l2-panel-home) #lineage2-register-form > .l2-oracle-msg {
        grid-column: 1 / -1;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-field__label,
    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-field__label span {
        font-size: 0.78rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) input.l2-field__input {
        padding: 0.55rem 0.8rem !important;
        font-size: 0.95rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-pact {
        margin: 0.5rem 0 0.4rem !important;
        padding: 0.48rem 0.7rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-pact__label,
    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-pact__label span {
        font-size: 0.88rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-turnstile-wrap {
        padding: 0.45rem !important;
        margin-bottom: 0.4rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-register__actions {
        margin-top: 0.45rem !important;
        gap: 0.55rem !important;
    }

    .lineage2-panel.l2-register:not(.l2-panel-home) .l2-btn-quest {
        min-width: 210px !important;
        min-height: 46px !important;
        padding: 0.55rem 1.7rem !important;
        font-size: 0.85rem !important;
    }

    body.lineage2-page-recovery .l2-register__frame,
    body.page-id-3962 .l2-register__frame,
    body.page-recovery .l2-register__frame {
        max-width: 520px !important;
    }

    /* Producto: compactar layout debajo del logo */
    body.single-product.lineage2-banner-bg #main-content,
    body.single-product.lineage2-banner-bg .nasa-product-details-page {
        padding-top: 0 !important;
    }

    body.single-product.lineage2-banner-bg .product_title {
        font-size: 1.4rem !important;
        margin: 0 0 0.35rem !important;
        line-height: 1.2 !important;
    }

    body.single-product.lineage2-banner-bg .woocommerce-product-gallery,
    body.single-product.lineage2-banner-bg .nasa-product-gallery,
    body.single-product.lineage2-banner-bg .main-images {
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.single-product.lineage2-banner-bg .woocommerce-product-gallery img,
    body.single-product.lineage2-banner-bg .nasa-product-gallery img,
    body.single-product.lineage2-banner-bg .main-images img {
        max-height: 280px !important;
        width: auto !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    body.single-product.lineage2-banner-bg .bogo-promotion {
        padding: 0.75rem 0.9rem !important;
        margin: 0.45rem 0 !important;
        font-size: 0.88rem !important;
    }

    body.single-product.lineage2-banner-bg .bogo-promotion h3 {
        font-size: 1rem !important;
        margin: 0 0 0.45rem !important;
    }

    body.single-product.lineage2-banner-bg .bogo-promotion p,
    body.single-product.lineage2-banner-bg .bogo-promotion li {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin: 0.2rem 0 !important;
    }

    body.single-product.lineage2-banner-bg .price {
        font-size: 1.15rem !important;
        margin: 0.35rem 0 !important;
    }

    body.single-product.lineage2-banner-bg .nasa-breadcrumb,
    body.single-product.lineage2-banner-bg .breadcrumb-wrap {
        display: none !important;
    }

    body.single-product.lineage2-banner-bg .nasa-row,
    body.single-product.lineage2-banner-bg .product-info,
    body.single-product.lineage2-banner-bg .summary,
    body.single-product.lineage2-banner-bg .entry-summary {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    body.single-product.lineage2-banner-bg #content,
    body.single-product.lineage2-banner-bg .nasa-ajax-store-content {
        padding-top: 9rem !important;
        padding-bottom: 0.35rem !important;
    }

    body.admin-bar.single-product.lineage2-banner-bg #content,
    body.admin-bar.single-product.lineage2-banner-bg .nasa-ajax-store-content {
        padding-top: 9.75rem !important;
    }

    .lineage2-panel.l2-register .cf-turnstile {
        transform: scale(0.85);
        transform-origin: center top;
        margin: 0.25rem auto !important;
    }
}

/* Idioma: solo bandera (desk + mobile) */
body.lineage2-banner-bg .nasa-icon-language .lang-option,
body.lineage2-banner-bg .nasa-icon-language-mobile .lang-option,
body .nasa-icon-language .lang-option {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
}

body .nasa-icon-language .lang-option span,
body .nasa-icon-language-mobile .lang-option span,
body .lang-option span {
    display: none !important;
}

body .nasa-icon-language .lang-option::after,
body .nasa-icon-language-mobile .lang-option::after,
body .lang-option::after {
    display: none !important;
    content: none !important;
}

body .nasa-icon-language .lang-option img,
body .nasa-icon-language-mobile .lang-option img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .lineage2-panel.l2-register .l2-register__frame-inner {
        padding: 0.85rem 0.85rem 0.75rem !important;
    }

    .lineage2-panel.l2-register .panel-title {
        font-size: 1rem !important;
    }

    .l2-field__input {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.85rem !important;
    }

    .lineage2-panel.l2-register .cf-turnstile,
    .lineage2-panel.l2-register iframe[src*="turnstile"] {
        transform: scale(0.9);
        transform-origin: center top;
    }

    body.single-product.lineage2-banner-bg #content,
    body.single-product.lineage2-banner-bg .nasa-ajax-store-content {
        padding-top: 8rem !important;
    }

    body.single-product.lineage2-banner-bg .woocommerce-product-gallery img,
    body.single-product.lineage2-banner-bg .main-images img {
        max-height: 200px !important;
    }

    body.home.lineage2-banner-bg .elementor-element-404e04e,
    body.page-id-3845 .elementor-element-404e04e {
        --padding-top: 120px !important;
        padding-top: 120px !important;
        min-height: auto !important;
    }
}

/* Separacion bajo el logo proporcional: el header se superpone al contenido. */
html body .lineage2-panel.l2-register.l2-panel-home {
    margin-top: 100px !important;
}

@media (max-width: 767px) {
    html body .lineage2-panel.l2-register.l2-panel-home {
        margin-top: 60px !important;
    }
}

/* OW: colores compartidos del panel principal. Solo presentacion. */
html body .lineage2-panel.l2-register {
    --l2-gold: #d13a3a;
    --l2-gold-bright: #e34a4a;
    --l2-gold-dim: #8e1717;
    --l2-panel-bg: #272a2d;
    --l2-panel-inner: #1b1d1f;
    --l2-input-bg: #0c0d0e;
    --l2-text: #dedede;
    --l2-text-muted: #bdbdbd;
    --l2-border: #555b5f;
    --l2-glow: 0 0 18px rgba(0,0,0,.8);
}

html body.lineage2-banner-bg.woocommerce,
html body.lineage2-banner-bg.single-product {
    --l2p-gold: #d13a3a;
    --l2p-gold-bright: #e34a4a;
    --l2p-gold-dim: #8e1717;
    --l2p-blue: #8e1717;
    --l2p-blue-bright: #e34a4a;
    --l2p-panel: #272a2d;
    --l2p-panel-inner: #17191b;
    --l2p-text: #dedede;
    --l2p-muted: #bdbdbd;
    --l2p-glow-blue: 0 0 18px rgba(0,0,0,.6);
    --l2p-glow-gold: 0 0 18px rgba(180,25,25,.2);
}

html body .lineage2-panel.l2-register .l2-register__frame,
html body.lineage2-banner-bg.single-product .l2p-panel-shell {
    background: linear-gradient(180deg,#303438 0%,#25282b 45%,#1b1d1f 100%) !important;
    border: 2px solid #555b5f !important;
    box-shadow: 0 0 0 1px #111,0 0 18px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.08) !important;
}

html body .lineage2-panel.l2-register .l2-register__frame-inner {
    background: linear-gradient(180deg,rgba(45,48,51,.92),rgba(27,29,31,.96)) !important;
    border-color: #464b4f !important;
}

html body .lineage2-panel.l2-register .l2-register__corner,
html body.lineage2-banner-bg.single-product .l2p-corner {
    border-color: #a52424 !important;
    box-shadow: 0 0 5px rgba(180,25,25,.3) !important;
}

html body.lineage2-banner-bg.single-product .l2p-panel-shell__frame,
html body.lineage2-banner-bg.single-product .bogo-promotion::before {
    border-color: #555b5f !important;
}

html body.lineage2-banner-bg.single-product .l2p-panel-shell::before {
    background: radial-gradient(ellipse at 50% 40%,rgba(180,25,25,.14),transparent 68%) !important;
}

html body .lineage2-panel.l2-register .l2-home-card__title,
html body.lineage2-banner-bg.single-product .l2p-divider,
html body.lineage2-banner-bg.single-product .bogo-promotion h3,
html body.lineage2-banner-bg.single-product .price-label {
    color: #e8c36a !important;
    -webkit-text-fill-color: #e8c36a !important;
    text-shadow: 0 1px 2px #000 !important;
}

html body .lineage2-panel.l2-register .panel-title,
html body.lineage2-banner-bg.single-product .product_title {
    color: #f5f5f5 !important;
    -webkit-text-fill-color: #f5f5f5 !important;
    text-shadow: 0 2px 3px #000 !important;
}

html body .lineage2-panel.l2-register .l2-field__label,
html body .lineage2-panel.l2-register .l2-field__label span,
html body .lineage2-panel.l2-register .panel-description,
html body .lineage2-panel.l2-register .l2-home-card__desc,
html body .lineage2-panel.l2-register .l2-pact__label,
html body .lineage2-panel.l2-register .l2-pact__label span {
    color: #f2f2f2 !important;
    -webkit-text-fill-color: #f2f2f2 !important;
    text-shadow: 0 1px 2px #000 !important;
}

html body .lineage2-panel.l2-register .l2-register__subtitle,
html body .lineage2-panel.l2-register .l2-register__email-notice {
    color: #e8c36a !important;
    -webkit-text-fill-color: #e8c36a !important;
    text-shadow: 0 1px 2px #000 !important;
}

html body .lineage2-panel.l2-register .l2-field__input {
    background: #0c0d0e !important;
    color: #dedede !important;
    -webkit-text-fill-color: #dedede !important;
    border-color: #555b5f !important;
}

html body .lineage2-panel.l2-register .l2-field__input:focus {
    border-color: #d13a3a !important;
    box-shadow: 0 0 0 2px rgba(209,58,58,.25) !important;
}

html body.lineage2-banner-bg.single-product .bogo-promotion,
html body.lineage2-banner-bg.single-product .bogo-promotion .l2-bonus-grid > div,
html body.lineage2-banner-bg.single-product #purchase-summary > div > div {
    background: linear-gradient(180deg,#17191b,#0c0d0e) !important;
    border-color: #555b5f !important;
    box-shadow: inset 0 0 20px rgba(0,0,0,.5) !important;
}

html body .lineage2-panel.l2-register .l2-btn-quest,
html body.lineage2-banner-bg.single-product .single_add_to_cart_button,
html body.lineage2-banner-bg.single-product .nasa-buy-now,
html body.lineage2-banner-bg.single-product .buy-now-btn,
html body.lineage2-banner-bg.woocommerce .woocommerce .button,
html body.lineage2-banner-bg.woocommerce .button,
html body.lineage2-banner-bg.woocommerce-checkout button#place_order {
    background: linear-gradient(180deg,#9c2626 0%,#721515 45%,#3b0707 100%) !important;
    border: 1px solid #a62a2a !important;
    color: #eee !important;
    -webkit-text-fill-color: #eee !important;
    text-shadow: 0 2px 2px #000 !important;
    box-shadow: inset 0 1px 0 rgba(255,120,120,.25),inset 0 -2px 4px rgba(0,0,0,.65),0 2px 5px rgba(0,0,0,.7),0 0 5px rgba(130,15,15,.25) !important;
}

html body .lineage2-panel.l2-register .l2-btn-quest:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.single-product .single_add_to_cart_button:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.single-product .nasa-buy-now:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.single-product .buy-now-btn:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.woocommerce .woocommerce .button:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.woocommerce .button:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled),
html body.lineage2-banner-bg.woocommerce-checkout button#place_order:hover:not(:disabled):not(.disabled):not(.l2-btn-quest--disabled) {
    background: linear-gradient(180deg,#c23838 0%,#8b1b1b 45%,#4c0808 100%) !important;
    border-color: #d13a3a !important;
    box-shadow: inset 0 1px 0 rgba(255,160,160,.3),0 0 12px rgba(190,30,30,.4) !important;
}

html body .lineage2-panel.l2-register .l2-btn-quest:focus-visible,
html body.lineage2-banner-bg.single-product .single_add_to_cart_button:focus-visible,
html body.lineage2-banner-bg.single-product .nasa-buy-now:focus-visible,
html body.lineage2-banner-bg.single-product .buy-now-btn:focus-visible,
html body.lineage2-banner-bg.woocommerce .woocommerce .button:focus-visible,
html body.lineage2-banner-bg.woocommerce .button:focus-visible,
html body.lineage2-banner-bg.woocommerce-checkout button#place_order:focus-visible {
    outline: 2px solid #e34a4a !important;
    outline-offset: 3px !important;
}

html body .lineage2-panel.l2-register .l2-btn-quest:active:not(:disabled),
html body.lineage2-banner-bg.single-product .single_add_to_cart_button:active:not(:disabled),
html body.lineage2-banner-bg.single-product .nasa-buy-now:active:not(:disabled),
html body.lineage2-banner-bg.single-product .buy-now-btn:active:not(:disabled),
html body.lineage2-banner-bg.woocommerce .woocommerce .button:active:not(:disabled),
html body.lineage2-banner-bg.woocommerce .button:active:not(:disabled),
html body.lineage2-banner-bg.woocommerce-checkout button#place_order:active:not(:disabled) {
    background: linear-gradient(180deg,#3d0707,#771616) !important;
}

html body .lineage2-panel.l2-register .l2-btn-quest:disabled,
html body.lineage2-banner-bg.single-product .single_add_to_cart_button:disabled,
html body.lineage2-banner-bg.single-product .nasa-buy-now:disabled,
html body.lineage2-banner-bg.single-product .buy-now-btn:disabled,
html body.lineage2-banner-bg.woocommerce .woocommerce .button:disabled,
html body.lineage2-banner-bg.woocommerce .button:disabled,
html body.lineage2-banner-bg.woocommerce-checkout button#place_order:disabled,
html body .lineage2-panel.l2-register .l2-btn-quest.l2-btn-quest--disabled {
    background: linear-gradient(180deg,#402525,#241717) !important;
    border-color: #654040 !important;
    box-shadow: none !important;
    opacity: .55 !important;
    cursor: not-allowed;
}

html body .lineage2-panel.l2-register .l2-btn-quest .l2-btn-quest__label {
    color: #eee !important;
    -webkit-text-fill-color: #eee !important;
    text-shadow: 0 2px 2px #000 !important;
}

/* Separacion bajo el logo en formularios, confirmacion y paginas Woo.
   El header esta superpuesto: el espacio se reserva en el contenido. */
html body .lineage2-panel.l2-register:not(.l2-panel-home) {
    margin-top: 100px !important;
}
html body.lineage2-banner-bg:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received, .woocommerce-account, .woocommerce-shop, .post-type-archive-product, .tax-product_cat) #main-content {
    margin-top: 100px !important;
}
@media (max-width: 767px) {
    html body .lineage2-panel.l2-register:not(.l2-panel-home),
    html body.lineage2-banner-bg:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received, .woocommerce-account, .woocommerce-shop, .post-type-archive-product, .tax-product_cat) #main-content {
        margin-top: 60px !important;
    }
}
