/* ============================================================ */
/* [1] VARIABLES PREMIUM - MISMA QUE LOGIN                     */
/* ============================================================ */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #ffedd5;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #8b5cf6;

    --dark-deep: #0a0f1c;
    --dark-mid: #111827;
    --glass-white: rgba(255, 255, 255, 0.98);
    --glass-muted: rgba(255, 255, 255, 0.95);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-soft: #64748b;
    --border-light: #e2e8f0;

    --shadow-card: 0 35px 68px rgba(0, 0, 0, 0.18), 0 15px 25px rgba(0, 0, 0, 0.08);

    --neumorph-bg: #e0e5ec;
    --neumorph-dark: #b8c0cb;
    --neumorph-light: #ffffff;

    --pattern-s: 170px;
    --pattern-c1: #0a1628;
    --pattern-c2: #1a3a5c;
    --pattern-c3: #0f2a45;
    --pattern-thickness: 15px;
}

/* ============================================================ */
/* [2] RESET Y BODY                                            */
/* ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #0a0f1c 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* ============================================================ */
/* [3] OLAS - ROTACIÓN CIRCULAR                                */
/* ============================================================ */
.ocean-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave-circle {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    border-radius: 40%;
    opacity: 0.5;
    animation: waveRotate 20s infinite linear;
}

.wave-1 {
    background: linear-gradient(744deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    animation-duration: 20s;
}

.wave-2 {
    background: linear-gradient(744deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    animation-duration: 25s;
    animation-direction: reverse;
    opacity: 0.4;
}

.wave-3 {
    background: linear-gradient(744deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.06), rgba(139, 92, 246, 0.02));
    animation-duration: 30s;
    opacity: 0.3;
}

@keyframes waveRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================================ */
/* [4] BURBUJAS FLOTANTES                                      */
/* ============================================================ */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.03));
    border-radius: 50%;
    animation: bubbleRise 12s ease-in infinite;
}

.bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 45px;
    height: 45px;
    left: 28%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 42%;
    animation-duration: 7s;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 55%;
    animation-duration: 14s;
    animation-delay: 0.5s;
}

.bubble:nth-child(6) {
    width: 18px;
    height: 18px;
    left: 68%;
    animation-duration: 9s;
    animation-delay: 4s;
}

.bubble:nth-child(7) {
    width: 38px;
    height: 38px;
    left: 80%;
    animation-duration: 11s;
    animation-delay: 2.5s;
}

.bubble:nth-child(8) {
    width: 28px;
    height: 28px;
    left: 92%;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.bubble:nth-child(9) {
    width: 22px;
    height: 22px;
    left: 10%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.bubble:nth-child(10) {
    width: 35px;
    height: 35px;
    left: 48%;
    animation-duration: 9.5s;
    animation-delay: 3.5s;
}

.bubble:nth-child(11) {
    width: 42px;
    height: 42px;
    left: 72%;
    animation-duration: 10.5s;
    animation-delay: 4.5s;
}

.bubble:nth-child(12) {
    width: 26px;
    height: 26px;
    left: 88%;
    animation-duration: 7.5s;
    animation-delay: 5.5s;
}

@keyframes bubbleRise {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }

    15% {
        opacity: 0.5;
    }

    85% {
        opacity: 0.3;
    }

    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(25px) scale(1.3);
    }
}

/* ============================================================ */
/* [5] CANVAS DE PARTÍCULAS                                    */
/* ============================================================ */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

/* ============================================================ */
/* [6] CONTENEDOR PRINCIPAL Y SPLIT CARD                       */
/* ============================================================ */
.container {
    width: 1180px;
    max-width: 100%;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.split-card {
    display: flex;
    background: var(--glass-white);
    border-radius: 56px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ============================================================ */
/* [7] LADO IZQUIERDO                                          */
/* ============================================================ */
.card-left {
    flex: 1;
    background: linear-gradient(135deg, #0f1222 0%, #181e2f 100%);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.geometric-pattern-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    background-color: var(--pattern-c1);
    background-image:
        repeating-linear-gradient(45deg, var(--pattern-c2) 0 var(--pattern-thickness), transparent var(--pattern-thickness) calc(var(--pattern-thickness) * 2)),
        repeating-linear-gradient(-45deg, var(--pattern-c3) 0 var(--pattern-thickness), transparent var(--pattern-thickness) calc(var(--pattern-thickness) * 2));
    background-size: var(--pattern-s) var(--pattern-s);
    animation: patternShift 25s linear infinite;
}

@keyframes patternShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: var(--pattern-s) var(--pattern-s);
    }
}

.card-left::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    animation: slowRotate 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.left-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.logo-left {
    position: relative;
    width: 120px;
    height: auto;
}

.logo-left img {
    width: 100%;
    height: auto;
    opacity: 0.95;
    display: block;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neumorph-bg);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.1);
}

