:root {
    --sharks-primary: #1A2544;
    --sharks-secondary: #2A3867;
    --sharks-accent: #0063A8;
    --sharks-accent-light: #6EC1E4;
    --sharks-bg: #F4F7FB;
    --sharks-surface: #FFFFFF;
    --sharks-text-dark: #1E293B;
    --sharks-text-muted: #64748B;
    --sharks-border: #E2E8F0;
    --sharks-success: #10B981;
    --sharks-warning: #F59E0B;
    --sharks-danger: #EF4444;
    --font-heading: 'Titillium Web', sans-serif;
    --font-body: 'Titillium Web', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-body);
    color: var(--sharks-text-dark);
    background-color: var(--sharks-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--sharks-primary);
}

/* Header de la Aplicación */
.app-header {
    background: linear-gradient(135deg, #1A2544 0%, #2A3867 100%);
    color: #FFFFFF;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 14px rgba(26, 37, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: white;
}

.app-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.app-logo-icon {
    height: 44px;
    width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    transition: transform 0.25s ease;
}

.app-brand:hover .app-logo-icon {
    transform: scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #A0C4E8;
    font-weight: 400;
}

/* User pill */
.user-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

/* Contenedor Principal */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Cards estilizadas */
.shark-card {
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid var(--sharks-border);
    box-shadow: 0 10px 25px -5px rgba(26, 37, 68, 0.05), 0 8px 10px -6px rgba(26, 37, 68, 0.03);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease-in-out;
}

.shark-card:hover {
    box-shadow: 0 14px 30px -5px rgba(26, 37, 68, 0.09);
}

.card-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDF2F7;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sharks-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

/* Wizard Steps Indicator */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.wizard-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #E2E8F0;
    z-index: 1;
}

.wizard-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #CBD5E1;
    color: var(--sharks-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.wizard-step-item.active .step-circle {
    background: var(--sharks-secondary);
    border-color: var(--sharks-accent);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 99, 168, 0.2);
}

.wizard-step-item.completed .step-circle {
    background: var(--sharks-success);
    border-color: var(--sharks-success);
    color: #FFFFFF;
}

.step-label {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sharks-text-muted);
}

.wizard-step-item.active .step-label {
    color: var(--sharks-secondary);
    font-weight: 700;
}

/* Zona de Carga Drag & Drop */
.upload-dropzone {
    border: 2px dashed #93C5FD;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover {
    border-color: var(--sharks-accent);
    background: #F0F7FF;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--sharks-accent);
    margin-bottom: 1rem;
}

/* Badges e informativos */
.badge-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-info {
    background-color: #E0F2FE;
    color: #0369A1;
}

.badge-success {
    background-color: #DCFCE7;
    color: #15803D;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #B45309;
}

/* Botones con estilo The Sharks */
.btn-shark {
    background: linear-gradient(135deg, #1A2544 0%, #2A3867 100%);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-shark:hover {
    background: linear-gradient(135deg, #243460 0%, #354784 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 37, 68, 0.2);
}

.btn-shark-outline {
    background: transparent;
    border: 2px solid var(--sharks-secondary);
    color: var(--sharks-secondary);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.3rem;
    transition: all 0.2s ease;
}

.btn-shark-outline:hover {
    background: #EDF2F7;
    color: var(--sharks-primary);
}

/* Visor de XML */
.xml-viewer {
    background: #0F172A;
    color: #E2E8F0;
    padding: 1.25rem;
    border-radius: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 420px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    border: 1px solid #334155;
}

/* Asunto de correo destacado */
.subject-box {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-left: 5px solid var(--sharks-accent);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.subject-text {
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
}

/* Pantalla de Login */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    max-width: 460px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(26, 37, 68, 0.08);
    border: 1px solid var(--sharks-border);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-height: 60px;
    margin-bottom: 1rem;
}