* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    --row-height: 3.5rem;
    --gold: #d4af37; /*#ffd700;*/
    --dark-bg: #000;
    --panel-bg: #0a0a0a;
    --ticker-height: 40px;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: var(--gold);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel {
    width: 100%;
    max-width: 1600px;
    height: calc(100vh - var(--ticker-height));
    border: 4px solid #444;
    padding: 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--panel-bg) 100%);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
    display: flex; 
    flex-direction: column;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
    gap: clamp(10px, 2vw, 20px);
    padding: clamp(10px, 1.5vw, 24px);
    padding-bottom: clamp(12px, 1.5vh, 20px);
    border-bottom: 2px solid #333;
    width: 100%;
}

.clock {
    font-size: clamp(20px, 2.5vw, 40px);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: right;
    flex-shrink: 0;
    width: clamp(110px, 12vw, 180px);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.title {
    font-size: clamp(24px, 4.5vw, 64px);
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.15em;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    flex: 1;
    min-width: 0;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.title::before {
    content: '✈';
    font-size: 1em;
    margin-right: 15px;
    opacity: 0.9;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    width: clamp(110px, 12vw, 180px);
    gap: 10px;
}

.logo {
    height: clamp(40px, 7vh, 90px);
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.subtitle {
    color: #ccc;
    margin-bottom: clamp(6px, 1vh, 12px);
    font-size: clamp(11px, 1.2vw, 16px);
    text-align: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding: 0 clamp(10px, 1.5vw, 24px);
    padding-top: clamp(8px, 1vh, 12px);
    width: 100%;
    display: block;
}

.date-indicator {
    text-align: center;
    color: var(--gold);
    font-size: clamp(12px, 1.5vw, 20px);
    margin-top: clamp(8px, 1.5vh, 20px);
    margin-bottom: clamp(8px, 1.5vh, 20px);
    font-weight: bold;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding: 0 clamp(10px, 1.5vw, 24px);
}

.progress-container {
    margin-bottom: clamp(10px, 2vh, 24px);
    flex-shrink: 0;
    padding: 0 clamp(10px, 1.5vw, 24px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: clamp(10px, 1vw, 12px);
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: clamp(6px, 1vh, 8px);
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #ffed4e 100%);
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 2px solid #444;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; 
}

tbody::after {
    content: '';
    display: block;
    height: 60px;
}

.table-wrapper::-webkit-scrollbar {
    width: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #111;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

table { 
    width: 100%;
    border-collapse: collapse; 
    font-size: clamp(14px, 1.8vw, 26px); 
    table-layout: fixed; 
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--dark-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

th {
    padding: clamp(8px, 1.5vh, 16px) clamp(6px, 1vw, 12px);
    font-weight: 700;
    border-bottom: 3px solid var(--gold);
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
    font-size: clamp(12px, 1.5vw, 18px);
    font-family: 'Orbitron', sans-serif;
}

td {
    padding: clamp(4px, 0.5vh, 8px) clamp(6px, 1vw, 12px);
    border-bottom: 1px solid #222;
    height: var(--row-height);
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

th:nth-child(1), td:nth-child(1) { text-align: center; width: 10%; }
th:nth-child(2), td:nth-child(2) { text-align: left; width: 30%; }
th:nth-child(3), td:nth-child(3) { text-align: left; width: 25%; }
th:nth-child(4), td:nth-child(4) { text-align: center; width: 12%; }
th:nth-child(5), td:nth-child(5) { text-align: center; width: 23%; }

.cell-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    word-break: break-word;
}

tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.empty-row td {
    background: repeating-linear-gradient(
        45deg,
        #050505 0px,
        #050505 10px,
        #080808 10px,
        #080808 20px
    );
}

.date-row td {
    background: #222 !important;
    text-align: center;
    font-weight: bold;
    padding: 10px !important;
    color: var(--gold);
}

.scheduled { 
    color: #999; 
}

.boarding { 
    color: #ff8800; 
    animation: pulse 2s infinite; 
}

.live { 
    color: #ff3333; 
    font-weight: bold; 
    text-shadow: 0 0 10px #ff0000; 
    animation: pulse 1.5s infinite; 
}

.completed { 
    text-decoration: line-through; 
    opacity: 0.5; 
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ticker-height);
    background-color: var(--gold);
    border-top: 3px solid var(--dark-bg);
    z-index: 999;
    overflow: hidden;
}

.ticker {
    display: flex;
    height: 100%;
    align-items: center;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker__item {
    color: var(--dark-bg);
    font-weight: bold;
    font-size: clamp(14px, 2vw, 18px);
    padding: 0 clamp(20px, 5vw, 50px);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

@keyframes ticker {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 1024px) {
    :root { --row-height: 3.5rem; }
    body { padding: 0; }
    .panel { 
        height: calc(100vh - var(--ticker-height)); 
        border: none; 
        border-radius: 0; 
        max-width: 100%; 
    }
    th:nth-child(3), td:nth-child(3) { display: none; }
    th:nth-child(1), td:nth-child(1) { width: 15%; }
    th:nth-child(2), td:nth-child(2) { width: 40%; }
    th:nth-child(4), td:nth-child(4) { width: 20%; }
    th:nth-child(5), td:nth-child(5) { width: 25%; }
}

@media (max-width: 768px) {
    :root { --row-height: 3rem; --ticker-height: 35px; }
    .header-container { 
        flex-direction: column; 
        gap: 8px; 
        align-items: center; 
    }
    .logos { 
        order: 1; 
        min-width: auto; 
        justify-content: center; 
    }
    .title { 
        order: 2; 
        font-size: clamp(20px, 6vw, 32px); 
        width: 100%; 
    }
    .clock { 
        order: 3; 
        font-size: clamp(18px, 4vw, 24px); 
        min-width: auto; 
        text-align: center; 
    }
    .title::before { display: none; }
    
    tbody tr:last-child td {
        padding-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    :root { --row-height: 2.8rem; --ticker-height: 30px; }
    .subtitle { display: none; }
    th:nth-child(4), td:nth-child(4) { display: none; }
    th:nth-child(1), td:nth-child(1) { width: 20%; }
    th:nth-child(2), td:nth-child(2) { width: 50%; }
    th:nth-child(5), td:nth-child(5) { width: 30%; }
    
    tbody tr:last-child td {
        padding-bottom: 50px !important;
    }
}

/* Estado: CANCELADO */
/* Se verá rojo, tachado y medio transparente */
.status-cancelled {
    color: #ff4444 !important;
    text-decoration: line-through;
    opacity: 0.6;
    font-style: italic;
}

/* Estado: RETRASADO */
/* Parpadeará en naranja para llamar la atención */
.status-delayed {
    color: #ff8800 !important;
    animation: blink 1.5s infinite;
    font-weight: bold;
}

/* Estado: FINALIZADO */
/* Se oscurece para que el ojo vaya a las siguientes */
.status-completed {
    color: #444 !important;
}