:root {
    --azul: #171a21;
    --azul-medio: #2a2f3a;
    --azul-suave: #f1f2f5;
    --verde: #0e9f4f;
    --verde-oscuro: #0b8341;
    --verde-suave: #e7f6ee;
    --amarillo: #ffc61a;
    --amarillo-oscuro: #e6ac00;
    --amarillo-suave: #fff6d6;
    --texto: #1d2130;
    --alto-pestanas: 64px;
    --abajo-seguro: env(safe-area-inset-bottom, 0px);
    --bs-body-color: var(--texto);
    --bs-link-color-rgb: 14, 159, 79;
    --bs-link-hover-color-rgb: 11, 131, 65;
}

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--texto);
}
h1, h2, h3, .titulo-barra, .titulo-seccion, .precio-grande, .btn, .navbar { font-family: "Poppins", system-ui, sans-serif; }
.text-verde { color: var(--verde) !important; }
.text-azul { color: var(--azul) !important; }
.text-amarillo { color: var(--amarillo) !important; }
.bg-amarillo { background: var(--amarillo) !important; }
.min-w-0 { min-width: 0; }

.btn { border-radius: .75rem; font-weight: 600; }
.btn:active { transform: scale(.97); }
.btn-verde { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-verde:hover, .btn-verde:focus, .btn-verde:active { background: var(--verde-oscuro) !important; border-color: var(--verde-oscuro) !important; color: #fff !important; }
.btn-azul { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn-azul:hover, .btn-azul:focus, .btn-azul:active { background: var(--azul-medio) !important; border-color: var(--azul-medio) !important; color: #fff !important; }
.btn-amarillo { background: var(--amarillo); border-color: var(--amarillo); color: var(--azul); }
.btn-amarillo:hover, .btn-amarillo:focus, .btn-amarillo:active { background: var(--amarillo-oscuro) !important; border-color: var(--amarillo-oscuro) !important; color: var(--azul) !important; }
.btn-borde-azul { border: 1.5px solid var(--azul); color: var(--azul); background: #fff; white-space: nowrap; }
.btn-borde-azul:hover { background: var(--azul); color: #fff; }

.card { border: 0; border-radius: 1rem; box-shadow: 0 2px 10px rgba(23,26,33,.07); }
.card-header { border-radius: 1rem 1rem 0 0 !important; }
.form-control, .form-select { border-radius: .75rem; }
.form-control:focus, .form-select:focus { border-color: #ffd65c; box-shadow: 0 0 0 .2rem rgba(255,198,26,.25); }
.form-check-input:checked { background-color: var(--verde); border-color: var(--verde); }
.page-item.active .page-link { background: var(--azul); border-color: var(--azul); }
.page-link { color: var(--azul); }

/* Barra superior */
.barra-app { padding-top: env(safe-area-inset-top, 0px); }
.barra-app .navbar-brand { margin-right: 2rem; }
.logo-barra { height: 44px; width: auto; display: block; }
@media (max-width: 575.98px) { .logo-barra { height: 36px; } }
.menu-principal .nav-link { color: var(--azul); font-weight: 500; font-size: .95rem; }
.menu-principal .nav-link:hover { color: var(--verde); }
.menu-cuenta { border-left: 1px solid #dfe3ea; padding-left: 1.25rem; }
.menu-cuenta .nav-link { color: var(--azul); }

/* Pestañas inferiores tipo app */
.pestanas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around;
    height: calc(var(--alto-pestanas) + var(--abajo-seguro));
    padding-bottom: var(--abajo-seguro);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #ececec;
}
.pestanas a {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: #8a8a8f; text-decoration: none; font-size: .7rem; font-weight: 600;
}
.pestanas a i { font-size: 1.35rem; line-height: 1; transition: transform .15s; }
.pestanas a.activa { color: var(--azul); }
.pestanas a.activa i { transform: translateY(-1px) scale(1.08); color: var(--amarillo-oscuro); }
.pestanas .burbuja {
    position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: #e5242b; color: #fff; font-size: .65rem; line-height: 18px; text-align: center;
}
@media (max-width: 767.98px) {
    body.con-pestanas { padding-bottom: calc(var(--alto-pestanas) + var(--abajo-seguro) + .5rem); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    body.panel.con-pestanas { padding-bottom: calc(var(--alto-pestanas) + var(--abajo-seguro) + .5rem); }
}

.instalar-app {
    position: fixed; left: .75rem; right: .75rem; z-index: 1045;
    bottom: calc(var(--alto-pestanas) + var(--abajo-seguro) + .75rem);
    display: flex; align-items: center; gap: .75rem; padding: .75rem;
    background: #fff; border-radius: 1rem; box-shadow: 0 .5rem 2rem rgba(0,0,0,.18);
    animation: subir .3s ease-out;
}
.instalar-app.d-none { display: none !important; }
.instalar-app img { width: 44px; height: 44px; border-radius: 10px; }
@media (min-width: 768px) { .instalar-app { left: auto; right: 1.5rem; bottom: 1.5rem; width: 380px; } }
@keyframes subir { from { transform: translateY(20px); opacity: 0; } }

.contenedor-aviso { bottom: calc(var(--alto-pestanas) + var(--abajo-seguro) + .5rem); z-index: 1090; }
@media (min-width: 768px) { .contenedor-aviso { bottom: 1rem; } }

/* Portada */
.hero-taxi {
    position: relative; overflow: hidden; color: #fff; padding: 3rem 0 2.5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,198,26,.35) 0%, transparent 40%),
        linear-gradient(150deg, #171a21 0%, #2a2f3a 100%);
}
.hero-taxi::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
    background: repeating-linear-gradient(90deg, #171a21 0 14px, var(--amarillo) 14px 28px);
    opacity: .9;
}
.hero-taxi h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.hero-taxi h1 span { color: var(--amarillo); }
.hero-taxi .lead { color: rgba(255,255,255,.85); max-width: 560px; }
.boton-pedir {
    display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.8rem; font-size: 1.15rem; border-radius: 999px;
    box-shadow: 0 .75rem 2rem rgba(255,198,26,.35);
}
.boton-pedir i { font-size: 1.4rem; }
.mapa-hero { height: 340px; border-radius: 1.25rem; z-index: 0; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.12); }
@media (max-width: 991.98px) { .mapa-hero { height: 240px; } }
.pastilla-cerca {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.12); color: #fff; font-size: .9rem; font-weight: 600;
}
.pastilla-cerca .punto-vivo { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: latido 1.6s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.paso-como { height: 100%; padding: 1.5rem; border-radius: 1rem; background: var(--azul-suave); }
.paso-como .numero {
    display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--amarillo); color: var(--azul); font-weight: 800; font-size: 1.2rem; font-family: "Poppins", sans-serif;
}
.paso-como h3 { font-size: 1.1rem; font-weight: 700; color: var(--azul); margin: .8rem 0 .3rem; }
.paso-como p { font-size: .92rem; color: #4a5060; margin: 0; }

.banda-taxistas {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.75rem; border-radius: 1.25rem;
    background: var(--amarillo); color: var(--azul);
}
.banda-taxistas h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .25rem; }
.banda-taxistas p { margin: 0; font-size: .97rem; }

.titulo-barra {
    font-size: 1.5rem; font-weight: 700; color: var(--azul);
    padding-left: .85rem; border-left: 5px solid var(--amarillo); line-height: 1.15;
}
@media (max-width: 575.98px) { .titulo-barra { font-size: 1.25rem; } }

.cifras {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.25rem; border-radius: 1rem;
    background: var(--azul); color: #fff; text-align: center;
}
.cifras b { display: block; font-size: 1.8rem; font-family: "Poppins", sans-serif; color: var(--amarillo); }
.cifras span { font-size: .8rem; opacity: .85; }
@media (max-width: 575.98px) { .cifras { grid-template-columns: repeat(2, 1fr); } }

.vacio { text-align: center; padding: 2.5rem 1rem; color: #5a6070; background: #f6f7f9; border-radius: 1rem; }

/* Pedir taxi */
.pedir-mapa { height: 46vh; min-height: 300px; border-radius: 1.25rem; z-index: 0; }
.campo-ruta { position: relative; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem .9rem; border-radius: 1rem; background: #f4f5f8; border: 2px solid transparent; }
.campo-ruta:focus-within { border-color: var(--amarillo); background: #fff; }
.campo-ruta .marca { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.campo-ruta .marca.origen { background: var(--verde); box-shadow: 0 0 0 4px var(--verde-suave); }
.campo-ruta .marca.destino { background: #e5242b; border-radius: 3px; box-shadow: 0 0 0 4px #fde8e8; }
.campo-ruta input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; padding: .55rem 0; font-size: 1rem; }
.campo-ruta .btn { flex-shrink: 0; }
.linea-ruta { width: 2px; height: 14px; margin: 2px 0 2px 1.32rem; background: #cfd3db; }
.sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1050; background: #fff; border-radius: .9rem; box-shadow: 0 .75rem 2rem rgba(0,0,0,.15); overflow: hidden; }
.sugerencias button { display: flex; gap: .6rem; width: 100%; text-align: left; border: 0; background: #fff; padding: .7rem .9rem; font-size: .9rem; border-bottom: 1px solid #f0f0f0; }
.sugerencias button:hover, .sugerencias button:focus { background: var(--amarillo-suave); }
.sugerencias button i { color: #8a8f9c; }
.resumen-ruta { display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; border-radius: 1rem; background: var(--amarillo-suave); color: var(--azul); font-weight: 600; }
.chip-reciente { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--azul-suave); color: var(--azul); font-size: .82rem; border: 0; }
.contador-pasajeros { display: inline-flex; align-items: center; gap: .6rem; }
.contador-pasajeros button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--azul-suave); font-weight: 700; }
.contador-pasajeros output { min-width: 1.5rem; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* Viaje del pasajero */
.mapa-viaje { height: 38vh; min-height: 260px; border-radius: 1.25rem; z-index: 0; }
.estado-viaje { padding: 1.25rem; border-radius: 1.25rem; background: var(--azul); color: #fff; }
.estado-viaje h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.estado-viaje .sub { opacity: .8; font-size: .92rem; }
.radar { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--amarillo); animation: radar 2s ease-out infinite; opacity: 0; }
.radar span:nth-child(2) { animation-delay: .7s; }
.radar span:nth-child(3) { animation-delay: 1.4s; }
.radar i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: var(--amarillo); }
@keyframes radar { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.ruta-texto { display: grid; grid-template-columns: 14px 1fr; gap: .2rem .7rem; align-items: center; font-size: .95rem; }
.ruta-texto .marca { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); }
.ruta-texto .marca.destino { background: #e5242b; border-radius: 3px; }

.oferta {
    display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 1.1rem; background: #fff;
    box-shadow: 0 4px 18px rgba(23,26,33,.09); animation: subir .3s ease-out;
}
.oferta + .oferta { margin-top: .75rem; }
.oferta.mejor { box-shadow: inset 0 0 0 2px var(--amarillo), 0 6px 22px rgba(255,198,26,.25); }
.oferta .precio { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--azul); line-height: 1; }
.oferta .etiqueta-mejor { font-size: .7rem; font-weight: 700; color: var(--amarillo-oscuro); text-transform: uppercase; letter-spacing: .5px; }
.foto-taxista { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--amarillo-suave); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--amarillo-oscuro); }
.foto-taxista.grande { width: 76px; height: 76px; font-size: 2.2rem; }
.estrellas-mini { color: var(--amarillo-oscuro); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.placas { display: inline-block; padding: .1rem .5rem; border-radius: .35rem; border: 2px solid var(--azul); font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 1px; font-size: .9rem; background: #fff; color: var(--azul); }
.precio-grande { font-size: 2.2rem; font-weight: 800; color: var(--azul); line-height: 1; }
.tarjeta-taxista { padding: 1.25rem; border-radius: 1.25rem; background: #fff; box-shadow: 0 8px 30px rgba(23,26,33,.1); }

.linea-viaje { list-style: none; padding: 0; margin: 0; }
.linea-viaje li { position: relative; display: flex; gap: .75rem; padding-bottom: 1rem; color: #9aa0ac; }
.linea-viaje li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e3e6ec; }
.linea-viaje li.hecho { color: var(--azul); font-weight: 600; }
.linea-viaje li.hecho:not(:last-child)::before { background: var(--verde); }
.linea-viaje .punto { flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0f4; font-size: .85rem; }
.linea-viaje li.hecho .punto { background: var(--verde); color: #fff; }
.linea-viaje li.actual .punto { background: var(--amarillo); color: var(--azul); animation: latido 1.6s infinite; }

.estrellas-elegir { display: flex; flex-direction: row-reverse; justify-content: center; gap: .3rem; }
.estrellas-elegir input { display: none; }
.estrellas-elegir label { font-size: 2.4rem; color: #d6d9e0; cursor: pointer; transition: transform .1s; }
.estrellas-elegir label:active { transform: scale(.9); }
.estrellas-elegir input:checked ~ label, .estrellas-elegir label:hover, .estrellas-elegir label:hover ~ label { color: var(--amarillo); }

/* Panel del taxista */
.interruptor-servicio {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1.25rem; cursor: pointer;
    background: #e9ebf0; color: var(--azul); transition: background .25s;
}
.interruptor-servicio.activo { background: var(--verde); color: #fff; }
.interruptor-servicio .switch { position: relative; width: 58px; height: 32px; border-radius: 16px; background: #c4c8d1; flex-shrink: 0; transition: background .25s; }
.interruptor-servicio .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.interruptor-servicio.activo .switch { background: rgba(255,255,255,.35); }
.interruptor-servicio.activo .switch::after { transform: translateX(26px); }
.interruptor-servicio strong { font-size: 1.15rem; font-family: "Poppins", sans-serif; display: block; }
.interruptor-servicio small { opacity: .85; }

.pasaje { padding: 1rem; border-radius: 1.1rem; background: #fff; box-shadow: 0 4px 18px rgba(23,26,33,.09); animation: subir .3s ease-out; }
.pasaje + .pasaje { margin-top: .9rem; }
.pasaje.nuevo { box-shadow: inset 4px 0 0 var(--amarillo), 0 4px 18px rgba(23,26,33,.09); }
.pasaje.ofertado { box-shadow: inset 4px 0 0 var(--verde), 0 4px 18px rgba(23,26,33,.09); }
.pasaje .distancia { font-weight: 800; color: var(--azul); font-family: "Poppins", sans-serif; }
.pasaje .precios-rapidos { display: flex; gap: .4rem; flex-wrap: wrap; }
.pasaje .precios-rapidos button { border: 1.5px solid #dfe2e8; background: #fff; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; color: var(--azul); }
.pasaje .precios-rapidos button.activo { background: var(--amarillo); border-color: var(--amarillo); }
.pasaje .entrada-precio { display: flex; align-items: center; border: 2px solid #dfe2e8; border-radius: .9rem; overflow: hidden; background: #fff; }
.pasaje .entrada-precio span { padding: 0 .2rem 0 .8rem; font-weight: 800; font-size: 1.2rem; color: var(--azul); }
.pasaje .entrada-precio input { border: 0; outline: 0; width: 100%; padding: .55rem .5rem; font-size: 1.25rem; font-weight: 800; color: var(--azul); }
.pasaje .entrada-precio:focus-within { border-color: var(--amarillo); }
.mapa-mini { height: 160px; border-radius: .9rem; z-index: 0; }

.botonera-viaje {
    position: sticky; bottom: calc(var(--alto-pestanas) + var(--abajo-seguro)); z-index: 5;
    margin: 0 -1rem; padding: 1rem 1rem .25rem; background: linear-gradient(rgba(246,247,249,0), #f6f7f9 22%);
}
@media (min-width: 992px) { .botonera-viaje { bottom: 0; } }
.boton-paso { padding: 1.1rem; font-size: 1.15rem; border-radius: 1.1rem; box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.18); }

.marcador-taxi {
    width: 38px; height: 38px; border-radius: 50%; background: var(--amarillo); border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.marcador-punto { width: 20px; height: 20px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.marcador-punto.origen { background: var(--verde); }
.marcador-punto.destino { background: #e5242b; border-radius: 5px; }

.mapa { height: 320px; border-radius: 1rem; z-index: 0; }
.pasos-ruta { max-height: 40vh; overflow: auto; }
.pasos-ruta li { padding: .5rem 0; border-bottom: 1px solid #eee; }

/* Listas estilo ajustes */
.lista-app { border-radius: 1rem; overflow: hidden; box-shadow: 0 2px 10px rgba(23,26,33,.07); }
.lista-app .list-group-item { border-left: 0; border-right: 0; }
.avatar {
    width: 76px; height: 76px; border-radius: 50%; background: var(--amarillo-suave); color: var(--amarillo-oscuro);
    display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}

@media (max-width: 575.98px) {
    .modal-dialog-centered { align-items: flex-end; min-height: 100%; margin: 0; }
    .modal-dialog-centered .modal-content { border-radius: 1.25rem 1.25rem 0 0; border: 0; padding-bottom: var(--abajo-seguro); }
}

/* Pie */
.pie { background: var(--azul); color: rgba(255,255,255,.85); }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { color: var(--amarillo); }

/* Panel */
.lateral { width: 250px; min-height: calc(100vh - 61px); }
.lateral .nav-link { color: var(--azul); border-radius: .75rem; padding: .6rem .9rem; }
.lateral .nav-link.active, .lateral .nav-link:hover { background: var(--amarillo-suave); color: var(--azul); font-weight: 600; }
.contenido-panel { min-width: 0; background: #f6f7f9; min-height: calc(100vh - 61px); }
.body-panel { background: #f6f7f9; }
.estadistica { padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 2px 10px rgba(23,26,33,.07); height: 100%; }
.estadistica .numero { font-size: 1.8rem; font-weight: 800; font-family: "Poppins", sans-serif; color: var(--azul); }

.modo-app body { user-select: none; -webkit-user-select: none; }
.modo-app input, .modo-app textarea { user-select: text; -webkit-user-select: text; }

/* Entrar / crear cuenta */
.cuenta-pantalla { max-width: 460px; margin: 0 auto; }
.cuenta-pantalla.ancho { max-width: 680px; }
.cuenta-hero {
    position: relative; overflow: hidden; color: #fff; padding: 2rem 1.25rem 3.5rem;
    background: radial-gradient(circle at 85% 10%, rgba(255,198,26,.45) 0%, transparent 45%), linear-gradient(140deg, #171a21 0%, #2a2f3a 100%);
    border-radius: 1.5rem;
}
@media (max-width: 575.98px) { .cuenta-hero { border-radius: 0 0 2rem 2rem; margin: -1rem -.75rem 0; } }
.logo-pastilla {
    background: #fff; border-radius: 1.25rem; padding: .7rem 1.1rem; width: fit-content; max-width: 85%;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.18); animation: aparecer .5s ease-out;
}
.logo-pastilla img { height: 56px; width: auto; display: block; max-width: 100%; object-fit: contain; }
.flota { position: absolute; font-size: 1.8rem; opacity: .35; animation: flotar 6s ease-in-out infinite; }
.flota.f1 { left: 6%; top: 18%; }
.flota.f2 { right: 8%; top: 12%; animation-delay: -1.5s; }
.flota.f3 { left: 12%; bottom: 14%; animation-delay: -3s; }
.flota.f4 { right: 12%; bottom: 20%; animation-delay: -4.5s; }
@keyframes flotar { 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes aparecer { from { transform: scale(.9); opacity: 0; } }

.segmento {
    position: relative; z-index: 2; display: flex; gap: .25rem; width: fit-content; margin-top: -1.6rem;
    padding: .3rem; background: #fff; border-radius: 999px; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.12);
}
.segmento a { padding: .55rem 1.4rem; border-radius: 999px; color: #555; font-weight: 600; text-decoration: none; transition: background .2s; }
.segmento a.activo { background: var(--amarillo); color: var(--azul); box-shadow: 0 .25rem .75rem rgba(255,198,26,.35); }

.cuenta-tarjeta { margin-top: 1rem; border-radius: 1.5rem; box-shadow: 0 .75rem 2rem rgba(23,26,33,.1); animation: subir .35s ease-out; }
.cuenta-hero + .cuenta-tarjeta { margin-top: -1.75rem; position: relative; z-index: 2; }

.campo-app { display: flex; align-items: stretch; background: #f4f5f8; border-radius: 1rem; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.campo-app:focus-within { border-color: var(--amarillo); background: #fff; }
.campo-app.con-error { border-color: #dc3545; }
.campo-icono { display: flex; align-items: center; padding: 0 .25rem 0 1rem; font-size: 1.2rem; color: #999; }
.campo-app:focus-within .campo-icono { color: var(--amarillo-oscuro); }
.campo-app .form-control, .campo-app .form-select { background: transparent; border: 0; box-shadow: none !important; border-radius: 1rem; }
.campo-app .form-floating > label { color: #888; }
.campo-ver { border: 0; color: #888; padding: 0 1rem; }

.boton-grande { padding-top: .9rem; padding-bottom: .9rem; font-size: 1.05rem; box-shadow: 0 .5rem 1.25rem rgba(23,26,33,.18); }

.fuerza { height: 6px; border-radius: 3px; background: #eee; overflow: hidden; margin-top: -.5rem; }
.fuerza span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.fuerza[data-nivel="1"] span { width: 25%; background: #dc3545; }
.fuerza[data-nivel="2"] span { width: 50%; background: #fd7e14; }
.fuerza[data-nivel="3"] span { width: 75%; background: #ffc107; }
.fuerza[data-nivel="4"] span { width: 100%; background: #198754; }

.tarjeta-cta {
    display: flex; align-items: center; gap: .9rem; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 1.25rem;
    color: var(--azul); text-decoration: none; background: var(--amarillo-suave);
    box-shadow: 0 .5rem 1.25rem rgba(23,26,33,.08);
}
.tarjeta-cta:hover { color: var(--azul); }

.paso { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; color: var(--azul); }
.paso span {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--amarillo); color: var(--azul); font-size: .9rem;
}

/* Registro: elegir si necesita taxi o es taxista */
.opcion-rol {
    position: relative; display: flex; flex-direction: column; gap: .25rem; cursor: pointer; padding: 1.25rem; border-radius: 1.25rem;
    border: 2px solid transparent; transition: all .2s; text-align: center; align-items: center;
}
.opcion-rol.rol-pasajero { background: var(--verde-suave); }
.opcion-rol.rol-taxista { background: var(--amarillo-suave); }
.opcion-rol input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-rol .emoji-rol { font-size: 2.4rem; line-height: 1; }
.opcion-rol strong { font-size: 1.05rem; color: var(--azul); font-family: "Poppins", sans-serif; }
.opcion-rol small { color: #5a6070; }
.opcion-rol .marca-rol { position: absolute; top: .75rem; right: .85rem; color: #cfd3db; font-size: 1.3rem; }
.opcion-rol:has(input:checked) { border-color: var(--verde); box-shadow: 0 .5rem 1.25rem rgba(14,159,79,.18); transform: translateY(-2px); }
.opcion-rol.rol-taxista:has(input:checked) { border-color: var(--amarillo); box-shadow: 0 .5rem 1.25rem rgba(255,198,26,.3); }
.opcion-rol:has(input:checked) .marca-rol { color: var(--verde); }
.opcion-rol.rol-taxista:has(input:checked) .marca-rol { color: var(--amarillo-oscuro); }

.registro .paso-datos { display: none; }
.registro:has(input[name=como]:checked) .paso-datos { display: block; animation: subir .3s ease-out; }
.registro .solo-pasajero, .registro .solo-taxista { display: none; }
.registro:has(input[value=pasajero]:checked) .solo-pasajero { display: block; }
.registro:has(input[value=taxista]:checked) .solo-taxista { display: block; }
.registro button .solo-pasajero, .registro button .solo-taxista { display: none; }
.registro:has(input[value=pasajero]:checked) button .solo-pasajero,
.registro:has(input[value=taxista]:checked) button .solo-taxista { display: inline; }
.taxi-caja { padding: 1rem; border-radius: 1rem; background: var(--amarillo-suave); }

.tarjeta-plan { border-top: 5px solid var(--amarillo); }
