.itinerary-wrapper {  
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.itinerary-container {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap; 
}

.flight-card {
    flex: 1 1 450px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.flight-header {
    background-color: #005CB9;
    color: white;
    padding: 20px;
    text-align: center;
}

.flight-header .title {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 5px 0;
}

.flight-header .subtitle {
    font-weight: 300;
    font-size: 0.9rem;
    margin: 0;
}

.flight-details {
    padding: 20px;
}

.flight-segment {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #e9ecef;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.flight-segment:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.segment-departure {
    flex: 1; 
    text-align: left;
    min-width: 120px;
}

.segment-arrival {
    flex: 1; 
    text-align: right;
    min-width: 120px;
}

.segment-mid {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}

.time-info {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0056b3;
    line-height: 1;
}

.airport-info {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-top: 5px;
}

.terminal-info, .duration {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 3px;
}

.class-airline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
    width: 100%;
}

.airline-info-text {
    color: #0056b3;
    font-weight: 500;
}

.airline-logo {
    max-width: 100px;
    height: auto;
}

.flight-card:hover, .passenger-wrapper:hover, .payment-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .itinerary-container {
        flex-direction: column;
        gap: 15px;
    }
    .flight-segment {
        flex-wrap: wrap;
    }
    
    .segment-departure, .segment-arrival {
        flex: 1 1 100%;
        text-align: left;
    }
    .segment-arrival {
            padding-top: 10px;
    }
    .segment-mid {
        flex: 1 1 100%; 
        order: 3; 
        margin: 5px 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        border-top: 1px dashed #eee;
        padding-top: 5px;
    }
}


/* --- Estilos de la Sección de Pasajeros --- */

.passenger-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.passenger-header {
    background-color: #005CB9;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.passenger-header .title {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.passenger-details {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.passenger-row {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.passenger-row:last-of-type {
    border-bottom: none;
}

.passenger-info-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.passenger-info-type {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.voucher-link {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #005CB9;
    text-decoration: none;
}

.voucher-link:hover {
    text-decoration: underline;
}

.ticket-number {
    font-weight: 600;
    color: #0056b3;
}

/* --- Estilos de la Sección de Pago --- */

.payment-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.payment-header {
    background-color: #005CB9;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.payment-header .title {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.payment-details {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-details h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.payment-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #333;
}

.payment-details ul li {
    margin-bottom: 5px;
    position: relative;
    line-height: 1.5;
    padding-left: 0;
}

.payment-details ul li::before {
    content: "•";
    color: #005CB9;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.payment-details ul > li > strong {
    display: inline-block;
    padding-left: 1.5em; 
    font-weight: 700;
    color: #0056b3; 
}

.payment-details ul ul {
    list-style: none;
    margin-top: 0px;
    margin-bottom: 20px;
    padding-left: 40px;
    font-size: 0.95rem
}

.payment-details ul ul li::before {
    content: none;
}

.payment-details ul ul li {
    margin-bottom: 5px;
    padding-left: 0;
}