/* ============================================
   TUNY NET - CORPORATE PLATFORM STYLES
   ============================================
   
   Propiedad de: Alexis Reyes Arias
   Clave Elector: RYARAL95051915H400
   © 2024-2026 Todos los derechos reservados
   
   ============================================
   
   Paleta de colores oficial extraída de https://tuny.com/:
   - Tuny Red: #E31E24 (primary brand color)
   - Tuny Red Dark: #B91A1F (hover states)
   - Tuny Blue: #00A3E0 (accent color from brand)
   - Tuny Sky Blue: #00BCE4 (light accents)
   - Dark Gray: #2C3E50 (text)
   - Light Gray: #ECF0F1 (backgrounds)
   - White: #FFFFFF
   ============================================ */

:root {
    /* Brand Colors from Tuny.com */
    --tuny-red: #E31E24;
    --tuny-red-dark: #B91A1F;
    --tuny-red-light: #FF4449;
    --tuny-blue: #00A3E0;
    --tuny-blue-dark: #0082B3;
    --tuny-sky: #00BCE4;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #ECF0F1;
    --mid-gray: #95A5A6;
    --dark-gray: #2C3E50;
    --black: #1A1A1A;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   SCREEN MANAGEMENT
   ============================================ */

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Full-screen background image - FIXED: covers entire viewport */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('tuny-background.jpg');
    background-size: cover; /* Cubre toda la pantalla sin recortar */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay for readability - subtle dark overlay */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

/* ============================================
   ANIMATED LOGO (inside card, above title)
   ============================================ */

/* Logo container - starts centered on screen, moves to card header */
.login-logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 100;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phase 1: Logo appears centered */
.login-logo-container.appear {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Phase 2: Logo moves to card header position (INSIDE card, above "Bienvenido") */
/* Calcula la posición para que quede dentro de la tarjeta visible */
.login-logo-container.move-to-card {
    position: fixed;
    top: 50%; /* Se mantiene centrado verticalmente con la tarjeta */
    left: 50%;
    transform: translate(-50%, calc(-50% - 220px)) scale(0.55); /* Sube 220px (era 180px) - MÁS ARRIBA */
    opacity: 1;
    z-index: 10;
}

.login-logo {
    max-width: 450px; /* Mucho más grande - de 200px a 450px */
    width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 20px rgba(227, 30, 36, 0.5));
}

@media (max-width: 768px) {
    .login-logo {
        max-width: 320px; /* Más grande en móvil también */
    }
}

/* ============================================
   GLASSMORPHISM LOGIN CARD
   ============================================ */

.login-card {
    position: relative;
    z-index: 3;
    max-width: 480px; /* Un poco más ancha */
    width: 90%;
    padding: 8rem 2.5rem 2.5rem 2.5rem; /* Más espacio arriba para logo grande */
    border-radius: 24px;
    
    /* Glassmorphism effect - MORE OPAQUE for better visibility */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-xl);
    
    /* Initial state - hidden below screen */
    opacity: 0;
    transform: translateY(100vh);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phase 3: Card slides up from bottom */
.login-card.show {
    opacity: 1;
    transform: translateY(0);
}

.login-card-header {
    text-align: center;
    margin-top: 8rem; /* Espacio para el logo grande arriba */
    margin-bottom: 2.5rem;
}

.login-card-header h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-card-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   LOGIN FORM
   ============================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--mid-gray);
}

.form-group input:focus {
    background: var(--white);
    border-color: var(--tuny-red);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.15);
}

/* Password input with eye icon */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 3.5rem; /* Espacio para el botón de ojito */
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-gray);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--tuny-red);
}

.toggle-password:focus {
    outline: 2px solid var(--tuny-red);
    outline-offset: 2px;
    border-radius: 4px;
}

.eye-icon {
    width: 22px;
    height: 22px;
    transition: opacity var(--transition-fast);
}

.eye-closed {
    display: none;
}

.toggle-password.show-password .eye-open {
    display: none;
}

.toggle-password.show-password .eye-closed {
    display: block;
}

/* Error message */
.error-message {
    display: none;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--white);
    background: rgba(227, 30, 36, 0.95);
    border-radius: 8px;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================
   LOGIN BUTTON
   ============================================ */

