/* ==========================================================
   RESET GENERAL
   ========================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

body.userlogin-layout {
    overflow: hidden !important;
}

body.userlogin-layout #maincontent {
    display: none !important;
}

/* ==========================================================
   TIPOGRAFÍA GENERAL SK2
   ========================================================== */
body,
.lp-wrapper,
.lp-left,
.lp-right,
.lp-card,
.lp-field input,
.lp-login-title,
.lp-btn-primary,
.lp-subtitle,
.sk2-text-rotator,
.sk2-phrase {
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
}

/* ==========================================================
   SK2 ACADEMY — LAYOUT GENERAL
   ========================================================== */
.lp-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100dvh;
    overflow: hidden;
    background: #F5F9FC;
    position: relative;
}

.lp-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden !important;
    position: relative;
    z-index: 2;
}

/* ==========================================================
   PANEL IZQUIERDO — BRANDING
   ========================================================== */
.lp-left {
    background: linear-gradient(180deg, #0A1D37, #235A9A, #4C9BE8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 4rem;
}

.lp-left-content {
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.lp-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lp-logo {
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
    transition: transform .3s ease;
}
.lp-logo:hover {
    transform: scale(1.05);
}

/* ==========================================================
   ROTADOR DE FRASES
   ========================================================== */
.sk2-text-rotator {
    position: relative;
    line-height: 1.3;
    width: 100%;
    overflow: visible;
    font-size: 1.25rem;
    font-weight: 300;
    color: white;
    text-align: center;
    margin-top: .6rem;
}

.sk2-phrase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: normal !important;
    padding: 0 .5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}

.sk2-phrase.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   TARJETA LOGIN
   ========================================================== */
.lp-card {
    background: white;
    width: 420px;
    padding: 2.8rem;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(12px);
    filter: blur(12px);
    animation: sk2CardFade .65s ease-out forwards;
}

@keyframes sk2CardFade {
    0% { opacity: 0; filter: blur(12px); transform: translateY(12px); }
    60% { filter: blur(4px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.lp-login-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #0A1D37;
    margin-bottom: 1.5rem;
}

/* ==========================================================
   DIVIDER
   ========================================================== */
.lp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem 0;
    width: 100%;
}

.lp-divider::before,
.lp-divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #D4D9E280;
    margin: 0 12px;
}

.lp-divider span {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
}

/* ==========================================================
   CAMPOS
   ========================================================== */
.lp-field {
    margin-bottom: 1.2rem;
}

.lp-field label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 600;
    color: #2B2B2B;
}

.lp-field input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #D4D9E2;
    padding: 0 .8rem;
    transition: all .25s ease;
}
.lp-field input:focus {
    border-color: #4C9BE8;
    box-shadow: 0 0 0 3px rgba(76,155,232,0.35);
}

/* ==========================================================
   BOTÓN ADMIN
   ========================================================== */
.lp-btn-admin {
    width: 100%;
    margin-top: 0 !important;
    background: transparent;
    border: 2px solid #0A1D37;
    color: #0A1D37;
    height: 44px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.lp-btn-admin:hover {
    background: #0A1D37;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================
   FORM ADMIN
   ========================================================== */
#admin-login-form {
    transform-origin: top;
    transform: scaleY(0) translateY(-6px);
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    transition:
        max-height .45s ease,
        transform .35s ease,
        opacity .35s ease,
        margin-top .25s ease;
}

#admin-login-form.admin-open {
    max-height: 600px;
    opacity: 1;
    transform: scaleY(1);
    margin-top: 1.4rem;
}

/* ==========================================================
   BOTÓN PRINCIPAL
   ========================================================== */
.lp-btn-primary {
    width: 100%;
    background: linear-gradient(90deg, #0A1D37, #235A9A);
    color: white;
    height: 46px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .2s ease, box-shadow .25s ease;
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

a.lp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ==========================================================
   OAUTH BUTTONS
   ========================================================== */
.lp-oauth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.lp-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 44px;
    border: 2px solid #4C9BE8;
    border-radius: 10px;
    color: #0A1D37;
    font-weight: 600;
    transition: all .25s ease;
}

.lp-oauth-btn:hover {
    background: #4C9BE8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76,155,232,0.35);
}

/* ==========================================================
   SELECTOR IDIOMA
   ========================================================== */
.sk2-lang-wrapper {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 500;
}

.sk2-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    background: white;
    border: 2px solid #235A9A;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #0A1D37;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: .15s ease;
}

