* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mensaje-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mensaje-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
}

.mensaje-panel p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.mensaje-panel button {
    background: #0C8CF2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.mensaje-panel.error {
    border-top: 4px solid #ff3b30;
}

.mensaje-panel.success {
    border-top: 4px solid #00a650;
}

.mensaje-panel.info {
    border-top: 4px solid #0C8CF2;
}

.code-input.error {
    border-color: #ff3b30 !important;
    background: #fff5f5 !important;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFE600;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-logo img {
    width: 80px;
    height: auto;
}

.welcome-screen {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.welcome-screen.visible {
    opacity: 1;
}

.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 190px;
    z-index: 1;
    overflow: hidden;
}

.welcome-bg img {
    width: 100%;
    height: calc(100% + 190px);
    object-fit: cover;
    object-position: top center;
}

.buttons-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 190px;
    background: #f5f5f5;
    z-index: 5;
}

.buttons-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 10;
    width: 327px;
}

.btn-crear {
    width: 327px;
    height: 52px;
    background: #009ee3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.2px;
}

.btn-iniciar {
    background: transparent;
    border: none;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top: 4px solid #009ee3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 150;
    display: none;
    flex-direction: column;
}

.login-screen.visible {
    display: flex;
}

.mp-header {
    width: 100%;
    height: 50px;
    background: #FFE600;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 12px;
}

.mp-header-logo {
    height: 34px;
    width: auto;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.back-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 4px;
}

.help-btn {
    width: 22px;
    height: 22px;
    border: 1.5px solid #666;
    border-radius: 50%;
    background: transparent;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.login-content {
    flex: 1;
    padding: 16px 20px;
}

.login-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #009ee3;
}

.input-group.error .input-field {
    border-color: #e53935;
}

.error-message {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #e53935;
    margin-top: 6px;
}

.input-group.error .error-message {
    display: block;
}

.btn-continuar {
    width: 100%;
    height: 44px;
    background: #009ee3;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.btn-continuar.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.login-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.login-loader.visible {
    display: flex;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid #009ee3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-screen.loading .login-content,
.login-screen.loading .login-footer {
    filter: blur(2px);
    pointer-events: none;
}

.login-screen.loading .login-loader {
    display: flex;
    filter: none;
}

.btn-crear-cuenta {
    width: 100%;
    background: transparent;
    border: none;
    color: #009ee3;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px;
}

.login-footer {
    padding: 16px 20px 30px;
}

.security-btn {
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-top: 1px solid #eee;
    padding: 14px 0;
    cursor: pointer;
}

.security-icon {
    font-size: 16px;
    margin-right: 10px;
}

.security-text {
    flex: 1;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
}

.security-arrow {
    font-size: 16px;
    color: #999;
}

.privacy-link {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #009ee3;
    text-decoration: none;
    margin-top: 16px;
}

.captcha-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 160;
    display: none;
    flex-direction: column;
}

.captcha-screen.visible {
    display: flex;
}

.captcha-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.captcha-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.captcha-box {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 12px 16px;
    cursor: pointer;
    margin-bottom: 30px;
}

.captcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid #009ee3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.captcha-checkbox.loading {
    border-color: transparent;
}

.captcha-checkbox.loading .captcha-spinner {
    display: block;
}

.captcha-checkbox.checked {
    background: #4caf50;
    border-color: #4caf50;
}

.captcha-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.captcha-checkbox.checked .captcha-spinner {
    display: none;
}

.captcha-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.captcha-logo img {
    width: 32px;
    height: 32px;
}

.captcha-brand {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #555;
    margin-top: 2px;
}

.captcha-terms {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    color: #999;
}

.btn-ingresar {
    width: 100%;
    height: 44px;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
}

.btn-ingresar.active {
    background: #009ee3;
    color: white;
    cursor: pointer;
}

.captcha-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.captcha-loading-overlay.visible {
    display: flex;
}

.blue-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid #009ee3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.user-info-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 12px;
    margin-bottom: 20px;
    width: fit-content;
}

.user-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-email {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #333;
    margin-bottom: 0;
}

.change-account {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #009ee3;
    text-decoration: none;
}

.password-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-iniciar-sesion {
    background: #009ee3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.forgot-password {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #a0cfef;
    text-decoration: none;
}

.verification-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 24px;
}

.verification-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.verification-option {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.verification-option:first-child {
    border-top: 1px solid #eee;
}

.option-icon {
    width: 44px;
    height: 44px;
    border: 1px solid #009ee3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.option-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.option-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666;
}

.option-arrow {
    font-size: 20px;
    color: #999;
}

.cant-login-link {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #009ee3;
    text-decoration: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.code-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #fff;
}

.code-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.code-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 24px;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.code-input {
    width: 44px;
    height: 52px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #333;
    outline: none;
}

.code-input:focus {
    border-color: #009ee3;
}

.btn-confirmar {
    width: 100%;
    height: 52px;
    background: #009ee3;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.resend-timer {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 0;
}

.choose-other-method {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #009ee3;
    text-decoration: none;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
}

.btn-confirmar.loading {
    position: relative;
    color: transparent;
}

.btn-confirmar.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-screen.fading .login-content {
    animation: fadeToWhite 2s ease-out forwards;
}

.login-screen.fading .mp-header {
    animation: fadeToWhite 2s ease-out forwards;
}

.login-screen.fading .login-header {
    animation: fadeHeaderToWhite 2s ease-out forwards;
}

@keyframes fadeToWhite {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeHeaderToWhite {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 60px);
    padding: 24px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 24px;
}

.welcome-illustration {
    margin-bottom: 32px;
}

.welcome-img {
    width: 200px;
    height: auto;
}

.welcome-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 20px;
}

.welcome-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.welcome-link {
    color: #009ee3;
    text-decoration: none;
}

.welcome-footer {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
}

.btn-continuar {
    width: 100%;
    height: 52px;
    background: #009ee3;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.face-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 24px;
}

.face-illustration {
    margin-bottom: 32px;
}

.face-img {
    width: 180px;
    height: auto;
}

.face-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.face-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.processing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.processing-container.processing-bottom {
    justify-content: flex-end;
    padding-bottom: 200px;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid #0C8CF2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 200px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #0C8CF2;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top: 3px solid #0C8CF2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.processing-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-align: center;
}

.security-icon {
    margin-bottom: 24px;
}

.listo-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.listo-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

.scan-doc-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.scan-illustration {
    margin-bottom: 40px;
}

.scan-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.scan-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.face-oval {
    width: 280px;
    height: 380px;
    border: 4px solid #ffe600;
    border-radius: 50%;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
}

.doc-rectangle {
    width: 320px;
    height: 200px;
    border: 4px solid #ffe600;
    border-radius: 12px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: border-color 0.3s ease;
}

.doc-rectangle.detected {
    border-color: #00a650;
}

.corner-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #ffe600;
    transition: border-color 0.3s ease;
}

.doc-rectangle.detected .corner-indicator {
    border-color: #00a650;
}

.corner-indicator.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.corner-indicator.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.corner-indicator.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.corner-indicator.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

.doc-side-indicator {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffe600;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

#docCameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-icon {
    margin-bottom: 30px;
}

.flip-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.flip-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.flip-countdown {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0C8CF2;
    text-align: center;
}

.camera-instruction {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
}

.camera-instruction p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
}

.camera-close {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


