* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.form-container {
    padding: 30px;
}

.section-title {
    color: #1e3c72;
    font-size: 1.3em;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #ff6b35;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    font-size: 0.95em;
}

input, select, textarea {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

input[readonly] {
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.file-input-wrapper {
    position: relative;
    border: 2px dashed #ff6b35;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff8f4;
}

.file-input-wrapper:hover {
    background: #fff0e6;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.file-info {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.price-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.price-row.total {
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #ff6b35;
}

/* ============================================
   SECCIÓN MÉTODO DE PAGO
   ============================================ */
.payment-info {
    margin: 15px 0 25px;
}

.payment-box {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d1 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.15);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ff6b35;
}

.payment-icon {
    font-size: 2.5em;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-header h3 {
    color: #1e3c72;
    font-size: 1.3em;
    margin: 0;
}

.payment-number {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 10px rgba(30,60,114,0.3);
    user-select: all;
    cursor: pointer;
    transition: transform 0.2s;
}

.payment-number:hover {
    transform: scale(1.02);
}

.payment-number:active {
    transform: scale(0.98);
}

.payment-instructions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.payment-instructions p {
    color: #1e3c72;
    font-weight: bold;
    margin-bottom: 10px;
}

.payment-instructions ol {
    margin-left: 20px;
    color: #555;
    line-height: 1.8;
}

.payment-instructions ol li {
    margin-bottom: 5px;
}

.payment-instructions strong {
    color: #ff6b35;
}

.payment-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 6px;
    color: #856404;
    font-size: 0.95em;
    margin-top: 15px;
}

/* ============================================
   BOTONES Y ALERTAS
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 15px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.hidden {
    display: none;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-logout {
    background: #ff6b35;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b35;
}

.stat-card h3 {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2em;
    font-weight: bold;
    color: #1e3c72;
}

.filters {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 180px;
}

.table-container {
    padding: 20px 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th {
    background: #1e3c72;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 0.9em;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-6k { background: #e3f2fd; color: #1976d2; }
.badge-10k { background: #fff3e0; color: #f57c00; }
.badge-44k { background: #fce4ec; color: #c2185b; }
.badge-adulto { background: #e8f5e9; color: #388e3c; }
.badge-niño { background: #f3e5f5; color: #7b1fa2; }

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 30px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.chart-box h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================================
   LOGIN
   ============================================ */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-container h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.6em;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .stat-card .value {
        font-size: 1.5em;
    }
    
    table {
        font-size: 0.8em;
    }
    
    th, td {
        padding: 8px;
    }
    
    .payment-number {
        font-size: 1.8em;
        letter-spacing: 2px;
        padding: 15px;
    }
    
    .payment-header {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-header h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .form-container, .table-container, .stats-grid, .charts-container {
        padding: 15px;
    }
    
    .payment-number {
        font-size: 1.5em;
        letter-spacing: 2px;
        padding: 15px;
    }
    
    .payment-box {
        padding: 15px;
    }
    
    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
}