/* =========================================================
   AGS ADMIN - ALTA CLIENTE ONEPAGE (CSS)
   Archivo externo para /admin/alta_cliente_onepage.html
   Mantiene el estilo original + mejoras
========================================================= */

/* ------------------ VARIABLES Y BASE ------------------ */
:root{
  --bg: radial-gradient(circle at top, #0d101f 0%, #090b14 55%, #04050a 100%);
  --surface: rgba(23, 26, 43, .85);
  --card: rgba(12,15,25,.85);
  --line: rgba(255,140,0,.08);
  --text: #f6f7fb;
  --muted: rgba(246,247,251,.55);
  --accent: #ff8a2b;
  --accent-soft: rgba(255,138,43,.14);
  --ok: #2ed47a;
  --warn: #f5a524;
  --danger: #ef476f;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  background:var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  min-height:100vh;
}

body.modo-100{
  --accent: #7dff9b;
  --accent-soft: rgba(125,255,155,.14);
}

a{
  color:inherit;
  text-decoration:none;
}

::-webkit-scrollbar{
  width:7px;
  height:7px;
}
::-webkit-scrollbar-track{
  background:rgba(0,0,0,.15);
}
::-webkit-scrollbar-thumb{
  background:rgba(109,93,252,.4);
  border-radius:999px;
}

/* ------------------ LAYOUT GENERAL ------------------ */

.max{
  max-width:1220px;
  margin:0 auto;
  padding:13px 16px;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
}

.between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

header.appbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(9, 10, 19, 0.55);
  border-bottom:1px solid rgba(255,255,255,.03);
  box-shadow:0 14px 30px rgba(0,0,0,.32);
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,0.95fr);
  gap:16px;
  align-items:flex-start;
  margin-top:9px;
  min-height:calc(100vh - 70px);
}

@media (max-width:1080px){
  .layout{
    grid-template-columns:1fr;
  }
}

/* sidebar derecha */
aside.right{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ------------------ TARJETAS / CONTENEDORES ------------------ */

.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.03);
  border-radius:var(--radius-lg);
  padding:12px 12px 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

/* ------------------ CHIPS / BADGES ------------------ */

.chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.05);
  padding:6px 11px;
  border-radius:999px;
  background:rgba(15, 17, 30, .35);
  font-size:12px;
  line-height:1;
}

.chip input[type="checkbox"],
.chip input[type="radio"]{
  margin-right:4px;
}

.chip--accent{
  border-color:rgba(109,93,252,.5);
  background:radial-gradient(circle, rgba(109,93,252,.08) 0%, rgba(1,6,15,0) 100%);
  color:#fff;
  font-weight:500;
}

.badge{
  display:inline-block;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(12,15,25,.45);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}

.badge--accent{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
}

/* ------------------ TABS ------------------ */

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.tab{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(12,14,24,.4);
  color:var(--text);
  padding:6px 11px;
  border-radius:10px;
  cursor:pointer;
  transition:.14s ease;
  font-size:12.5px;
  display:flex;
  align-items:center;
  gap:5px;
}

.tab:hover{
  border-color:rgba(255,255,255,.15);
}

.tab.active{
  border-color:var(--accent);
  background:rgba(255,138,43,.06);
  box-shadow:0 0 0 2px rgba(255,138,43,.25) inset;
}

/* ------------------ FORM CONTROLS ------------------ */

label{
  font-size:11.5px;
  color:var(--muted);
  display:block;
  margin:5px 0 3px;
  letter-spacing:-.01em;
}

input,
select,
textarea{
  width:100%;
  background:rgba(7,9,16,.35);
  border:1px solid rgba(255,138,43,.25);
  border-radius:10px;
  color:var(--text);
  padding:9.5px 11px;
  outline:none;
  transition:.12s ease;
  backdrop-filter: blur(6px);
  font-family:inherit;
  font-size:13px;
}

input:focus,
select:focus,
textarea:focus{
  border:1px solid var(--accent);
  background:rgba(7,8,15,.55);
  box-shadow:0 0 0 3px rgba(255,138,43,.09);
}

