:root {
    --azul: #022551;
    --azul-medio: #0b3a78;
    --azul-suave: #eaf0f8;
    --verde: #04842f;
    --verde-oscuro: #036a26;
    --verde-suave: #e8f5ec;
    --amarillo: #fcb900;
    --amarillo-suave: #fff6dc;
    --texto: #1d2433;
    --alto-pestanas: 64px;
    --abajo-seguro: env(safe-area-inset-bottom, 0px);
    --bs-body-color: var(--texto);
    --bs-link-color-rgb: 4, 132, 47;
    --bs-link-hover-color-rgb: 3, 106, 38;
}

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-ficha, .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 { background: #e8a900; border-color: #e8a900; color: var(--azul); }
.btn-borde-verde { border: 1.5px solid var(--verde); color: var(--verde); background: #fff; white-space: nowrap; }
.btn-borde-verde:hover { background: var(--verde); color: #fff; }
.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(2,37,81,.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: #7cc596; box-shadow: 0 0 0 .2rem rgba(4,132,47,.15); }
.form-check-input:checked { background-color: var(--verde); border-color: var(--verde); }
.page-item.active .page-link { background: var(--verde); border-color: var(--verde); }
.page-link { color: var(--verde); }

/* Barra superior */
.barra-app { padding-top: env(safe-area-inset-top, 0px); }
.barra-app .navbar-brand { margin-right: 2rem; }
.logo-barra { height: 52px; width: auto; display: block; }
@media (max-width: 575.98px) { .logo-barra { height: 40px; } }
.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(--verde); }
.pestanas a.activa i { transform: translateY(-1px) scale(1.08); }
.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-inicio { position: relative; overflow: hidden; padding: 3.5rem 0 2rem; min-height: 390px; background: #fff; }
.hero-foto {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
    background-size: cover; background-position: center left;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
            mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}
.hero-texto { position: relative; max-width: 560px; padding-left: 1.25rem; border-left: 6px solid var(--amarillo); border-radius: 3px; }
.hero-texto h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; font-weight: 800; color: var(--azul); letter-spacing: -.5px; margin: 0; }
.destello { width: .7em; height: .7em; margin-left: .15em; vertical-align: .05em; }
.hero-sub { position: relative; display: inline-block; font-size: 1.2rem; color: #3b4659; margin: 1rem 0 0; padding-bottom: .6rem; }
.hero-sub::after {
    content: ""; position: absolute; left: 30%; bottom: 0; width: 45%; height: 8px;
    border-bottom: 3px solid var(--amarillo); border-radius: 0 0 50% 50%;
}
.buscador-inicio {
    position: relative; z-index: 2; display: flex; gap: .75rem; align-items: stretch;
    margin-top: 3rem; padding: 1rem; background: #fff; border-radius: 1.1rem;
    box-shadow: 0 .75rem 2.5rem rgba(2,37,81,.14);
}
.campo-inicio {
    position: relative; flex: 1; display: flex; align-items: center; gap: .5rem; margin: 0;
    padding: 0 .9rem; min-height: 52px; border: 1.5px solid #dfe5dc; border-radius: .7rem; background: #fff; cursor: pointer;
}
.campo-inicio:focus-within { border-color: var(--verde); }
.campo-inicio > i:first-child { font-size: 1.35rem; color: var(--verde); }
.campo-inicio .flecha { color: #556; font-size: 1rem; pointer-events: none; }
.campo-inicio input, .campo-inicio select {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #2b3445; font-size: .98rem;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.campo-inicio input::-webkit-calendar-picker-indicator { display: none !important; }
.boton-buscar-inicio { flex: 0 0 auto; padding: 0 1.6rem; font-size: 1rem; border-radius: .7rem; }
.boton-buscar-inicio i { font-size: 1.2rem; vertical-align: -2px; margin-right: .25rem; }
@media (max-width: 991.98px) {
    .hero-inicio { padding-top: 2rem; }
    .hero-foto { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
    .buscador-inicio { flex-wrap: wrap; }
    .campo-inicio { flex: 1 1 100%; }
    .boton-buscar-inicio { flex: 1 1 100%; min-height: 52px; }
}

.tarjeta-accion {
    display: flex; align-items: center; gap: 1.1rem; height: 100%; padding: 1.4rem 1.5rem; border-radius: 1rem;
}
.tarjeta-accion.busco { background: var(--verde-suave); }
.tarjeta-accion.publico { background: var(--amarillo-suave); }
.tarjeta-accion .ilustracion { width: 76px; height: 76px; flex-shrink: 0; }
.tarjeta-accion h2 { font-size: 1.2rem; font-weight: 700; color: var(--azul); margin-bottom: .2rem; }
.tarjeta-accion p { font-size: .88rem; color: #4a5568; margin: 0; }
@media (max-width: 575.98px) {
    .tarjeta-accion { flex-wrap: wrap; }
    .tarjeta-accion .btn { width: 100%; }
}

.titulo-barra {
    font-size: 1.6rem; font-weight: 700; color: var(--azul);
    padding-left: .85rem; border-left: 5px solid var(--verde); line-height: 1.15;
}
@media (max-width: 575.98px) { .titulo-barra { font-size: 1.25rem; } }
.titulo-seccion { font-size: 1.3rem; font-weight: 700; color: var(--azul); }
.enlace-verde { color: var(--verde); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.enlace-verde:hover { color: var(--verde-oscuro); }

/* Tarjeta de propiedad */
.tarjeta-propiedad { overflow: hidden; border-radius: 1rem; box-shadow: 0 4px 18px rgba(2,37,81,.09); transition: transform .15s, box-shadow .15s; }
.tarjeta-propiedad:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(2,37,81,.14); }
.foto-propiedad { position: relative; aspect-ratio: 16 / 10; background: var(--azul-suave); }
.carrusel-fotos { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel-fotos::-webkit-scrollbar { display: none; }
.carrusel-fotos a { flex: 0 0 100%; scroll-snap-align: start; }
.carrusel-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puntos-fotos { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); display: flex; gap: 5px; }
.puntos-fotos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.3); }
.puntos-fotos span.activo { background: #fff; }
.etiqueta-tipo {
    position: absolute; top: .75rem; left: .75rem; padding: .3rem .7rem; border-radius: .5rem;
    background: #fff; color: var(--verde); font-size: .78rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.etiqueta-estado { position: absolute; top: 2.75rem; left: .75rem; padding: .2rem .6rem; border-radius: .5rem; font-size: .72rem; font-weight: 700; }
.etiqueta-estado.destacada { background: var(--amarillo); color: var(--azul); }
.etiqueta-estado.apartada { background: #ffc107; color: #222; }
.boton-favorito {
    position: absolute; top: .65rem; right: .65rem; width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: #fff; color: var(--azul); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s;
}
.boton-favorito:active { transform: scale(.85); }
.boton-favorito.activo, .boton-favorito-ficha.activo { color: #e5242b; }
.ubicacion-propiedad { display: flex; align-items: flex-start; gap: .3rem; font-weight: 700; color: var(--azul); font-size: .92rem; line-height: 1.25; }
.ubicacion-propiedad i { color: var(--verde); font-size: 1.1rem; flex-shrink: 0; }
.precio-propiedad { color: var(--verde); font-weight: 800; font-size: 1.15rem; white-space: nowrap; font-family: "Poppins", system-ui, sans-serif; line-height: 1.2; }
.precio-propiedad small { font-size: .72rem; font-weight: 700; }
.titulo-propiedad { font-size: .85rem; color: #6b7385; margin: .1rem 0 .55rem; }
.datos-propiedad { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: #4a5568; }
.datos-propiedad i { font-size: 1.05rem; vertical-align: -2px; color: #556; }

.foto-vacia {
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    background: var(--azul-suave); color: var(--azul); font-size: 2.2rem;
}
.foto-mini { width: 84px; height: 72px; object-fit: cover; border-radius: .75rem; flex-shrink: 0; font-size: 1.4rem; }
.foto-arrendador { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0; font-size: 1.4rem; }

.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); } }

.lado-como { height: 100%; padding: 1.75rem; border-radius: 1rem; }
.lado-como.busco { background: var(--verde-suave); }
.lado-como.publico { background: var(--amarillo-suave); }
.lado-como h3 { font-size: 1.2rem; font-weight: 700; color: var(--azul); }
.lado-como ol { padding-left: 1.2rem; margin: 1rem 0 1.25rem; }
.lado-como li { margin-bottom: .6rem; }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .5rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .25rem;
    width: 88px; padding: .6rem .25rem; border-radius: 1rem; background: #fff; color: var(--azul); text-decoration: none;
    font-size: .75rem; font-weight: 600; text-align: center; box-shadow: 0 2px 8px rgba(2,37,81,.08);
}
.chip .emoji { font-size: 1.6rem; line-height: 1; }
.chip.activo { background: var(--verde); color: #fff; }

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

/* Búsqueda */
.barra-filtros { padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 4px 18px rgba(2,37,81,.08); }
.aviso-registro {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 1rem;
    background: var(--verde-suave); color: var(--azul); text-decoration: none; font-size: .9rem;
}
.aviso-registro > i:first-child { color: var(--verde); font-size: 1.3rem; }
.marcador-precio {
    background: #fff; color: var(--azul); font-weight: 800; font-size: .78rem; padding: .25rem .5rem;
    border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; border: 2px solid var(--verde);
    transform: translate(-50%, -50%); display: inline-block; transition: background .15s, color .15s, transform .15s;
}
.marcador-precio.activo, .marcador-precio:hover { background: var(--verde); color: #fff; transform: translate(-50%, -50%) scale(1.15); }
.contenedor-mapa { position: relative; }
.boton-zona {
    position: absolute; top: .75rem; left: 50%; transform: translateX(-50%); z-index: 500;
    border-radius: 999px; box-shadow: 0 .4rem 1rem rgba(0,0,0,.25); white-space: nowrap;
}
.boton-zona:active { transform: translateX(-50%) scale(.97); }
.auto-zona {
    position: absolute; left: .75rem; bottom: .75rem; z-index: 500; display: flex; align-items: center; gap: .4rem;
    padding: .35rem .7rem; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; color: var(--azul);
    box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer;
}
.auto-zona .form-check-input { margin: 0; }
.chip-zona {
    display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .4rem .25rem .75rem; border-radius: 999px;
    background: var(--verde-suave); color: var(--verde); font-size: .82rem; font-weight: 600;
}
.chip-zona a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--verde); text-decoration: none; font-size: .7rem; }
.enlace-mapa { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 600; color: var(--azul); text-decoration: none; }
.enlace-mapa i { color: var(--verde); font-size: 1.15rem; }
.enlace-mapa:hover { color: var(--verde); }

/* Ficha */
.galeria { position: relative; border-radius: 1.25rem; overflow: hidden; background: var(--azul-suave); }
.galeria .carousel-item img { width: 100%; height: min(62vh, 520px); object-fit: cover; display: block; }
.galeria-vacia { height: 300px; font-size: 4rem; }
.contador-fotos { position: absolute; left: 1rem; bottom: 1rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; }
.acciones-galeria { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; z-index: 3; }
.precio-ficha { font-size: 2rem; font-weight: 800; color: var(--verde); }
.precio-ficha small { font-size: 1rem; color: #6b7385; font-weight: 500; }
.datos-ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.datos-ficha div { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .85rem .5rem; border-radius: 1rem; background: #f6f8fb; text-align: center; }
.datos-ficha i { font-size: 1.5rem; color: var(--verde); }
.datos-ficha b { font-size: 1.1rem; color: var(--azul); }
.datos-ficha span { font-size: .75rem; color: #6b7385; }
.texto-descripcion { white-space: normal; line-height: 1.6; }
.caja-contacto { position: sticky; top: 90px; padding: 1.4rem; border-radius: 1.25rem; background: #fff; box-shadow: 0 8px 30px rgba(2,37,81,.12); }
.candado-contacto { text-align: center; }
.boton-flotante {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 1035; width: calc(100% - 1.5rem);
    bottom: calc(var(--alto-pestanas) + var(--abajo-seguro) + .75rem); border-radius: 999px; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25);
}
.boton-flotante:active { transform: translateX(-50%) scale(.97); }

.mapa { height: 320px; border-radius: 1rem; z-index: 0; }
.mapa-alto { height: 70vh; min-height: 380px; border-radius: 1rem; z-index: 0; }
@media (max-width: 991.98px) { .mapa-alto { height: 45vh; min-height: 280px; } }
.pasos-ruta { max-height: 50vh; 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(2,37,81,.07); }
.lista-app .list-group-item { border-left: 0; border-right: 0; }
.avatar {
    width: 76px; height: 76px; border-radius: 50%; background: var(--verde-suave); color: var(--verde);
    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); }
@media (max-width: 767.98px) { .pie { margin-bottom: 0; } }

/* Panel */
.lateral { width: 250px; min-height: calc(100vh - 69px); }
.lateral .nav-link { color: var(--azul); border-radius: .75rem; padding: .6rem .9rem; }
.lateral .nav-link.active, .lateral .nav-link:hover { background: var(--verde-suave); color: var(--verde); }
.contenido-panel { min-width: 0; background: #f6f8fb; min-height: calc(100vh - 69px); }
.body-panel { background: #f6f8fb; }
.solicitud-nueva { box-shadow: inset 5px 0 0 var(--amarillo), 0 2px 10px rgba(2,37,81,.07); }
.estadistica { padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 2px 10px rgba(2,37,81,.07); height: 100%; }
.estadistica .numero { font-size: 1.8rem; font-weight: 800; font-family: "Poppins", sans-serif; color: var(--azul); }
.fotos-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.fotos-editor .foto { position: relative; border-radius: .75rem; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.fotos-editor img { width: 100%; height: 100%; object-fit: cover; }
.fotos-editor .acciones { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: .35rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.fotos-editor .portada-marca { position: absolute; top: .4rem; left: .4rem; }

.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 15% 10%, rgba(4,132,47,.55) 0%, transparent 45%), linear-gradient(140deg, #022551 0%, #0b3a78 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: 64px; 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(--verde); color: #fff; box-shadow: 0 .25rem .75rem rgba(4,132,47,.35); }

.cuenta-tarjeta { margin-top: 1rem; border-radius: 1.5rem; box-shadow: 0 .75rem 2rem rgba(2,37,81,.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: #f4f6f9; border-radius: 1rem; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.campo-app:focus-within { border-color: var(--verde); 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(--verde); }
.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(4,132,47,.28); }

.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(2,37,81,.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(--verde); color: #fff; font-size: .9rem;
}

/* Registro: elegir si quiere rentar o tiene propiedades */
.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-arrendatario { background: var(--verde-suave); }
.opcion-rol.rol-arrendador { 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: #5a6475; }
.opcion-rol .marca-rol { position: absolute; top: .75rem; right: .85rem; color: #cfd6df; font-size: 1.3rem; }
.opcion-rol:has(input:checked) { border-color: var(--verde); box-shadow: 0 .5rem 1.25rem rgba(4,132,47,.18); transform: translateY(-2px); }
.opcion-rol.rol-arrendador:has(input:checked) { border-color: var(--amarillo); box-shadow: 0 .5rem 1.25rem rgba(252,185,0,.25); }
.opcion-rol:has(input:checked) .marca-rol { color: var(--verde); }
.opcion-rol.rol-arrendador:has(input:checked) .marca-rol { color: #d99f00; }

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

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

/* Garantía RentaFácil */
.linea-garantia { list-style: none; padding: 0; margin: 0 0 .5rem; }
.linea-garantia li { position: relative; display: flex; gap: .75rem; padding-bottom: 1.1rem; color: #8a93a3; }
.linea-garantia li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: #e3e7ee; }
.linea-garantia li.hecho { color: var(--azul); }
.linea-garantia li.hecho:not(:last-child)::before { background: var(--verde); }
.linea-garantia .punto { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef1f5; }
.linea-garantia li.hecho .punto { background: var(--verde); color: #fff; }
.datos-pago { display: grid; gap: .4rem; padding: 1rem; border-radius: 1rem; background: #f6f8fb; }
.datos-pago div { display: flex; justify-content: space-between; gap: 1rem; }
.datos-pago span { color: #6b7385; font-size: .9rem; }
.garantia-hero { padding: 3rem 1.25rem; border-radius: 1.5rem; color: #fff; background: radial-gradient(circle at 15% 10%, rgba(4,132,47,.55) 0%, transparent 45%), linear-gradient(140deg, #022551 0%, #0b3a78 100%); }
.garantia-hero p { opacity: .9; max-width: 640px; margin-left: auto; margin-right: auto; }
.banda-garantia { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.5rem; border-radius: 1rem; color: #fff; background: linear-gradient(120deg, #022551 0%, #0b3a78 70%, #04842f 140%); }
.banda-garantia h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
.banda-garantia p { margin: 0; opacity: .9; font-size: .95rem; }