.cert-badge i {
    color: var(--primary);
}

.left-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 280px;
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 60px;
    font-weight: bold;
    font-family: 'Bungee', cursive;
    color: #FFFFFF;
    letter-spacing: 4px;
    margin-bottom: 5px;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
        text-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
    }

    100% {
        opacity: 1;
    }
}

.titlecolor {
    color: #f97316;
}

.main-subtitle {
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    color: #E3DEDE;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    padding-top: 10px;
    border-top: 5px solid rgba(249, 115, 22);
}

.stats-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-number span {
    font-size: 24px;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 5px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ============================================================ */
/* [8] LADO DERECHO - NEUMORPHISM                              */
/* ============================================================ */
.card-right {
    flex: 1;
    background: var(--neumorph-bg);
    padding: 48px 40px;
    position: relative;
}

.info-floating {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 42px;
    height: 42px;
    background: var(--neumorph-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 8px 8px 16px var(--neumorph-dark), -8px -8px 16px var(--neumorph-light);
}

.info-floating:hover {
    background: var(--primary);
    color: white;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.4);
}

.right-content {
    margin: 0 auto;
}

/* ============================================================ */
/* [9] FORM HEADER Y ICONOS                                    */
/* ============================================================ */
.form-wrapper {
    display: none;
}

.form-wrapper.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 36px;
}

.form-header h2 {
    font-size: 30px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.form-icon-pulse {
    position: relative;
    width: 95px;
    height: 95px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    cursor: default;
    pointer-events: none;
}

.form-icon-pulse i {
    font-size: 50px;
    color: white;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.4);
    animation: widePulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes widePulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================================ */
/* [10] INPUTS NEUMORPHISM                                     */
/* ============================================================ */
.input-group-neumorph {
    position: relative;
    margin-bottom: 28px;
    background: var(--neumorph-bg);
    border-radius: 32px;
    box-shadow: inset 2px 2px 5px var(--neumorph-dark), inset -2px -2px 5px var(--neumorph-light);
    transition: all 0.3s ease;
}

.input-group-neumorph:focus-within {
    box-shadow: inset 3px 3px 6px var(--neumorph-dark), inset -3px -3px 6px var(--neumorph-light);
}

.input-group-neumorph i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-soft);
    transition: all 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

.input-group-neumorph input {
    width: 100%;
    padding: 16px 18px 16px 52px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 32px;
    background: transparent;
    color: var(--text-main);
    outline: none;
}

.input-group-neumorph input:focus~i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.input-group-neumorph label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--neumorph-bg);
    padding: 0 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: none;
    border-radius: 20px;
    font-weight: 500;
}

.input-group-neumorph input:focus~label,
.input-group-neumorph input:valid~label {
    top: -6px;
    left: 44px;
    font-size: 11px;
    font-weight: 600;
    background: var(--neumorph-bg);
    color: var(--primary);
    box-shadow: 2px 2px 4px var(--neumorph-dark), -2px -2px 4px var(--neumorph-light);
    padding: 0 8px;
}

.input-group-neumorph.half {
    width: 48%;
}

.row-fields {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}

.password-group {
    position: relative;
}

.location-group {
    position: relative;
}

.password-toggle-icon,
.location-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-icon:hover,
.location-toggle:hover {
    color: var(--primary);
}

.password-toggle-icon i,
.location-toggle i {
    position: static;
    transform: none;
    font-size: 18px;
}

.password-group input {
    padding-right: 48px;
}