input[readonly],
textarea[readonly]{
  opacity:.8;
  cursor:default;
}

/* mono */
.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

/* grids */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

@media (max-width:920px){
  .grid-3,
  .grid-4{
    grid-template-columns:1fr;
  }
}

/* ------------------ BOTONES ------------------ */

.btn{
  border:1px solid rgba(255,138,43,.12);
  background:rgba(12,15,25,.3);
  color:var(--text);
  padding:8px 14px;
  border-radius:12px;
  backdrop-filter: blur(12px);
  transition:.15s ease-out;
  cursor:pointer;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
}

.btn:hover{
  background:rgba(12,15,25,.6);
}

.btn:disabled{
  opacity:.5;
  cursor:default;
}

.btn--primary{
  border-color:var(--accent);
  background:linear-gradient(140deg, rgba(255,138,43,1) 0%, rgba(255,169,95,1) 100%);
  color:#10121a;
  box-shadow:0 14px 30px rgba(255,138,43,.28);
}

.btn--ok{
  border-color:rgba(60,193,121,.3);
  background:linear-gradient(180deg,#1e744c,#184b6a);
  color:#fff;
}

.btn--danger{
  border-color:var(--accent);
  background:linear-gradient(140deg,#ff8a2b 0%,#ffb567 100%);
  color:#0f1220;
  box-shadow:0 12px 30px rgba(255,138,43,.25);
}

.btn--warn{
  border-color:rgba(245,165,36,.35);
  background:linear-gradient(140deg,#f5a524 0%,#ffd27a 100%);
  color:#0f1220;
  box-shadow:0 12px 30px rgba(245,165,36,.25);
}

.btn--link{
  border:none;
  background:none;
  padding:0;
  color:var(--accent);
  box-shadow:none;
}

.btn.btn--xs{
  padding:4px 8px;
  font-size:.82rem;
  border-radius:10px;
}

.btn.btn--sm{
  padding:6px 10px;
  font-size:.86rem;
}

/* acciones flotantes abajo */
.actions-bottom{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  position:sticky;
  bottom:7px;
  background:linear-gradient(180deg, rgba(9,10,19,0) 0%, rgba(9,10,19,1) 55%);
  padding:12px 0 2px;
  z-index:40;
}

@media (max-width:720px){
  .actions-bottom{
    flex-wrap:wrap;
    justify-content:flex-start;
  }
}

/* ------------------ LISTAS / TEXTOS ------------------ */

.muted{
  color:var(--muted);
}

.hidden{
  display:none!important;
}

.list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* ------------------ KPIs ------------------ */

.kpis{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.kpi{
  border:1px dashed rgba(255,255,255,.03);
  border-radius:12px;
  padding:9px 10px;
  text-align:center;
  background:radial-gradient(circle at 10% 10%, rgba(255,255,255,.015) 0%, rgba(0,0,0,0) 50%);
}

/* ------------------ TOAST ------------------ */

.toast{
  position:fixed;
  right:14px;
  bottom:14px;
  background:#1b1e34;
  border:1px solid rgba(255,255,255,.04);
  padding:10px 12px;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
  z-index:9999;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  font-size:13px;
}

.toast.show{
  opacity:1;
  pointer-events:auto;
}

/* ------------------ DROPZONES (OCR / IMPORT / ARCHIVOS) ------------------ */

.drop{
  border:1px dashed rgba(255,255,255,.05);
  border-radius:14px;
  padding:18px;
  text-align:center;
  background:radial-gradient(circle, rgba(13, 13, 21, 0.5), rgba(12, 12, 21,.1));
  transition:.14s ease;
}

.drop.is-drag{
  border-color:rgba(109,93,252,.6);
  box-shadow:0 0 0 2px rgba(109,93,252,.14);
}

/* OCR específico */
#polizaDrop .muted{
  font-size:12px;
}

/* Import CSV */
#impPreview{
  font-size:12px;
}

/* ------------------ TABLAS ------------------ */

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.table th,
.table td{
  border-bottom:1px solid rgba(255,255,255,.02);
  padding:8px 5px;
  text-align:left;
}

.table th{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

.table tr:last-child td{
  border-bottom:none;
}

.table input,
.table select{
  padding:5px 7px;
  font-size:12px;
}

/* ------------------ BUSCADOR RÁPIDO ARRIBA ------------------ */

.top-actions{
  display:flex;
  gap:14px;
  align-items:center;
}

.quick-search-wrap{
  position:relative;
  min-width:240px;
  max-width:300px;
}

.quick-search-input{
  width:100%!important;
  background:radial-gradient(circle at 0% 0%, #1d2140 0%, #0f1220 45%, #0f1220 100%) !important;
  border:1px solid rgba(255,138,43,.5) !important;
  border-radius:999px !important;
  padding:7px 34px 7px 32px !important;
  color:var(--text) !important;
  font-size:13px !important;
  outline:none !important;
  box-shadow:0 0 0 rgba(0,0,0,0) !important;
  transition:.15s ease !important;
}

.quick-search-input:focus{
  border:1px solid var(--accent) !important;
  box-shadow:0 4px 22px rgba(255,138,43,.35);
}

.quick-search-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  opacity:.6;
  pointer-events:none;
}

.quick-search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border:none;
  background:rgba(0,0,0,.35);
  border-radius:999px;
  color:#fff;
  font-size:13px;
  line-height:20px;
  text-align:center;
  cursor:pointer;
  display:none;
}

.quick-results{
  position:absolute;
  top:110%;
  right:0;
  left:0;
  background:rgba(15,17,30,.96);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,138,43,.25);
  border-radius:12px;
  z-index:60;
  max-height:260px;
  overflow-y:auto;
  display:none;
  box-shadow:0 24px 40px rgba(0,0,0,.25);
}

.quick-results.show{
  display:block;
}

.quick-item{
  display:flex;
  gap:10px;
  padding:8px 10px;
  cursor:pointer;
  transition:.15s ease;
  align-items:center;
}

.quick-item:hover{
  background:rgba(255,138,43,.14);
}

.quick-avatar{
  width:30px;
  height:30px;
  border-radius:10px;
  background:linear-gradient(150deg, #6d5dfc, #d662ff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:600;
}

.quick-main{
  flex:1;
  min-width:0;
}

.quick-name{
  font-weight:500;
}

.quick-sub{
  font-size:11px;
  opacity:.7;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.quick-pill{
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.05);
  border-radius:999px;
  padding:2px 8px;
  font-size:10px;
  text-transform:uppercase;
}

/* ------------------ MODALES GENERALES ------------------ */

.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:#0006;
  backdrop-filter:blur(2px);
  z-index:80;
}

.modal.show{
  display:grid;
}

.modal .panel{
  width:min(960px,96vw);
  max-height:92vh;
  overflow:auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px 14px;
  box-shadow:0 24px 50px rgba(0,0,0,.5);
}

/* modal genérico para sala del cliente */
#salaClienteModal .panel{
  width:min(1100px,96vw);
}

