/* ===== Amadeus Buscador de Vuelos — ChromeNews Edition ===== */

.amadeus-buscador {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 32px;
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Formulario ── */
.amadeus-form {
    background: #f7f8fc;
    border: 1px solid #e2e5ef;
    border-radius: 12px;
    padding: 24px;
}

.amadeus-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.am-row-ruta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    gap: 8px;
    align-items: end;
}

.amadeus-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.amadeus-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555 !important;
}

.amadeus-field input,
.amadeus-field select {
    background: #fff !important;
    border: 1px solid #d5d9e8 !important;
    border-radius: 8px !important;
    color: #111111 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.amadeus-field input:focus,
.amadeus-field select:focus {
    outline: none !important;
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}

.amadeus-field input::placeholder {
    color: #aaa !important;
    font-weight: 400 !important;
}

.amadeus-hint {
    font-size: 10px;
    color: #aaa;
}

/* ── Autocomplete dropdown ── */
.am-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d5d9e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.am-autocomplete.open { display: block; }

.am-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f5;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-autocomplete-item:last-child { border-bottom: none; }

.am-autocomplete-item:hover,
.am-autocomplete-item.active {
    background: #f5f5f5;
}

.am-ac-code {
    font-size: 13px;
    font-weight: 800;
    color: #111111;
    min-width: 36px;
    font-family: monospace;
}

.am-ac-info { flex: 1; }

.am-ac-name {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
}

.am-ac-city {
    font-size: 11px;
    color: #888;
}

.am-autocomplete-loading {
    padding: 12px 14px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* Input con aeropuerto seleccionado */
.am-airport-input-wrap {
    position: relative;
}

.am-airport-input-wrap input {
    padding-right: 36px !important;
}

.am-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: none;
}

.am-clear-btn:hover { color: #e11d48; }

.am-selected-badge {
    display: none;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #000000;
    font-weight: 600;
    margin-top: 4px;
    align-items: center;
    gap: 6px;
}

.am-selected-badge.visible { display: flex; }

.am-selected-badge span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Swap */
.amadeus-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    background: #fff;
    border: 1px solid #d5d9e8;
    border-radius: 8px;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: end;
}

.amadeus-swap:hover {
    background: #111111;
    border-color: #111111;
    color: #fff;
    transform: rotate(180deg);
}

/* Botón buscar */
.amadeus-btn {
    background: #111111;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    width: 100%;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.amadeus-btn:hover { background: #111111; transform: translateY(-1px); }
.amadeus-btn:active { transform: translateY(0); }
.amadeus-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Status ── */
.amadeus-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    gap: 8px;
    color: #111111;
}

.amadeus-status.loading {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #111111 !important;
    display: flex;
}

.amadeus-status.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48 !important;
    display: flex;
}

/* ── Resultados ── */
.amadeus-resultados { margin-top: 24px; }

.amadeus-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid #111111;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.amadeus-results-title {
    font-size: 17px;
    font-weight: 800;
    color: #111111 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.amadeus-results-count {
    font-size: 12px;
    color: #888 !important;
}

/* ── Tarjeta de vuelo ── */
.amadeus-vuelo {
    background: #fff;
    border: 1px solid #e2e5ef;
    border-left: 4px solid #111111;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    animation: amFadeIn 0.3s ease forwards;
    opacity: 0;
    cursor: pointer;
}

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