/* ============================================================ */
/* [11] FORM ACTIONS Y BOTONES                                 */
/* ============================================================ */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 20px;
}

.left-align {
    justify-content: flex-start;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.remember-check input {
    display: none;
}

.check-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    background: var(--neumorph-bg);
    box-shadow: inset 1px 1px 2px var(--neumorph-dark), inset -1px -1px 2px var(--neumorph-light);
}

.remember-check input:checked+.check-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-check input:checked+.check-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.forgot-link,
.terms-link {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover,
.terms-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--neumorph-bg);
    border: none;
    border-radius: 44px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 8px 8px 16px var(--neumorph-dark), -8px -8px 16px var(--neumorph-light);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 12px 12px 20px var(--neumorph-dark), -12px -12px 20px var(--neumorph-light);
}

.btn-login:active {
    transform: translateY(2px);
    box-shadow: inset 6px 6px 12px var(--neumorph-dark), inset -6px -6px 12px var(--neumorph-light);
}

.btn-login:hover i {
    transform: translateX(5px);
}

.btn-login i {
    transition: transform 0.25s ease;
    color: var(--primary);
}

.switch-form {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.switch-form p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 13px;
}

.switch-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.switch-form a:hover {
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: var(--neumorph-bg);
    padding: 8px 16px;
    border-radius: 40px;
    color: var(--primary);
    box-shadow: 5px 5px 10px var(--neumorph-dark), -5px -5px 10px var(--neumorph-light);
}

.meta-item i {
    color: var(--primary);
    font-size: 13px;
}

.meta-dot {
    width: 8px;
    height: 8px;
    background: var(--text-soft);
    border-radius: 50%;
    opacity: 0.5;
}

/* ============================================================ */
/* [12] MEDIDOR DE FORTALEZA                                   */
/* ============================================================ */
.password-strength-container {
    margin: -8px 0 18px 0;
    padding: 0 8px;
}

.strength-meter {
    height: 6px;
    background: var(--neumorph-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.3s ease;
    margin-bottom: 8px;
}

.strength-bar.weak {
    background: linear-gradient(90deg, #EF4444, #F87171);
    width: 25%;
}

.strength-bar.medium {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    width: 50%;
}

.strength-bar.strong {
    background: linear-gradient(90deg, #10B981, #34D399);
    width: 75%;
}

.strength-bar.very-strong {
    background: linear-gradient(90deg, #f97316, #fbbf24);
    width: 100%;
}

.strength-text.weak {
    color: #EF4444;
}

.strength-text.medium {
    color: #F59E0B;
}

.strength-text.strong {
    color: #10B981;
}

.strength-text.very-strong {
    color: #f97316;
}

/* ============================================================ */
/* [13] MODAL DE VIDEO                                         */
/* ============================================================ */
.overlay-info,
.overlay-terms {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.overlay-info.active,
.overlay-terms.active {
    display: flex;
    animation: fadeOverlay 0.3s ease;
}

@keyframes fadeOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.info-modal-video {
    max-width: 750px;
    width: 90%;
    background: var(--neumorph-bg);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    animation: modalNeoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-modal-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    z-index: 2;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.info-close-neo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--neumorph-bg);
    border: none;
    color: #7a8aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 20;
    font-size: 14px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(255, 255, 255, 0.6);
}

.info-close-neo:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg) scale(1.05);
}

.compact-content {
    padding: 24px 28px 28px !important;
    max-height: 90dvh;
    overflow-y: auto;
}

.compact-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.15);
}

.compact-logo-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #f97316, #fbbf24);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12), -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.compact-logo-icon i {
    font-size: 28px;
    color: white;
}

.compact-title-group {
    flex: 1;
}

.compact-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.compact-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #6a7e9e;
    margin: 4px 0 0;
}

.video-container {
    background: #0a0a14;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 16px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -4px -4px 10px rgba(255, 255, 255, 0.5);
}

.guide-video {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
    outline: none;
}

.horizontal-cards {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 8px 0 4px;
}

.compact-cards .mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--neumorph-bg);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.08), -4px -4px 8px rgba(255, 255, 255, 0.6);
}

.compact-cards .mini-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-cards .mini-card-icon i {
    font-size: 18px;
    color: white;
}