#salaClienteModal .sala-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,0.9fr);
  gap:10px;
}

@media (max-width:980px){
  #salaClienteModal .sala-layout{
    grid-template-columns:1fr;
  }
}

#salaClienteModal .sala-chat-box{
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,20,.85);
  min-height:260px;
  display:flex;
  flex-direction:column;
}

#salaClienteModal .sala-chat-messages{
  flex:1;
  overflow:auto;
  padding:8px 10px;
  font-size:13px;
}

#salaClienteModal .sala-chat-input{
  border-top:1px solid rgba(255,255,255,.04);
  padding:8px;
  display:flex;
  gap:8px;
}

#salaClienteModal textarea{
  resize:vertical;
  min-height:60px;
}

/* ------------------ MODAL DIRECCIÓN “RELIQUIA” ------------------ */

#dirModal .panel{
  width:min(960px,96vw);
}

#dirModal h3{
  margin-top:0;
  margin-bottom:4px;
}

#dirModal small{
  font-size:11px;
}

#dirModal .dir-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);
  gap:10px;
}

@media (max-width:880px){
  #dirModal .dir-grid{
    grid-template-columns:1fr;
  }
}

/* contenedor del mapa */
#map{
  width:100%;
  height:320px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.05);
}

/* lista de direcciones en ficha cliente */
#listaDirecciones{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

