/* ======================================================
   🔍 CONSULTA DE RESERVACIÓN — LUNATRAVEL
   Solo lectura · Cliente
====================================================== */

.consulta-reserva {
    max-width: 900px;
    margin: 60px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.consulta-reserva h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #1f2937;
}

.consulta-info {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* ===============================
   FORMULARIO
================================ */

.consulta-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.consulta-form input {
    width: 260px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
}

.consulta-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.consulta-form button {
    padding: 12px 22px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.consulta-form button:hover {
    background: #1d4ed8;
}

/* ===============================
   RESULTADO
================================ */

.resumen-box {
    margin-top: 30px;
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
}

.resumen-box h3 {
    margin-bottom: 4px;
    color: #111827;
}

.codigo-viaje {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ===============================
   GRID INFO
================================ */

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.resumen-grid div {
    background: white;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

/* ===============================
   TABLA PAGOS
================================ */

.tabla-pagos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabla-pagos th {
    background: #1f2937;
    color: white;
    padding: 10px;
    font-size: 14px;
}

.tabla-pagos td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.tabla-pagos tr:hover {
    background: #f3f4f6;
}

.btn-pdf {
    background: #10b981;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

.btn-pdf:hover {
    background: #059669;
}

/* ===============================
   BOTÓN RESET
================================ */

.consulta-reset {
    text-align: center;
    margin-top: 25px;
}

.consulta-reset button {
    background: #374151;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
}

.consulta-reset button:hover {
    background: #111827;
}

/* ===============================
   ERRORES
================================ */

.error-msg {
    color: #dc2626;
    text-align: center;
    margin-top: 15px;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 600px) {

    .consulta-form {
        flex-direction: column;
        align-items: center;
    }

    .consulta-form input {
        width: 100%;
    }

    .tabla-pagos th,
    .tabla-pagos td {
        font-size: 13px;
    }
}