.sk2-lang-btn:hover {
    background: #F3F7FF;
    border-color: #4C9BE8;
}

.sk2-lang-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    padding: 6px 0;
    min-width: 180px;
    display: none;
}

.sk2-lang-wrapper.is-open .sk2-lang-dropdown {
    display: block;
}

.sk2-lang-dropdown a {
    padding: 10px 16px;
    font-weight: 500;
    color: #0A1D37;
    text-decoration: none;
}
.sk2-lang-dropdown a:hover {
    background: #E9EFF7;
    color: #235A9A;
}

/* ==========================================================
   CARRUSEL — EFECTO FADE
   ========================================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.carousel-track {
    position: relative;
    width: 100%;
    transition: height .35s ease;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================
   EFECTO FADE EN TARJETAS (SIN BLUR, SIN 3D)
   ========================================================== */
.carousel-slide .lp-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity .35s ease;
}

.carousel-slide.active .lp-card {
    opacity: 1;
}

/* ==========================================================
   NAVEGADOR INFERIOR
   ========================================================== */
.carousel-title-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-titles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 420px;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
}

.nav-title.active { color: #0A1D37; }
.nav-title.inactive { color: #9CA3AF; opacity: .8; }

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(10,29,55,0.15);
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.nav-arrow-icon {
    width: 18px;
    height: 18px;
    stroke: #235A9A;
    stroke-width: 2.2;
    fill: none;
}

.nav-arrow:hover {
    background: linear-gradient(90deg, #0A1D37, #235A9A);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.nav-arrow:hover .nav-arrow-icon {
    stroke: white;
}

/* ==========================================================
   STEPS — REGISTER SLIDE
   ========================================================== */
.sk2-steps {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.sk2-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: transform .25s ease, background .25s ease;
}

.sk2-step-icon {
    width: 38px;
    height: 38px;
    background: #EFF4FA;
    color: #0A1D37;
    border: 2px solid #235A9A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.sk2-step:hover {
    transform: scale(1.03);
    background: #E8F2FF;
}
.sk2-step:hover .sk2-step-icon {
    transform: scale(1.08);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .lp-wrapper { grid-template-columns: 1fr; }
    .lp-left { display: none; }
    .lp-card { margin-top: 2rem; }
}

/* ==========================================================
   COOKIE BUTTON + MODAL (NO TOCAR)
   ========================================================== */
.sk2-cookie-floating {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk2-cookie-svg {
    width: 45px;
    height: 45px;
    animation: sk2-cookie-float 3s ease-in-out infinite;
    overflow: visible;
}

@keyframes sk2-cookie-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.sk2-cookie-floating:hover .sk2-cookie-svg {
    animation:
        sk2-cookie-float 3s ease-in-out infinite,
        sk2-cookie-bite 0.9s steps(3, end) forwards;
}

@keyframes sk2-cookie-bite {
    0%   { clip-path: inset(0 0 0 0 round 50%); }
    33%  { clip-path: inset(0 8% 0 0 round 50%); }
    66%  { clip-path: inset(0 18% 0 0 round 50%); }
    100% { clip-path: inset(0 30% 0 0 round 50%); }
}

.sk2-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk2-cookie-modal.hidden { display: none; }

.sk2-cookie-modal-content {
    background: #ffffff;
    max-width: 480px;
    width: 90%;
    padding: 1.8rem 2rem;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    position: relative;
    animation: sk2-cookie-modal-in .3s ease-out;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}



@keyframes sk2-cookie-modal-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}



.sk2-cookie-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: #E5E7EB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk2-cookie-close:hover {
    background: #D1D5DB;
}

.sk2-cookie-body {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #111827;
}

/* Scrollbar redondeada SK2 */
.sk2-cookie-modal-content::-webkit-scrollbar {
    width: 10px;
}

.sk2-cookie-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 16px;
}

.sk2-cookie-modal-content::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 16px;
}

.sk2-cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