#listaDirecciones .card{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(9,11,19,.4);
}

/* versión addr-item usada por el modal JS v2 */
.addr-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding:8px 10px;
  border-radius:var(--radius-lg);
  background:rgba(13,15,24,.8);
  border:1px solid rgba(255,255,255,.04);
}

.addr-item .muted.mono{
  font-size:11px;
}

/* ------------------ HIJOS / DEPENDIENTES ------------------ */

#listaHijos .card{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(9,11,19,.4);
}

/* ------------------ COBERTURAS (PÓLIZA) ------------------ */

.coberturas-list,
#coberturasList{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Soportar varios nombres por si cambiamos JS */
.cobertura-row,
.cov-row{
  display:grid;
  grid-template-columns:2.2fr repeat(4,minmax(0,1fr)) auto;
  gap:6px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(10,12,20,.9);
  border:1px solid rgba(255,255,255,.04);
  align-items:flex-end;
}

@media (max-width:980px){
  .cobertura-row,
  .cov-row{
    grid-template-columns:1fr 1fr;
  }
}

.cobertura-row label,
.cov-row label{
  margin-bottom:2px;
}

.cobertura-row input,
.cobertura-row select,
.cov-row input,
.cov-row select{
  padding:6px 8px;
  font-size:12px;
}

.cobertura-row .btn,
.cov-row .btn{
  padding:4px 8px;
}

/* ------------------ CENTRO DIGITAL (ARCHIVOS PÓLIZA / CLIENTE) ------------------ */

.digital-center-list,
#digitalCenterList{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
}

.digital-file-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px;
  border-radius:10px;
  background:rgba(15,17,30,.8);
  border:1px solid rgba(255,255,255,.05);
}

.digital-file-pill-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.digital-file-pill-main .muted{
  font-size:11px;
}

/* ------------------ TIMELINE / HISTORIAL ------------------ */

#timeline{
  list-style:none;
  padding-left:0;
  margin:0;
}

#timeline li{
  position:relative;
  padding-left:16px;
  margin-bottom:6px;
  font-size:13px;
}

#timeline li::before{
  content:"";
  position:absolute;
  left:4px;
  top:6px;
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
}

/* ------------------ ZONAS DE AUTOS / PERSONAS ASEGURABLES ------------------ */

.autos-list,
#autosClienteList{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
  font-size:12px;
}

.auto-item{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,22,.85);
  padding:7px 9px;
  display:flex;
  justify-content:space-between;
  gap:8px;
}

.auto-item-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.auto-item-main .muted{
  font-size:11px;
}

.personas-asegurables-list,
#personasAsegurablesList{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
  font-size:12px;
}

.persona-item{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,22,.85);
  padding:7px 9px;
  display:flex;
  justify-content:space-between;
  gap:8px;
}

/* ------------------ RESPONSIVE AJUSTES EXTRA ------------------ */

@media (max-width:640px){
  header.appbar .between{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .top-actions{
    width:100%;
    justify-content:space-between;
  }
  .quick-search-wrap{
    flex:1;
  }
}

#clienteQuickResults {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#111;
  border-radius:8px;
  border:1px solid #333;
  z-index:5000;
  max-height:220px;
  overflow-y:auto;
  display:none;
}
#clienteQuickResults.show {
  display:block;
}
#clienteQuickResults .item {
  padding:8px 12px;
  border-bottom:1px solid #222;
  cursor:pointer;
}
#clienteQuickResults .item:hover {
  background:#222;
}
#clienteQuickResults .item.empty,
#clienteQuickResults .item.error {
  color:#999;
  text-align:center;
}
/* ========== SALA DE CLIENTE ========== */
.sala-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .sala-grid {
    grid-template-columns: 1fr;
  }
}

