/* ===================== VCPM Frontend CSS ===================== */

.vcpm-buscador-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Hero */
.vcpm-search-hero { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); padding: 40px 20px; }
.vcpm-search-inner { max-width: 960px; margin: 0 auto; }
.vcpm-search-title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 6px; text-align: center; }
.vcpm-search-subtitle { color: rgba(255,255,255,.8); text-align: center; margin: 0 0 24px; font-size: 15px; }

/* Search form */
.vcpm-search-form-wrap { background: rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.vcpm-search-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.vcpm-search-field { flex: 1; min-width: 160px; }
.vcpm-field-pax { max-width: 140px; }
.vcpm-search-field label { display: block; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.vcpm-search-field input, .vcpm-search-field select {
    width: 100%; padding: 10px 12px; border: none; border-radius: 8px;
    font-size: 15px; background: #fff; color: #1e293b; box-sizing: border-box;
}
.vcpm-swap-btn { cursor: pointer; background: rgba(255,255,255,.2); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: background .2s; }
.vcpm-swap-btn:hover { background: rgba(255,255,255,.35); }
.vcpm-btn-buscar { background: #fff; color: #6366f1; border: none; padding: 11px 22px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s; }
.vcpm-btn-buscar:hover { background: #eef2ff; }

/* Autocomplete */
.vcpm-ac-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 2px solid #6366f1; border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 9999; box-shadow: 0 6px 20px rgba(0,0,0,.15); display: none; }
.vcpm-ac-opt { padding: 9px 13px; cursor: pointer; font-size: 14px; color: #1e293b; border-bottom: 1px solid #f1f5f9; }
.vcpm-ac-opt:last-child { border-bottom: none; }
.vcpm-ac-opt:hover, .vcpm-ac-opt.active { background: #eef2ff; }
.vcpm-ac-opt small { color: #94a3b8; font-size: 12px; display: block; }

/* Resultados */
.vcpm-resultados { max-width: 960px; margin: 0 auto; padding: 20px 16px; }
.vcpm-results-header { margin-bottom: 18px; }
.vcpm-results-header h3 { font-size: 18px; color: #1e293b; margin: 0 0 4px; }
.vcpm-results-header p { color: #64748b; font-size: 14px; margin: 0; }
.vcpm-results-grid { display: flex; flex-direction: column; gap: 14px; }

/* Result card */
.vcpm-result-card { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.vcpm-result-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.vcpm-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; gap: 10px; }
.vcpm-card-empresa { display: flex; align-items: center; gap: 10px; }
.vcpm-emp-logo img, .vcpm-emp-icono { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.vcpm-emp-nombre { font-weight: 700; font-size: 15px; color: #1e293b; }
.vcpm-duracion { font-size: 12px; color: #64748b; margin-top: 2px; }
.vcpm-card-ruta { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vcpm-card-ruta span { color: #1e293b; font-weight: 600; }
.vcpm-flecha { color: #6366f1; font-size: 18px; font-weight: 700; }

/* Horarios */
.vcpm-horarios-select { padding: 10px 18px; border-bottom: 1px solid #f1f5f9; }
.vcpm-horarios-select label { font-size: 12px; color: #64748b; font-weight: 600; display: block; margin-bottom: 7px; }
.vcpm-horarios-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vcpm-horario-opt input { display: none; }
.vcpm-horario-label { display: inline-flex; flex-direction: column; align-items: center; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 7px; padding: 6px 12px; cursor: pointer; transition: all .15s; font-size: 13px; }
.vcpm-horario-opt input:checked + .vcpm-horario-label { background: #eef2ff; border-color: #6366f1; color: #6366f1; }
.vcpm-horario-label small { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* Card footer */
.vcpm-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
.vcpm-precios { }
.vcpm-precio-unit { font-size: 13px; color: #64748b; margin-bottom: 2px; }
.vcpm-precio-unit strong { color: #334155; }
.vcpm-precio-grande { font-size: 22px; font-weight: 700; color: #6366f1; display: block; }
.vcpm-sc-tag { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.vcpm-card-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vcpm-btn-reservar { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: opacity .2s; display: inline-block; }
.vcpm-btn-reservar:hover { opacity: .9; color: #fff; }
.vcpm-btn-empresa { color: #6366f1; font-size: 13px; text-decoration: none; font-weight: 600; }
.vcpm-btn-empresa:hover { text-decoration: underline; }

/* ===================== CHECKOUT ===================== */
.vcpm-checkout-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 980px; margin: 0 auto; padding: 20px 16px; }
.vcpm-breadcrumb { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
.vcpm-breadcrumb a { color: #6366f1; text-decoration: none; }
.vcpm-breadcrumb span { margin: 0 6px; }
.vcpm-checkout-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }

/* Summary */
.vcpm-summary-box { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 20px; position: sticky; top: 20px; }
.vcpm-summary-box h3 { margin: 0 0 14px; font-size: 16px; color: #1e293b; }
.vcpm-summary-ruta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vcpm-summary-ciudad { font-size: 16px; font-weight: 700; color: #1e293b; }
.vcpm-summary-flecha { color: #6366f1; font-size: 18px; font-weight: 700; }
.vcpm-summary-details { margin-bottom: 14px; }
.vcpm-summary-details div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.vcpm-summary-details div span { color: #64748b; }
.vcpm-summary-precios { border-top: 2px solid #e2e8f0; padding-top: 10px; }
.vcpm-summary-precio-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: #334155; }
.vcpm-total-row { font-size: 16px; font-weight: 700; color: #1e293b; border-top: 1px solid #e2e8f0; margin-top: 5px; padding-top: 8px; }

/* Form */
.vcpm-form { }
.vcpm-form-section { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.vcpm-form-section h3 { margin: 0 0 14px; font-size: 15px; color: #1e293b; }
.vcpm-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vcpm-form-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.vcpm-form-field input, .vcpm-form-field select {
    width: 100%; padding: 9px 11px; border: 1.5px solid #cbd5e1; border-radius: 7px;
    font-size: 14px; box-sizing: border-box; transition: border-color .15s;
}
.vcpm-form-field input:focus, .vcpm-form-field select:focus { border-color: #6366f1; outline: none; }

/* Metodos pago */
.vcpm-metodos-pago { display: flex; flex-wrap: wrap; gap: 10px; }
.vcpm-metodo-opt input { display: none; }
.vcpm-metodo-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: all .15s; min-width: 100px; text-align: center; }
.vcpm-metodo-opt input:checked + .vcpm-metodo-card { border-color: #6366f1; background: #eef2ff; }
.vcpm-metodo-icono { font-size: 24px; }
.vcpm-metodo-nombre { font-weight: 700; font-size: 13px; color: #1e293b; }
.vcpm-metodo-desc { font-size: 11px; color: #64748b; }
.vcpm-card-trans { border-color: #fbbf24; }
.vcpm-metodo-opt input:checked + .vcpm-card-trans { border-color: #f59e0b; background: #fffbeb; }
.vcpm-badge-desc { background: #22c55e; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; }

/* Transferencia panel */
.vcpm-trans-box { background: #fffbeb; border: 1.5px solid #fbbf24; border-radius: 10px; padding: 16px 18px; }
.vcpm-trans-titulo { font-weight: 700; color: #92400e; margin: 0 0 10px; font-size: 14px; }
.vcpm-trans-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #fde68a; font-size: 14px; gap: 10px; }
.vcpm-trans-row:last-of-type { border-bottom: none; }
.vcpm-trans-row span { color: #78350f; }
.vcpm-trans-row strong { color: #1e293b; display: flex; align-items: center; gap: 7px; word-break: break-all; text-align: right; }
.vcpm-copy-btn { background: #f59e0b; color: #fff; border: none; padding: 3px 9px; border-radius: 5px; font-size: 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.vcpm-copy-btn:hover { background: #d97706; }
.vcpm-trans-nota { margin-top: 10px; background: #fff; border: 1px solid #fde68a; border-radius: 7px; padding: 9px 11px; font-size: 13px; color: #78350f; }

/* Notices */
.vcpm-notice { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.vcpm-notice-error { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.vcpm-notice-warn  { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

/* Buttons */
.vcpm-btn-pagar { display: block; width: 100%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; padding: 14px 20px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 16px; transition: opacity .2s; }
.vcpm-btn-pagar:hover { opacity: .92; color: #fff; text-decoration: none; }
.vcpm-nota-seguridad { text-align: center; font-size: 12px; color: #94a3b8; margin: 8px 0 0; }

/* Loading & success */
.vcpm-loading, .vcpm-success-box { text-align: center; padding: 40px 20px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; }
.vcpm-spinner { width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: #6366f1; border-radius: 50%; animation: vcpm-spin 1s linear infinite; margin: 0 auto 14px; }
@keyframes vcpm-spin { to { transform: rotate(360deg); } }
.vcpm-success-icon { font-size: 50px; color: #22c55e; margin-bottom: 10px; }
.vcpm-success-box h3 { font-size: 20px; color: #1e293b; margin: 0 0 8px; }

/* Confirmacion */
.vcpm-confirmacion-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 560px; margin: 30px auto; padding: 0 16px; }
.vcpm-confirmacion-box { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.vcpm-confirm-header { padding: 28px 20px; text-align: center; color: #fff; }
.vcpm-confirm-icon { font-size: 44px; margin-bottom: 8px; }
.vcpm-confirm-header h2 { margin: 0 0 4px; font-size: 22px; }
.vcpm-confirm-header p { margin: 0; opacity: .85; font-size: 14px; }
.vcpm-confirm-numero { text-align: center; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.vcpm-confirm-numero span { font-size: 12px; color: #94a3b8; display: block; text-transform: uppercase; letter-spacing: .5px; }
.vcpm-confirm-numero strong { font-size: 22px; color: #6366f1; font-family: monospace; }
.vcpm-confirm-estado { text-align: center; padding: 8px 20px; border-bottom: 1px solid #f1f5f9; font-size: 14px; border-left: 3px solid; }
.vcpm-confirm-details { padding: 16px 20px; }
.vcpm-confirm-details div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f8fafc; font-size: 14px; }
.vcpm-confirm-details div:last-child { border-bottom: none; }
.vcpm-confirm-details span { color: #64748b; }
.vcpm-confirm-details strong { color: #1e293b; text-align: right; }

/* Responsive */
@media (max-width: 700px) {
    .vcpm-checkout-grid { grid-template-columns: 1fr; }
    .vcpm-form-grid-2 { grid-template-columns: 1fr; }
    .vcpm-search-row { flex-direction: column; }
    .vcpm-field-pax { max-width: 100%; }
    .vcpm-card-header { flex-direction: column; align-items: flex-start; }
    .vcpm-card-footer { flex-direction: column; align-items: flex-start; }
}
