/* ==========================================================================
   MEFOX LUXURY AVIATION - COMPLETE STYLE SHEET
   ========================================================================== */

:root {
    --bg-dark: #090b0e;
    --bg-card: rgba(18, 22, 31, 0.85);
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    --gold-glow: rgba(212, 175, 55, 0.3);
    --text-white: #f8f9fa;
    --text-muted: #9aa5b5;
    --border-glass: rgba(212, 175, 55, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --danger-red: #e63946;
    --success-green: #2a9d8f;
    --warning-orange: #e9c46a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==========================================================================
   BACKGROUND LAYOUT
   ========================================================================== */
.main-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #080a0e;
    overflow: hidden;
}

.bg-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(8, 10, 14, 0.5) 0%, rgba(8, 10, 14, 0.2) 100%),
                      url('img/pilatus.jpg');
    background-size: cover;
    background-position: center right;
    clip-path: polygon(52% 0, 100% 0, 100% 100%, 41% 100%);
}

/* ==========================================================================
   UTILITY & TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.text-gold { color: var(--gold-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-white) !important; }

.gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.luxury-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 1.5rem 0;
}

/* Badges & Pills */
.badge-none {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.active {
    background: rgba(42, 157, 143, 0.15);
    color: #48cae4;
    border: 1px solid var(--success-green);
}
.status-pill.pending {
    background: rgba(233, 196, 106, 0.15);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 11, 14, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.8rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.logo {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--danger-red);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-logout:hover {
    transform: scale(1.15);
}

/* Notifications Bell & Dropdown */
.notification-wrapper {
    position: relative;
}

.btn-icon-bell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.btn-icon-bell:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    width: 340px;
    z-index: 1001;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

.notification-dropdown.active {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.notif-header h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.btn-text-gold {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-text-gold:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.notif-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.notif-item:hover {
    border-color: var(--border-glass);
    background: rgba(212, 175, 55, 0.05);
}

.notif-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notif-empty i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.4;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0d0f12;
}

.btn-gold:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.btn-red {
    border: 1px solid var(--danger-red);
    color: var(--danger-red);
    background: transparent;
}

.btn-red:hover {
    background: var(--danger-red);
    color: white;
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-glow {
    box-shadow: 0 0 15px var(--gold-glow);
}

.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================================
   VIEWS & LAYOUTS
   ========================================================================== */
.spa-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 3rem 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.spa-view.active {
    display: block;
    opacity: 1;
}

/* Hero View */
#hero-view {
    min-height: calc(85vh - 80px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#hero-view.active {
    display: flex;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 580px;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   FLIGHTS SECTION
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.filter-panel {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label, .form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-group input, .form-group input, .form-group select, .form-group textarea {
    background: rgba(10, 13, 18, 0.7);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.filter-group input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.flights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 1.5rem;
}

.flight-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    transition: var(--transition);
}

.flight-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    text-align: center;
}

.route-city {
    font-size: 1.3rem;
    font-weight: 600;
}

.route-icon {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.flight-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* How It Works Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.how-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

.how-icon {
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.info-graphics-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    align-items: center;
}

.cabin-diagram {
    background: #0d1017;
    border-radius: 50px 50px 20px 20px;
    border: 2px solid var(--border-glass);
    padding: 2rem 1.5rem;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.cabin-nose {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cabin-row {
    display: flex;
    justify-content: space-around;
    margin: 0.8rem 0;
}

.cabin-seat {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-subtle);
}

.cabin-seat.available {
    background: rgba(42, 157, 143, 0.2);
    border-color: var(--success-green);
    color: #48cae4;
}

.cabin-seat.occupied {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: transparent;
}

.cabin-table {
    font-size: 0.7rem;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    padding: 0.2rem;
    border-radius: 4px;
    margin: 0.4rem 0;
}

/* User & Operator Layouts */
.tab-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.tab-sidebar {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: fit-content;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
}

.badge {
    background: var(--gold-primary);
    color: #000;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.tab-content-area {
    min-height: 400px;
}

.tab-pane {
    display: none;
    padding: 2rem;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forms */
.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

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

/* ==========================================================================
   TABLES & ACTION BUTTONS FIXES
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.luxury-table th, 
.luxury-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.luxury-table th {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.luxury-table thead tr {
    background: rgba(255, 255, 255, 0.02);
}

.luxury-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.04);
}

/* Unified horizontal layout for action buttons inside table cells */
.luxury-table td:last-child,
.action-buttons,
.table-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.luxury-table .btn,
.action-buttons .btn,
.table-actions .btn {
    white-space: nowrap !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    border-radius: 6px !important;
}

.luxury-table .btn i {
    font-size: 0.85rem;
}

/* Fiscal Accordion & File Dropzone Styling */
.fiscal-accordion summary::-webkit-details-marker {
    display: none;
}

.fiscal-accordion summary {
    list-style: none;
    user-select: none;
    outline: none;
}

.fiscal-accordion[open] summary .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.dropzone-box {
    border: 2px dashed var(--gold-primary) !important;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dropzone-box:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold-light) !important;
}

.operator-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.form-hint i {
    color: var(--gold-primary);
    margin-right: 0.25rem;
}

/* Enlaces dentro de textos de ayuda y de ventanas emergentes: dorado legible sobre fondo oscuro */
.form-hint a,
.booking-modal a:not(.btn) {
    color: var(--gold-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-hint a:hover,
.booking-modal a:not(.btn):hover {
    color: var(--gold-light, var(--gold-primary));
}

/* Auth View */
.container-sm {
    max-width: 480px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.auth-form-container {
    padding: 2rem;
}

.auth-form-container form {
    display: none;
}

.auth-form-container form.active {
    display: flex;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-toggle-link {
    font-size: 0.85rem;
}

.auth-toggle-link a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* ==========================================================================
   MODALS (BOOKING & AIRCRAFT SUBSTITUTION)
   ========================================================================== */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.booking-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.booking-modal {
    max-width: 850px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
}

.cabin-selector-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 1.5rem;
}

.airplane-cabin {
    background: #090c12;
    border-radius: 60px 60px 20px 20px;
    border: 2px solid var(--border-glass);
    padding: 2rem 1.5rem;
}

.cabin-cockpit {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gold-primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.cabin-seating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 220px;
    margin: 0 auto;
}

.seat-btn {
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.seat-btn.available:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.2);
}

.seat-btn.selected {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--gold-primary);
}

.seat-btn.occupied {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Con un número impar de plazas, el último asiento se centra en su fila */
.cabin-seating-grid > .seat-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
}

.seat-summary-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-details p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.seats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.seat-tag {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==========================================================================
   NOTIFICACIONES (CAMPANA)
   ========================================================================== */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.notif-item > i {
    color: var(--gold-primary);
    margin-top: 0.2rem;
}

.notif-item.type-success > i { color: var(--success-green); }
.notif-item.type-warning > i { color: var(--warning-orange); }
.notif-item.type-error > i { color: var(--danger-red); }

.notif-item.unread {
    border-color: var(--border-glass);
    background: rgba(212, 175, 55, 0.08);
}

.notif-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.notif-time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   DATOS EXTRA DE LA AERONAVE (tarjeta de vuelo y modal de detalles)
   ========================================================================== */
.flight-card-photo {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.9rem;
}

.aircraft-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: rgba(212, 175, 55, 0.08);
    font-size: 0.75rem;
    color: var(--text-white);
}

.feature-chip i {
    color: var(--gold-primary);
}

.aircraft-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
}

.aircraft-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.aircraft-gallery img:only-child {
    grid-column: 1 / -1;
}

.aircraft-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.spec-item i {
    color: var(--gold-primary);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.aircraft-description {
    margin-top: 1rem;
    white-space: pre-line;
    color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATIONS SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: toastIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-info { background: rgba(59, 130, 246, 0.9); border: 1px solid #3b82f6; }
.toast-success { background: rgba(16, 185, 129, 0.9); border: 1px solid #10b981; }
.toast-warning { background: rgba(245, 158, 11, 0.9); border: 1px solid #f59e0b; }
.toast-error { background: rgba(239, 68, 68, 0.9); border: 1px solid #ef4444; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .tab-layout, .info-graphics-box, .cabin-selector-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bg-gradient-overlay {
        clip-path: none;
        opacity: 0.5;
        /* En el móvil la foto se ve entera (a todo lo ancho), sin ampliarla, y el avión queda
           detrás del título. Para subirlo o bajarlo, cambie el 34% de background-position. */
        background-size: 100% 100%, 100% auto;
        background-position: center, center 34%;
        background-repeat: no-repeat;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    }
    #hero-view {
        align-items: center;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-title, .hero-subtitle {
        text-align: center;
    }
    .mobile-nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #090b0e;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; }
    .hero-title { font-size: 2.8rem; }
    .filter-panel, .form-row { flex-direction: column; grid-template-columns: 1fr; }
    .filter-panel { align-items: stretch; }
    .filter-panel .btn { width: 100%; }
    .operator-stats { flex-direction: column; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .booking-modal { padding: 1.2rem; }
    .hero-content { max-width: 100%; }
    .hero-actions { flex-wrap: wrap; justify-content: center; }
    .hero-actions .btn { flex: 1 1 200px; }
}

/* Móviles: la cabecera tiene que caber aunque el teléfono use letra grande */
@media (max-width: 600px) {
    .header-container { padding: 0 0.8rem; gap: 0.4rem; }
    .logo-container { gap: 0; min-width: 0; }
    .logo-container:empty { display: none; }
    .logo { width: 64px; }
    .mobile-nav-toggle { padding: 0.2rem 0.4rem; font-size: 1.3rem; }
    .header-actions { gap: 0.5rem; min-width: 0; }
    .header-actions .btn { padding: 0.5rem 0.7rem; font-size: 0.8rem; white-space: nowrap; }
    .btn-icon-bell { width: 38px; height: 38px; flex-shrink: 0; }
}

@media (max-width: 380px) {
    .header-actions .btn i { display: none; }
    .header-actions .btn { padding: 0.5rem 0.6rem; }
    .hero-title { font-size: 2rem; }
}

/* ==========================================================================
   ESTILOS EXTRAÍDOS DE ATRIBUTOS style="..." (index.html y app.js)
   Selector doblado (.a.a) en los que antes competían con otra regla CSS:
   así mantienen la prioridad que tenía el estilo en línea.
   ========================================================================== */
.label-block {
    display: block;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
}

.checkbox-accent {
    accent-color: var(--gold, #c5a059);
    width: 18px;
    height: 18px;
}

.file-input-dark.file-input-dark {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.hint-block {
    display: block;
    margin-top: 4px;
}

.dropzone-dashed.dropzone-dashed {
    border: 2px dashed var(--gold, #c5a059);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    border-radius: 8px;
}

.fiscal-box {
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
}

.fiscal-summary.fiscal-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: transparent;
    color: var(--gold, #c5a059);
}

.fiscal-body {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-lg.icon-lg {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.legal-modal-panel {
    max-width: 550px;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}

.modal-title-row {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-text-box {
    max-height: 180px;
    overflow-y: auto;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.5;
}

.legal-check-wrap {
    margin-bottom: 20px;
}

.legal-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
}

.legal-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.modal-actions-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel.btn-modal-cancel {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-modal-agree.btn-modal-agree {
    padding: 8px 20px;
    font-size: 0.85rem;
    opacity: 0.5;
    cursor: not-allowed;
}

.flight-header-row.flight-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.row-gap-6 {
    display: flex;
    gap: 6px;
    align-items: center;
}

.seats-pill.seats-pill {
    background: rgba(212,175,55,0.25);
    border: 1px solid rgba(212,175,55,0.4);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.flight-route-row.flight-route-row {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-city-name.route-city-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

.route-arrow.route-arrow {
    color: var(--gold-primary);
    margin: 0 10px;
}

.flight-date.flight-date {
    font-size: 0.85rem;
    margin-top: 8px;
    color: #cbd5e1;
}

.flight-footer-row {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.flight-aircraft-label {
    font-size: 0.75rem;
    display: block;
    color: #cbd5e1;
}

.no-margin {
    margin: 0;
}

.btn-card.btn-card {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.text-085 {
    font-size: 0.85rem;
}

.pad-10 {
    padding: 10px;
}

.payment-summary-box {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-110 {
    font-size: 1.1rem;
}

.form-stack-12.form-stack-12 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-label.pay-label {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
}

.pay-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pay-input-card {
    width: 100%;
    padding: 8px 12px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f3e5ab;
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.row-gap-10 {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.row-gap-10-top {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.flex-2 {
    flex: 2;
}

.text-success-sm {
    color: #6ee7b7;
    font-size: 0.85rem;
}

.empty-cell.empty-cell {
    padding: 15px;
    text-align: center;
}

.badge-cert-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.2);
    border: 1px solid #10b981;
    color: #2ea44f;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-attach-aoc.btn-attach-aoc {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(239,68,68,0.35);
    white-space: nowrap;
}

.badge-cert-missing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.badge-cert-ok-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.15);
    border: 1px solid #10b981;
    color: #6ee7b7;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.cell-middle.cell-middle {
    vertical-align: middle;
}

.mono-gold-light {
    font-family: monospace;
    color: #f3e5ab;
}

.cell-actions-nowrap.cell-actions-nowrap {
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.btn-table-toggle.btn-table-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-delete.btn-table-delete {
    padding: 6px 10px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plane-name {
    color: #fff;
    font-size: 0.95rem;
}

.plane-tail-code {
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-family: monospace;
}

.plane-meta {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.plane-warning {
    color: #ef4444;
    font-weight: bold;
    margin-left: 8px;
}

.reassign-modal-panel {
    max-width: 550px;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    position: relative;
}

.modal-close-abs {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-title-row-sm {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-desc.modal-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.4;
}

.text-danger-soft {
    color: #fca5a5;
}

.reassign-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px;
}

.modal-actions-end-plain {
    display: flex;
    justify-content: flex-end;
}

.text-danger-soft-bold {
    color: #fca5a5;
    font-weight: bold;
}

.badge-danger-sm.badge-danger-sm {
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 0.75rem;
}

.badge-success-sm.badge-success-sm {
    background: rgba(16,185,129,0.15);
    border: 1px solid #10b981;
    color: #6ee7b7;
    font-size: 0.75rem;
}

.cell-middle-center.cell-middle-center {
    vertical-align: middle;
    text-align: center;
}

.btn-route-reassign.btn-route-reassign {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.btn-route-delete.btn-route-delete {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.badge-gold-sm.badge-gold-sm {
    background: rgba(212,175,55,0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.btn-admin-delete.btn-admin-delete {
    padding: 2px 6px;
    font-size: 0.75rem;
}

.text-075 {
    font-size: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Estados de los componentes dinámicos (antes eran style condicionales en el JS) */
.btn.btn-book-flight:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.glass-panel.substitute-item {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.glass-panel.substitute-item.is-blocked {
    border-color: rgba(239, 68, 68, 0.3);
}

.btn.btn-substitute {
    padding: 6px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn.btn-substitute:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   CANCELAR RESERVA, EDITAR RUTA Y VERIFICACIÓN DE AOC
   ========================================================================== */
.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.booking-modal.modal-compact {
    max-width: 520px;
}

.btn.btn-compact {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.badge-cert-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-booking-cancelled {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-booking-done {
    display: inline-flex;
    align-items: center;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid #94a3b8;
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.row-cancelled td {
    opacity: 0.6;
}

.modal-summary {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.modal-summary li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-summary li span {
    color: var(--text-muted);
}

.refund-box {
    margin: 1rem 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
}

.refund-box.refund-none {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

.refund-box ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ACCESIBILIDAD, SEO Y RECUPERACIÓN DE CONTRASEÑA
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100000;
    padding: 0.7rem 1.2rem;
    background: var(--gold-primary);
    color: #0f172a;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.noscript-warning {
    padding: 1rem 1.5rem;
    background: #7f1d1d;
    color: #fff;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

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

/* ==========================================================================
   PASAJEROS POR ASIENTO Y LISTA DEL OPERADOR
   ========================================================================== */
.passenger-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.passenger-fieldset {
    margin: 0;
    padding: 0.5rem 0.9rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.passenger-fieldset legend {
    padding: 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.manifest-summary {
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
}

.manifest-actions {
    margin-top: 1rem;
}

/* ==========================================================================
   PANEL DE PASAJERO SUSPENDIDO
   ========================================================================== */
#user-panel-view.panel-suspended .tab-layout {
    display: none;
}

.suspended-notice {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.suspended-notice > i {
    font-size: 2.5rem;
    color: var(--gold-primary);
}

.suspended-notice h3 {
    margin: 0.8rem 0;
}

.suspended-notice p {
    color: var(--text-muted);
}

.suspended-notice .btn {
    margin-top: 1rem;
}

.suspended-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 auto 1.5rem;
    padding: 0.8rem 1.2rem;
    max-width: 760px;
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    text-align: center;
}

.suspended-banner > i {
    color: var(--gold-primary);
}

.suspended-banner a {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   PIE DE PÁGINA, AVISO DE COOKIES Y PÁGINAS LEGALES
   ========================================================================== */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(2, 6, 23, 0.6);
    font-size: 0.85rem;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--gold-primary);
    text-decoration: underline;
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9000;
    max-width: 760px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    font-size: 0.82rem;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
}

.cookie-notice a {
    color: var(--gold-primary);
}

.cookie-notice .btn {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Páginas de privacidad y cookies */
.legal-page {
    padding: 0 1rem 1rem;
}

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

.legal-brand {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-decoration: none;
}

.legal-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.2rem;
}

.legal-main h1 {
    margin: 0 0 0.3rem;
}

.legal-updated {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-main h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.25rem;
    color: var(--gold-primary);
}

.legal-main p,
.legal-main li {
    line-height: 1.7;
}

.legal-main a {
    color: var(--gold-primary);
}

/* Los botones dentro de las páginas legales conservan su propio color de texto */
.legal-main a.btn-gold {
    color: #0d0f12;
}

.legal-toc {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.3rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.legal-toc ol {
    margin: 0.5rem 0 0;
    padding-left: 1.3rem;
}

.legal-data-list {
    list-style: none;
    padding: 0;
}

.legal-todo {
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px dashed #f59e0b;
    color: #fbbf24;
    font-size: 0.85rem;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-table th {
    color: var(--gold-primary);
    white-space: nowrap;
}

.legal-main code {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .legal-main {
        padding: 1.3rem 1.1rem;
    }
}

/* ==========================================================================
   MI CUENTA, ELIMINAR CUENTA Y COPIA DE SEGURIDAD
   ========================================================================== */
.btn-account {
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-account:hover {
    transform: scale(1.15);
}

.account-section {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.account-section h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.account-section.account-danger {
    border-color: rgba(239, 68, 68, 0.5);
}

.account-impact {
    margin: 1rem 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.backup-last.backup-overdue {
    color: #fbbf24;
}

.backup-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.85rem;
}

.backup-warning i {
    margin-top: 0.15rem;
    color: #fbbf24;
}

.backup-actions {
    margin: 1rem 0 2rem;
}

.backup-subtitle {
    margin: 1.5rem 0 0.4rem;
}

/* ==========================================================================
   EDITAR AERONAVE Y FOTOS
   ========================================================================== */
.flight-card-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(15, 23, 42, 0.6));
    border: 1px dashed var(--border-subtle);
    color: var(--gold-primary);
    font-size: 2.4rem;
    opacity: 0.8;
}

.aircraft-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    margin: 0.5rem 0 0.8rem;
}

.photo-thumb {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.photo-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================================================
   RECUPERAR CONTRASEÑA: aviso, contraseña temporal y cambio obligatorio
   ========================================================================== */
.info-box {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
    font-size: 0.85rem;
}

.info-box strong {
    color: var(--gold-primary);
}

.info-box p {
    margin: 0.4rem 0;
}

.info-box a {
    color: var(--gold-primary);
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.temp-password-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px dashed var(--gold-primary);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
}

.temp-password-box code {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-primary);
    user-select: all;
}

.forced-overlay {
    z-index: 100001;
}

/* Vuelos de ejemplo (web pública) */
.demo-flag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.7rem;
    border: 1px dashed var(--gold-primary);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    font-size: 0.78rem;
    font-weight: 600;
}