.compact-cards .mini-card-content h4 {
    font-size: 11px;
    font-weight: 700;
    color: #1a2a4f;
}

.compact-cards .mini-card-content p {
    font-size: 9px;
    font-weight: 500;
    color: #7a8aaa;
}

/* ============================================================ */
/* [14] MODAL DE TÉRMINOS                                      */
/* ============================================================ */
.terms-modal {
    position: relative;
    width: 560px;
    max-width: 92%;
    background: var(--neumorph-bg);
    border-radius: 48px;
    overflow: hidden;
    animation: modalNeoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.terms-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--neumorph-bg);
    border: none;
    color: #7a8aaa;
    cursor: pointer;
    z-index: 20;
    font-size: 16px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.6);
}

.terms-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg) scale(1.05);
}

.terms-content {
    padding: 32px 28px 28px;
    overflow-y: auto;
    max-height: 85vh;
}

.terms-icon {
    width: 85px;
    height: 85px;
    background: var(--neumorph-bg);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.12), -8px -8px 16px rgba(255, 255, 255, 0.7);
}

.terms-icon i {
    font-size: 42px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.terms-content h3 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.terms-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    margin: 0 auto 24px;
    border-radius: 4px;
}

.terms-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a4f;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #f97316;
}

.terms-text p {
    font-size: 12.5px;
    color: #5a6e8a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.terms-accept-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    border: none;
    border-radius: 32px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-accept-btn:hover {
    transform: translateY(-3px);
}

@keyframes modalNeoSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================ */
/* [15] SISTEMA DE ALERTAS                                     */
/* ============================================================ */

.alert-system {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Alerta base */
.alert-toast {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    padding: 14px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 12px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    cursor: pointer;
    animation: slideInToast 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alert-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Icono */
.alert-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(2px 1px 2px rgba(0, 0, 0, 0.3));
}

.alert-toast-icon svg path {
    fill: white;
}

/* Título */
.alert-toast-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: white;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Botón cerrar */
.alert-toast-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    filter: drop-shadow(2px 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.alert-toast-close:hover {
    transform: scale(1.1);
    opacity: 1;
}

.alert-toast-close svg path {
    fill: white;
}

/* Tipos de alerta */
.alert-toast.error {
    background: linear-gradient(to right, #f45c43, #eb3349);
}

.alert-toast.success {
    background: linear-gradient(to right, #11998e, #38ef7d);
}

.alert-toast.warning {
    background: linear-gradient(to right, #f2994a, #f2c94c);
}

.alert-toast.info {
    background: linear-gradient(to right, #f97316, #fbbf24);
}

/* Animaciones */
@keyframes slideInToast {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .alert-system {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .alert-toast {
        width: auto;
        padding: 12px 16px;
    }

    .alert-toast-title {
        font-size: 13px;
    }
}

/* ============================================================ */
/* [16] RESPONSIVE - MÓVIL                                     */
/* ============================================================ */
@media (max-width: 992px) {
    body {
        padding: 16px;
    }

    .card-left {
        display: none;
    }

    .split-card {
        border-radius: 40px;
        max-width: 500px;
        margin: 0 auto;
    }

    .card-right {
        border-radius: 40px;
        padding: 40px 28px;
    }

    .right-content {
        max-width: 100%;
    }

    .container {
        max-width: 500px;
        width: 100%;
    }

    /* Ocultar Recordarme y Olvidaste tu Contraseña en móvil */
    .form-actions {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .row-fields {
        flex-direction: column;
        gap: 0;
    }

    .input-group-neumorph.half {
        width: 100%;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .btn-login {
        padding: 14px;
        font-size: 14px;
    }

    .footer-meta {
        margin-top: 32px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .horizontal-cards {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .compact-content {
        padding: 16px 18px 20px !important;
    }

    .compact-title {
        font-size: 16px;
    }

    .guide-video {
        max-height: 200px;
    }
}

@media (min-width: 993px) {
    .card-left {
        display: flex;
    }

    .card-right {
        border-radius: 0;
    }
}

/* Animación de salida para alertas */
@keyframes slideOutAlert {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.alert-modern {
    animation: slideInAlert 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}