body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: 
  
    url('/css/views.jpg') center center / cover no-repeat fixed;
    color: #223046;
}

/* Ajuste para compensar el alto de la navbar sticky */
section > div:first-child {
    margin-top: 7.5rem; /* Ajusta este valor según el alto real de tu navbar */
}

.navbar, .navbar-fixed, nav, header {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96) !important;
    box-shadow: 0 2px 16px rgba(44,62,80,0.07);
    transition: none !important;
}

section > div {
    max-width: 700px;
    margin: 4rem auto 2.5rem auto;
    background: rgba(255,255,255,0.93);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
}

section h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #234;
    margin-bottom: 0.5em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(44,62,80,0.07);
}

section p {
    color: #357ab8;
    margin-bottom: 1.2em;
    font-size: 1.08em;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(44,62,80,0.07);
}

section span {
    color: #1a2747;
    font-size: 0.98em;
    font-weight: 400;
    opacity: 0.8;
}

.ticket-panel, .tickets-panel {
    background: rgba(255,255,255,0.97);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2.5rem 2rem;
    max-width: 600px;
    margin: 2.5rem auto 2rem auto;
}

.ticket-panel h2, .tickets-panel h2 {
    color: #223046;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    border-left: 4px solid #b7d0f7;
    padding-left: 0.7rem;
    background: none;
}

.ticket-panel a, .tickets-panel a {
    color: #357ab8;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1.2rem;
    font-size: 0.98em;
    transition: color 0.18s;
}
.ticket-panel a:hover, .tickets-panel a:hover {
    color: #249c5b;
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

form label {
    font-weight: 500;
    color: #223046;
    margin-bottom: 0.3em;
    font-size: 1em;
}

form input[type="text"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 0.7em 1em;
    border: 1.5px solid #b7d0f7;
    border-radius: 0.7em;
    font-size: 1em;
    background: #f7fafd;
    color: #223046;
    transition: border 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
}

form input[type="text"]:disabled {
    background: #f0f4f8;
    color: #b0b8c2;
}

form textarea {
    min-height: 90px;
    resize: vertical;
}

form input[type="text"]:focus,
form textarea:focus {
    border-color: #357ab8;
    box-shadow: 0 0 0 2px #b7d0f7;
}

form small {
    color: #7bb6e6;
    font-size: 0.95em;
    margin-top: 0.2em;
    display: block;
}

form button[type="submit"] {
    background: linear-gradient(90deg, #357ab8 0%, #b7d0f7 100%);
    color: #fff;
    border: none;
    border-radius: 0.7em;
    font-weight: 700;
    font-size: 1.08em;
    padding: 0.8em 0;
    margin-top: 0.5em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    transition: background 0.18s, transform 0.14s;
}
form button[type="submit"]:hover {
    background: linear-gradient(90deg, #249c5b 0%, #357ab8 100%);
    transform: translateY(-2px) scale(1.03);
}

.alert {
    border-radius: 0.7em;
    padding: 1em 1.2em;
    margin-bottom: 1.2em;
    font-size: 1em;
    font-weight: 500;
    text-align: left;
}
.alert-success {
    background: #eafaf1;
    color: #249c5b;
    border: 1.5px solid #b7e6c7;
}
.alert-danger {
    background: #fff0f0;
    color: #b83a3a;
    border: 1.5px solid #f7b7b7;
}

.tickets-panel {
    max-width: 900px;
    margin: 2.5rem auto 2rem auto;
    padding: 2.5rem 2rem;
}

.tickets-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2rem;
    background: #fff;
    border-radius: 0.7em;
    overflow: hidden;
    font-size: 0.98em;
}

.tickets-panel th, .tickets-panel td {
    padding: 0.7em 0.6em;
    text-align: left;
    border-bottom: 1px solid #e3f0fc;
}

.tickets-panel th {
    background: #f7fafd;
    color: #223046;
    font-weight: 700;
}

.tickets-panel tr:last-child td {
    border-bottom: none;
}

.tickets-panel a {
    color: #357ab8;
    text-decoration: underline;
    font-size: 0.97em;
}

.tickets-panel a:hover {
    color: #249c5b;
}

.login-register-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5em;
}

.login-register-actions a {
    display: inline-block;
    padding: 0.7em 2em;
    border-radius: 0.7em;
    font-weight: 700;
    font-size: 1.08em;
    text-decoration: none;
    background: linear-gradient(90deg, #e3eafc 0%, #c9e7f2 100%);
    color: #234;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    border: 1.5px solid #b7d0f7;
    transition: background 0.18s, color 0.18s, transform 0.14s, border 0.18s;
    outline: none;
}

.login-register-actions a:hover {
    background: linear-gradient(90deg, #b7d0f7 0%, #e3eafc 100%);
    color: #249c5b;
    border-color: #249c5b;
    transform: translateY(-2px) scale(1.04);
}

/* Flex para paneles */
.tickets-flex-container {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    width: 100%;
}
.ticket-panel {
    flex: 1 1 400px;
    min-width: 340px;
    max-width: 500px;
    align-self: flex-start; /* Alinea arriba */
}
.tickets-panel {
    flex: 2 1 600px;
    min-width: 340px;
    max-width: 900px;
    align-self: flex-start; /* Alinea arriba */
}

/* Responsive: apilar en móvil */
@media (max-width: 1100px) {
    .tickets-flex-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .ticket-panel, .tickets-panel {
        max-width: 98vw;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .ticket-panel, .tickets-panel, section > div {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
    .tickets-panel table, .tickets-panel th, .tickets-panel td {
        font-size: 0.93em;
    }
    section > div:first-child {
        margin-top: 6.5rem;
    }
}

@media (max-width: 600px) {
    .ticket-panel, .tickets-panel, section > div {
        padding: 0.7rem 0.2rem;
    }
    .tickets-panel table, .tickets-panel th, .tickets-panel td {
        font-size: 0.89em;
    }
    section h1 {
        font-size: 1.25rem;
    }
    section > div:first-child {
        margin-top: 5.5rem;
    }
}

/* Estado destacado */
.estado.abierto {
    background: #e6f7ed;
    color: #249c5b;
    font-weight: 700;
    padding: 0.25em 0.8em;
    border-radius: 1em;
    border: 1.5px solid #b7e6c7;
    font-size: 0.98em;
    letter-spacing: 0.5px;
}
.estado.cerrado {
    background: #fff0f0;
    color: #b83a3a;
    font-weight: 700;
    padding: 0.25em 0.8em;
    border-radius: 1em;
    border: 1.5px solid #f7b7b7;
    font-size: 0.98em;
    letter-spacing: 0.5px;
}