.sala-col-left, .sala-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sala-section {
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  min-height: 300px;
}

.sala-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sala-section-header strong {
  font-size: 14px;
  color: var(--text);
}

.sala-iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.sala-jitsi-container {
  width: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.sala-jitsi-container.hidden {
  display: none;
}
/* ================================================
   ESTILOS ADICIONALES V3.2 - MODAL TIPO AUTO & TOGGLES
   ================================================ */

/* ===== GRID DE TIPOS DE VEHÍCULOS ===== */
.tipo-vehiculos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .tipo-vehiculos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ===== CARDS DE TIPO DE VEHÍCULO ===== */
.tipo-vehiculo-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tipo-vehiculo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.tipo-vehiculo-card:hover::before {
  opacity: 1;
}

.tipo-vehiculo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
  border-color: #ffffff;
}

.tipo-vehiculo-card:active {
  transform: translateY(-5px) scale(0.98);
}

.tipo-icono {
  font-size: 56px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s;
}

.tipo-vehiculo-card:hover .tipo-icono {
  transform: scale(1.1) rotate(5deg);
}

.tipo-nombre {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* ===== BANNER TIPO SELECCIONADO ===== */
.tipo-seleccionado-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tipo-seleccionado-banner strong {
  font-weight: 600;
}

.tipo-seleccionado-banner button {
  background: white;
  color: #667eea;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tipo-seleccionado-banner button:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* ===== BOTONES TOGGLE (reemplazo de checkboxes) ===== */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-toggle:active {
  transform: translateY(0);
}

/* Estado ACTIVO */
.btn-toggle[data-active="true"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-toggle[data-active="true"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.toggle-icon {
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.3s;
}

.btn-toggle:hover .toggle-icon {
  transform: scale(1.15);
}

/* Iconos según estado */
.btn-toggle[data-active="false"] .toggle-icon::before {
  content: "⭕";
}

.btn-toggle[data-active="true"] .toggle-icon::before {
  content: "✅";
}

.toggle-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== CARD DE COMISIÓN ===== */
.card-comision {
  animation: fadeIn 0.3s ease-out;
}

.card-comision label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.card-comision .muted {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MEJORAS A TABLA DE RECIBOS ===== */
.table th:nth-child(6) {
  text-align: right;
}

.table td:nth-child(6) {
  text-align: right;
  font-weight: 600;
  color: #10b981;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tipo-seleccionado-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .card-comision .grid-2,
  .card-comision .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-toggle {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Fin de estilos v3.2 */

/* ================================================
   MEJORAS V3.3 - MODAL DE PAGO Y KPIS MEJORADOS
   ================================================ */

/* ===== MODAL DE PAGO ===== */
.metodo-pago-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.metodo-pago-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.metodo-pago-card:hover::before {
  opacity: 1;
}

.metodo-pago-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
  border-color: #ffffff;
}

.metodo-pago-card.selected {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.metodo-pago-card:active {
  transform: translateY(-5px) scale(1.02);
}

.metodo-icono {
  font-size: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s;
}

.metodo-pago-card:hover .metodo-icono {
  transform: scale(1.15) rotate(-5deg);
}

.metodo-nombre {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* ===== KPIS MEJORADOS ===== */
.kpis-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.kpi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.kpi-value {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
  display: block;
}

.kpi-card.kpi-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kpi-card.kpi-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.kpi-card.kpi-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ===== CORRECCION DE TOGGLES ===== */
.btn-toggle[data-active="true"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-toggle[data-active="true"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.btn-toggle[data-active="false"] {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

.btn-toggle[data-active="false"]:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* ===== ANIMACIONES ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.kpi-card:hover .kpi-value {
  animation: pulse 1s infinite;
}

/* ========================================

/* ========================================
   ESTILOS PARA MODALES MEJORADOS
   ======================================== */

/* Tarjetas de tipo de auto */
.tipo-auto-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tipo-auto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tipo-auto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.tipo-auto-card:hover::before {
  opacity: 1;
}

.tipo-auto-card.selected {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.tipo-auto-icono {
  font-size: 48px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.tipo-auto-card:hover .tipo-auto-icono {
  transform: scale(1.15) rotate(5deg);
}

.tipo-auto-card.selected .tipo-auto-icono {
  transform: scale(1.2);
}

.tipo-auto-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

/* Modal content large */
.modal-content--large {
  max-width: 900px;
}

/* Status cards del recibo */
.status-card {
  cursor: pointer;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,255,255,0.2);
}

.status-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.status-icono {
  font-size: 32px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.status-card:hover .status-icono {
  transform: scale(1.15);
}

.status-nombre {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.status-card.selected .status-nombre {
  color: #667eea;
  font-weight: 700;
}

/* Método de pago cards */
.metodo-pago-card-edit {
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.metodo-pago-card-edit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,255,255,0.2);
}

.metodo-pago-card-edit:hover .metodo-icono {
  transform: scale(1.15);
}

.metodo-pago-card-edit.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.metodo-pago-card-edit.selected .metodo-nombre {
  color: #667eea;
  font-weight: 700;
}

.metodo-pago-card-edit.selected .metodo-icono {
  transform: scale(1.2);
}

.metodo-icono {
  font-size: 32px;
  margin-bottom: 6px;
  transition: transform 0.3s;
}

.metodo-nombre {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* Badges para tipos y motor */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--soft {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge--info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .tipo-auto-card {
    padding: 16px 12px;
  }
  
  .tipo-auto-icono {
    font-size: 36px;
  }
  
  .modal-content--large {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .tipo-auto-icono {
    font-size: 32px;
  }
  
  .tipo-auto-label {
    font-size: 12px;
  }
}

/* ============================================
   ESTILOS PARA MODALES MEJORADOS
   Agregar al final de cliente_v2.css
   ============================================ */

/* Tarjetas de tipo de vehículo */
.tipo-vehiculo-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tipo-vehiculo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tipo-vehiculo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.tipo-vehiculo-card:hover::before {
  opacity: 1;
}

.tipo-vehiculo-card.selected {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.tipo-vehiculo-icono {
  font-size: 48px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.tipo-vehiculo-card:hover .tipo-vehiculo-icono {
  transform: scale(1.15) rotate(5deg);
}

.tipo-vehiculo-card.selected .tipo-vehiculo-icono {
  transform: scale(1.2);
}

.tipo-vehiculo-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

/* Modal content large */
.modal-content--large {
  max-width: 900px;
}

/* Status cards del recibo */
.status-card-recibo {
  cursor: pointer;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.status-card-recibo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,255,255,0.2);
}

.status-card-recibo.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.status-icono-recibo {
  font-size: 32px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.status-card-recibo:hover .status-icono-recibo {
  transform: scale(1.15);
}

.status-nombre-recibo {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.status-card-recibo.selected .status-nombre-recibo {
  color: #667eea;
  font-weight: 700;
}

/* Método de pago cards */
.metodo-pago-card-recibo {
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.metodo-pago-card-recibo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,255,255,0.2);
}

.metodo-pago-card-recibo:hover .metodo-icono-recibo {
  transform: scale(1.15);
}

.metodo-pago-card-recibo.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.metodo-pago-card-recibo.selected .metodo-nombre-recibo {
  color: #667eea;
  font-weight: 700;
}

.metodo-pago-card-recibo.selected .metodo-icono-recibo {
  transform: scale(1.2);
}

.metodo-icono-recibo {
  font-size: 32px;
  margin-bottom: 6px;
  transition: transform 0.3s;
}

.metodo-nombre-recibo {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* Badges para tipos y motor */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--soft {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge--info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .tipo-vehiculo-card {
    padding: 16px 12px;
  }
  
  .tipo-vehiculo-icono {
    font-size: 36px;
  }
  
  .modal-content--large {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .tipo-vehiculo-icono {
    font-size: 32px;
  }
  
  .tipo-vehiculo-label {
    font-size: 12px;
  }
}

/* FIN DE ESTILOS PARA MODALES MEJORADOS */