.btn-login {
    width: 100%;
    padding: 1.125rem;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    background: linear-gradient(135deg, var(--tuny-red) 0%, var(--tuny-red-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading .btn-text {
    visibility: hidden;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-login.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   FORM FOOTER
   ============================================ */

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.remember-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-remember {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--tuny-red);
}

.label-remember {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    user-select: none;
}

.link-remember {
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.link-remember:hover {
    color: var(--tuny-sky);
    text-decoration: underline;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

#loadingScreen {
    background: linear-gradient(135deg, #00A3E0 0%, #00BCE4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle background animation */
#loadingScreen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.5;
    }
}

.loading-container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.loading-logo-wrapper {
    margin-bottom: 3rem;
    position: relative;
}

/* ============================================
   ORBITAL PARTICLES
   ============================================ */

.orbital-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Outer ring */
.orbital-ring-1 {
    width: 420px;
    height: 420px;
    animation: rotate 20s linear infinite;
}

/* Middle ring */
.orbital-ring-2 {
    width: 320px;
    height: 320px;
    animation: rotate 15s linear infinite reverse;
}

/* Inner ring */
.orbital-ring-3 {
    width: 220px;
    height: 220px;
    animation: rotate 10s linear infinite;
}

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

/* Particles on the rings */
.orbital-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
                0 0 30px rgba(255, 255, 255, 0.4);
    animation: particlePulse 2s ease-in-out infinite;
}

/* Distribute particles around the ring */
.orbital-ring-1 .orbital-particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbital-ring-1 .orbital-particle:nth-child(2) { top: 50%; left: 100%; transform: translateY(-50%); animation-delay: 0.3s; }
.orbital-ring-1 .orbital-particle:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.6s; }

.orbital-ring-2 .orbital-particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.2s; }
.orbital-ring-2 .orbital-particle:nth-child(2) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }

.orbital-ring-3 .orbital-particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.1s; }
.orbital-ring-3 .orbital-particle:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.3s; }
.orbital-ring-3 .orbital-particle:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.orbital-ring-3 .orbital-particle:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 0.7s; }

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Logo in center */
.loading-logo {
    position: relative;
    z-index: 2;
    max-width: 280px;
    width: 65vw;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.03);
    }
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.loading-progress {
    max-width: 400px;
    margin: 0 auto;
}

.progress-text {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-percent {
    font-size: 2.5rem;
    opacity: 0.9;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 4px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.progress-label {
    font-size: 1rem;
    color: var(--white);
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ============================================
   LOADING TIPS (Rotating messages)
   ============================================ */

.loading-tips {
    margin-top: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-weight-medium);
    font-style: italic;
    max-width: 90%;
    line-height: 1.6;
    animation: tipFadeIn 0.6s ease-in-out;
}

@keyframes tipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - LOADING SCREEN
   ============================================ */

@media (max-width: 768px) {
    .orbital-container {
        width: 320px;
        height: 320px;
    }
    
    .orbital-ring-1 {
        width: 320px;
        height: 320px;
    }
    
    .orbital-ring-2 {
        width: 240px;
        height: 240px;
    }
    
    .orbital-ring-3 {
        width: 160px;
        height: 160px;
    }
    
    .loading-logo {
        max-width: 200px;
    }
    
    .progress-text {
        font-size: 3rem;
    }
    
    .progress-percent {
        font-size: 2rem;
    }
    
    .tip-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .orbital-container {
        width: 260px;
        height: 260px;
    }
    
    .orbital-ring-1 {
        width: 260px;
        height: 260px;
    }
    
    .orbital-ring-2 {
        width: 200px;
        height: 200px;
    }
    
    .orbital-ring-3 {
        width: 140px;
        height: 140px;
    }
    
    .loading-logo {
        max-width: 160px;
    }
    
    .progress-text {
        font-size: 2.5rem;
    }
}

/* ============================================
   MAIN WEBSITE
   ============================================ */

#mainScreen {
    background: var(--off-white);
    overflow-y: auto;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo-img {
    height: 50px;
    width: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--tuny-red);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--tuny-red) 0%, var(--tuny-red-dark) 100%);
    color: var(--white);
}

.nav-item-logout .nav-link {
    color: var(--tuny-red);
    font-weight: var(--font-weight-semibold);
}

.nav-item-logout .nav-link:hover {
    background: rgba(227, 30, 36, 0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: calc(100vh - 150px);
    padding: 3rem 2rem;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--mid-gray);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   DASHBOARD GRID
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tuny-red) 0%, var(--tuny-red-dark) 100%);
    color: var(--white);
    border-radius: 12px;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 1rem;
    color: var(--mid-gray);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.25rem 0;
}

.footer-credits {
    font-size: 0.85rem !important;
    color: var(--tuny-sky) !important;
    margin-top: 0.5rem !important;
}

.footer-credits strong {
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .login-logo {
        max-width: 280px;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-card-header h1 {
        font-size: 1.75rem;
    }
    
    .loading-logo {
        max-width: 220px;
    }
    
    .progress-text {
        font-size: 3rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .nav-menu.open {
        max-height: 500px;
    }
    
    .nav-link {
        padding: 1rem 2rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-logo {
        max-width: 240px;
    }
    
    .login-card {
        padding: 1.5rem 1.25rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--tuny-blue);
    outline-offset: 2px;


.btn-back {
    all: unset; /* elimina estilos raros del navegador */
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #F1F5F9;
    color: #1E293B;

    padding: 8px 14px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #E2E8F0;
    transform: translateX(-2px);
}


    
}