.amadeus-vuelo:hover {
    border-left-color: #111111;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

.am-endpoint {}

.am-hora {
    font-size: 22px;
    font-weight: 900;
    color: #111111 !important;
    line-height: 1;
}

.am-aeropuerto {
    font-size: 11px;
    font-weight: 700;
    color: #888 !important;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.am-duracion {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.am-duracion-tiempo {
    font-size: 11px;
    font-weight: 600;
    color: #aaa !important;
}

.am-linea {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 80px;
}

.am-linea::before, .am-linea::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.am-avion { font-size: 12px; }

.am-escalas {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

.am-directo { background: #f0f7f0; color: #2a7a2a !important; }
.am-una     { background: #f5f5f5; color: #555 !important; }
.am-varias  { background: #f5f5f5; color: #333 !important; }

.am-aerolinea { text-align: center; }

.am-carrier-code {
    font-size: 16px;
    font-weight: 900;
    color: #111111 !important;
    letter-spacing: 0.05em;
}

.am-carrier-label {
    font-size: 10px;
    color: #bbb !important;
    margin-top: 1px;
}

.am-divider {
    width: 1px;
    height: 40px;
    background: #e2e5ef;
    flex-shrink: 0;
}

.am-precio { text-align: right; min-width: 90px; }

.am-precio-desde {
    font-size: 10px;
    color: #bbb !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.am-precio-monto {
    font-size: 24px;
    font-weight: 900;
    color: #111111 !important;
    line-height: 1;
}

.am-precio-moneda {
    font-size: 11px;
    color: #888 !important;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .amadeus-form { padding: 16px; }
    .am-row-ruta { grid-template-columns: 1fr 32px 1fr; gap: 6px; }
    .amadeus-form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .amadeus-vuelo { grid-template-columns: 1fr auto 1fr; gap: 10px; }
    .am-divider, .am-aerolinea { display: none; }
    .am-hora { font-size: 19px; }
    .am-precio-monto { font-size: 20px; }
    .am-linea { width: 50px; }
}

@media (max-width: 420px) {
    .amadeus-form-grid { grid-template-columns: 1fr; }
    .am-row-ruta { grid-template-columns: 1fr 30px 1fr; }
}

.amadeus-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    color: #856404 !important;
    font-size: 14px;
}

/* ═══════════════════════════════════════
   BOTÓN SELECCIONAR en tarjeta de vuelo
═══════════════════════════════════════ */
.amadeus-vuelo {
    grid-template-columns: auto 1fr auto 1fr auto auto auto !important;
}

.am-select-btn {
    background: #111111;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    white-space: nowrap;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.am-select-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   MODAL OVERLAY
═══════════════════════════════════════ */
#am-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.65);
    z-index: 99999;
    backdrop-filter: blur(3px);
    padding: 20px;
    overflow-y: auto;
}

body.am-modal-open { overflow: hidden; }

#am-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
}

/* ── Modal header ── */
.am-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f5;
    background: #f7f8fc;
}

.am-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #111111 !important;
    letter-spacing: 0.01em;
}

.am-modal-close {
    background: none;
    border: none;
    color: #aaa !important;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.am-modal-close:hover { background: #f0f0f5; color: #111111 !important; }

.am-back-btn {
    background: none;
    border: 1px solid #e2e5ef;
    border-radius: 6px;
    color: #666 !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    transition: all 0.2s;
}
.am-back-btn:hover { border-color: #111111; color: #111111 !important; }

/* ── Modal body ── */
.am-modal-body {
    padding: 24px;
    max-height: 65vh;
    overflow-y: auto;
}

.am-modal-section {
    margin-bottom: 28px;
}
.am-modal-section:last-child { margin-bottom: 0; }

.am-modal-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888 !important;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f5;
}

/* ── Segmentos ── */
.am-itinerary-label {
    font-size: 11px;
    font-weight: 800;
    color: #111111 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    margin-top: 16px;
}

.am-segment {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f7f8fc;
    border-radius: 10px;
    margin-bottom: 8px;
}

.am-segment-airline { min-width: 70px; }

.am-segment-carrier {
    font-size: 14px;
    font-weight: 800;
    color: #111111 !important;
}

.am-segment-aircraft {
    font-size: 11px;
    color: #aaa !important;
    margin-top: 2px;
}

.am-segment-route {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-segment-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.am-seg-hora {
    font-size: 18px;
    font-weight: 900;
    color: #111111 !important;
}

.am-seg-iata {
    font-size: 11px;
    font-weight: 700;
    color: #888 !important;
    margin-top: 1px;
}

.am-segment-middle {
    flex: 1;
    text-align: center;
}

.am-seg-duration {
    font-size: 11px;
    color: #aaa !important;
    margin-bottom: 3px;
}

.am-seg-line {
    color: #ccc !important;
    font-size: 12px;
    letter-spacing: -1px;
}

.am-stopover {
    font-size: 12px;
    color: #f59e0b !important;
    font-weight: 600;
    padding: 6px 12px;
    background: #fffbeb;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #fde68a;
}

/* ── Precio desglose ── */
.am-price-breakdown {
    background: #f7f8fc;
    border-radius: 10px;
    padding: 16px;
}

.am-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555 !important;
    padding: 6px 0;
    border-bottom: 1px solid #eef0f5;
}
.am-price-row:last-child { border-bottom: none; }

.am-price-total {
    font-size: 16px;
    font-weight: 800;
    color: #111111 !important;
    padding-top: 10px;
    margin-top: 4px;
}
.am-price-total span:last-child { color: #111111 !important; }

/* ── Formulario pasajero ── */
.am-pax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.am-pax-contact { margin-top: 12px; }

.am-full-width { grid-column: 1 / -1; }

.am-pax-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.am-pax-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666 !important;
}

.am-pax-field input,
.am-pax-field select {
    background: #fff !important;
    border: 1px solid #d5d9e8 !important;
    border-radius: 8px !important;
    color: #111111 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 9px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    -webkit-appearance: none !important;
}
.am-pax-field input:focus,
.am-pax-field select:focus {
    outline: none !important;
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}
.am-pax-field input::placeholder { color: #bbb !important; }

/* ── Resumen de reserva ── */
.am-booking-summary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
}

.am-bs-route {
    font-size: 20px;
    font-weight: 900;
    color: #111111 !important;
}

.am-bs-detail, .am-bs-pax {
    font-size: 13px;
    color: #555555 !important;
    margin-top: 4px;
    font-weight: 500;
}

.am-payment-note {
    font-size: 12px;
    color: #888 !important;
    margin-top: 12px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

/* ── Modal footer ── */
.am-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #eef0f5;
    background: #f7f8fc;
    gap: 16px;
}

.am-modal-total {
    display: flex;
    flex-direction: column;
}

.am-modal-total span {
    font-size: 11px;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.am-modal-total strong {
    font-size: 22px;
    font-weight: 900;
    color: #111111 !important;
}

.am-confirm-btn {
    background: #111111;
    border: none;
    border-radius: 10px;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.am-confirm-btn:hover { background: #111111; transform: translateY(-1px); }
.am-confirm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.am-pay-btn { background: #2a7a2a; }
.am-pay-btn:hover { background: #1a5a1a; }

/* ── Confirmación ── */
.am-confirmation {
    text-align: center;
    padding: 32px 24px;
}
.am-confirm-icon { font-size: 56px; margin-bottom: 16px; }
.am-confirm-title { font-size: 22px; font-weight: 900; color: #111111 !important; margin-bottom: 10px; }
.am-confirm-ref { font-size: 15px; color: #555 !important; margin-bottom: 12px; }
.am-confirm-ref strong { color: #111111 !important; }
.am-confirm-msg { font-size: 14px; color: #888 !important; }

/* ── Responsive modal ── */
@media (max-width: 640px) {
    #am-modal-overlay { padding: 0; align-items: flex-end; display: flex; }
    #am-modal-content { border-radius: 16px 16px 0 0; max-height: 95vh; width: 100%; }
    .am-pax-grid { grid-template-columns: 1fr; }
    .am-modal-footer { flex-direction: column; }
    .am-confirm-btn { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════
   PANTALLA DE DETALLE
═══════════════════════════════════════ */

#am-detalle-pantalla { display: none; }

.am-detalle {
    font-family: inherit;
    width: 100%;
}

/* Header de detalle */
.am-detalle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #111111;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.am-volver-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.2s;
    white-space: nowrap;
}
.am-volver-btn:hover { background: rgba(255,255,255,0.2); }

.am-detalle-ruta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.am-detalle-iata {
    font-size: 28px;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: 0.05em;
}

.am-detalle-flecha {
    font-size: 20px;
    color: rgba(255,255,255,0.4) !important;
}

.am-detalle-precio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.am-det-precio-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5) !important;
}

.am-det-precio-monto {
    font-size: 24px;
    font-weight: 900;
    color: #333333 !important;
    line-height: 1;
}

.am-det-precio-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 2px;
}

/* Grid 2 columnas */
.am-detalle-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Secciones */
.am-det-section {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.am-det-section:last-child { margin-bottom: 0; }

.am-det-sticky { position: sticky; top: 20px; }

.am-det-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888 !important;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f5;
}

/* Label IDA/VUELTA */
.am-it-label {
    font-size: 11px;
    font-weight: 800;
    color: #111111 !important;
    letter-spacing: 0.1em;
    margin: 16px 0 8px;
}
.am-it-label:first-child { margin-top: 0; }

.am-it-duration-total {
    font-size: 12px;
    color: #888 !important;
    margin-bottom: 12px;
}

/* Tarjeta de segmento */
.am-seg-card {
    background: #f7f8fc;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.am-seg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.am-seg-flight-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-seg-carrier-big {
    font-size: 15px;
    font-weight: 900;
    color: #111111 !important;
    letter-spacing: 0.03em;
}

.am-seg-aircraft {
    font-size: 12px;
    color: #888 !important;
    background: #fff;
    border: 1px solid #e2e5ef;
    border-radius: 4px;
    padding: 2px 8px;
}

.am-seg-date {
    font-size: 12px;
    color: #888 !important;
    font-weight: 500;
}

/* Ruta visual del segmento */
.am-seg-route-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.am-seg-point {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 60px;
}

.am-seg-point-right { align-items: flex-end; }

.am-seg-time {
    font-size: 24px;
    font-weight: 900;
    color: #111111 !important;
    line-height: 1;
}

.am-seg-iata-big {
    font-size: 13px;
    font-weight: 700;
    color: #888 !important;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.am-seg-terminal {
    font-size: 11px;
    color: #aaa !important;
    background: #fff;
    border: 1px solid #e2e5ef;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 3px;
}

.am-seg-line-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.am-seg-dur-label {
    font-size: 11px;
    color: #aaa !important;
    font-weight: 600;
}

.am-seg-line-visual {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 3px;
}

.am-seg-dot {
    width: 6px; height: 6px;
    background: #111111;
    border-radius: 50%;
    flex-shrink: 0;
}

.am-seg-track {
    flex: 1;
    height: 1px;
    background: #d5d9e8;
}

.am-seg-plane {
    font-size: 14px;
    flex-shrink: 0;
}

.am-seg-cabin {
    font-size: 12px;
    color: #666 !important;
    margin-top: 4px;
}

/* Escala */
.am-stopover-bar {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: #92400e !important;
    font-weight: 600;
    margin: 6px 0 8px;
    text-align: center;
}

/* Equipaje */
.am-baggage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.am-bag-item {
    background: #f7f8fc;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 12px;
}

.am-bag-seg {
    font-size: 11px;
    font-weight: 700;
    color: #111111 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.am-bag-detail {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #555 !important;
    margin-bottom: 5px;
}

.am-bag-icon { flex-shrink: 0; }

.am-bag-na {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #888 !important;
    padding: 12px;
    background: #f7f8fc;
    border-radius: 8px;
    border: 1px dashed #e2e5ef;
}

/* Badge en lista */
.am-bag-badge {
    font-size: 10px;
    background: #f0f0f0;
    color: #444 !important;
    border: 1px solid #ddd;
    border-radius: 100px;
    padding: 2px 8px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.am-fecha-small {
    font-size: 10px;
    color: #aaa !important;
    margin-top: 2px;
}

/* Precio en sidebar */
.am-price-box {
    background: #f7f8fc;
    border-radius: 10px;
    padding: 14px;
}

.am-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555 !important;
    padding: 6px 0;
    border-bottom: 1px solid #eef0f5;
}
.am-price-row:last-child { border-bottom: none; }

.am-price-subtotal {
    font-weight: 600;
    color: #111111 !important;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e2e5ef;
    border-bottom: none;
}

.am-price-total {
    font-size: 15px;
    font-weight: 900;
    color: #111111 !important;
    padding-top: 10px;
    border-top: 2px solid #111111;
    border-bottom: none;
}
.am-price-total span:last-child { color: #111111 !important; }

/* Condiciones */
.am-conditions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.am-condition-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.am-cond-ok   { background: #f0f7f0; color: #2a6a2a !important; border: 1px solid #c8e6c8; }
.am-cond-no   { background: #fdf5f5; color: #8b1a1a !important; border: 1px solid #e8c8c8; }
.am-cond-warn { background: #fdf8f0; color: #7a4a10 !important; border: 1px solid #e8d8b8; }
.am-cond-info { background: #f5f5f5; color: #555 !important; border: 1px solid #e0e0e0; }

/* Botón reservar */
.am-reservar-btn {
    background: #111111;
    border: none;
    border-radius: 10px;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
    width: 100%;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    text-align: center;
}
.am-reservar-btn:hover { background: #111111; transform: translateY(-1px); }
.am-reservar-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.am-pay-btn { background: #2a7a2a !important; }
.am-pay-btn:hover { background: #1a5a1a !important; }

/* Resumen booking */
.am-booking-summary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
}
.am-bs-route { font-size: 18px; font-weight: 900; color: #111111 !important; margin-bottom: 6px; }
.am-bs-detail { font-size: 12px; color: #555555 !important; font-weight: 500; margin-top: 3px; }
.am-bs-pax { font-size: 12px; color: #555555 !important; font-weight: 500; margin-top: 3px; }
.am-bs-precio { font-size: 20px; font-weight: 900; color: #111111 !important; margin-top: 10px; border-top: 1px solid #d0d0d0; padding-top: 10px; }

/* Formulario pasajero */
.am-pax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-full-width { grid-column: 1 / -1; }
.am-pax-field { display: flex; flex-direction: column; gap: 5px; }
.am-pax-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #666 !important; }
.am-pax-field input, .am-pax-field select {
    background: #fff !important; border: 1px solid #d5d9e8 !important; border-radius: 8px !important;
    color: #111111 !important; font-family: inherit !important; font-size: 14px !important;
    padding: 9px 12px !important; width: 100% !important; box-sizing: border-box !important;
    transition: border-color 0.2s !important; -webkit-appearance: none !important;
}
.am-pax-field input:focus, .am-pax-field select:focus { outline: none !important; border-color: #111111 !important; box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important; }
.am-pax-field input::placeholder { color: #bbb !important; }

.am-payment-note {
    font-size: 12px; color: #888 !important; margin-top: 12px;
    padding: 10px; background: #f0fdf4; border-radius: 6px; border: 1px solid #bbf7d0;
}

/* Confirmación */
.am-confirmacion-wrap { display: flex; justify-content: center; padding: 40px 0; }
.am-confirm-box { text-align: center; max-width: 400px; background: #fff; border: 1px solid #eef0f5; border-radius: 16px; padding: 40px 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.am-confirm-icon { font-size: 56px; margin-bottom: 16px; }
.am-confirm-title { font-size: 22px; font-weight: 900; color: #111111 !important; margin-bottom: 8px; }
.am-confirm-ref { font-size: 14px; color: #666 !important; margin-bottom: 8px; }
.am-confirm-ref strong { color: #111111 !important; }
.am-confirm-route { font-size: 18px; font-weight: 800; color: #111111 !important; margin-top: 16px; }
.am-confirm-date { font-size: 13px; color: #888 !important; margin-top: 4px; }
.am-confirm-msg { font-size: 13px; color: #888 !important; margin-top: 16px; line-height: 1.5; }

/* Responsive */
@media (max-width: 768px) {
    .am-detalle-grid { grid-template-columns: 1fr; }
    .am-det-sticky { position: static; }
    .am-detalle-col-side { order: -1; }
    .am-baggage-grid { grid-template-columns: 1fr; }
    .am-pax-grid { grid-template-columns: 1fr; }
    .am-detalle-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .am-detalle-ruta { justify-content: flex-start; }
    .am-detalle-precio-header { align-items: flex-start; }
}

/* ═══════════════════════════════════════
   NOMBRES DE AEROLÍNEA Y AEROPUERTO
═══════════════════════════════════════ */

/* Aerolínea en tarjeta lista — nombre completo */
.am-carrier-code {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.3;
}
.am-carrier-label {
    font-size: 10px !important;
    color: #999 !important;
    margin-top: 1px;
}

/* Ruta en header de detalle con ciudad */
.am-ruta-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.am-detalle-ciudad {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.55) !important;
    text-align: center;
    max-width: 180px;
    line-height: 1.2;
}

/* Número de vuelo pequeño junto al nombre de aerolínea */
.am-seg-flight-num {
    font-size: 11px;
    color: #999 !important;
    font-weight: 500;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: 4px;
}

/* Ciudad debajo del IATA grande en segmentos */
.am-seg-city {
    font-size: 10px;
    color: #aaa !important;
    line-height: 1.2;
    max-width: 90px;
    text-align: center;
    margin-top: 1px;
}
.am-seg-point-right .am-seg-city { text-align: right; }
.am-seg-point:not(.am-seg-point-right) .am-seg-city { text-align: left; }

/* ═══════════════════════════════════════
   EQUIPAJE — VISTA CONSOLIDADA
═══════════════════════════════════════ */
.am-bag-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.am-bag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f7f8fc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.am-bag-row-cabin {
    background: #fff;
    border: 1px solid #eef0f5;
}

.am-bag-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e !important;
    min-width: 160px;
}

.am-bag-ico { font-size: 18px; flex-shrink: 0; }

.am-bag-status {
    font-size: 13px;
    font-weight: 500;
    color: #555 !important;
    text-align: right;
}

.am-bag-ok  { color: #1a6a1a !important; font-weight: 600; }
.am-bag-no  { color: #7a1a1a !important; font-weight: 600; }
.am-bag-unknown { color: #888 !important; font-style: italic; }

.am-bag-add {
    font-weight: 400;
    color: #888 !important;
    font-size: 12px;
}

.am-fare-basis {
    font-size: 11px;
    color: #aaa !important;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 6px;
    font-weight: 400;
}

.am-bag-note {
    font-size: 12px;
    color: #7a4a10 !important;
    background: #fdf8f0;
    border: 1px solid #e8d8b8;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
}
