/* Terraespacios Inmobiliaria · estilos de la web pública
   Paleta tomada del logo: marino #00339A · azul #0079C4 · cian #2BAEE6 · rojo #FF1133 */
:root {
  --marino: #00339a;
  --marino-oscuro: #0a2466;
  --azul: #0079c4;
  --cian: #2baee6;
  --rojo: #ff1133;
  --rojo-accion: #d90d2b;          /* rojo del logo, más profundo para cumplir contraste con texto blanco */
  --rojo-accion-hover: #b80a24;
  --tinta: #0b1b3a;
  --tinta-suave: #44526e;
  --bruma: #f2f8fc;
  --bruma-2: #e3eff8;
  --linea: #d3e1ee;
  --blanco: #fff;
  --ok: #0f7a4d;
  --error: #b3261e;
  --radio: 14px;
  --radio-s: 8px;
  --sombra: 0 1px 2px rgba(11, 27, 58, .06), 0 8px 24px -12px rgba(11, 27, 58, .18);
  --f-titulo: 'Outfit', 'Century Gothic', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-texto: 'Public Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --ancho: 1200px;
  --gut: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--blanco); }
img, svg { max-width: 100%; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--marino); }
h1, h2, h3, h4 { font-family: var(--f-titulo); color: var(--marino); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--tinta-suave); max-width: 52ch; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gut); }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; border-radius: 4px; }
.saltar { position: absolute; left: 8px; top: -60px; background: var(--marino); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.saltar:focus { top: 8px; }
.sec { padding-block: clamp(48px, 8vw, 96px); }
.sec-bruma { background: var(--bruma); }
.sec-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.sec-cab p { margin: 0; color: var(--tinta-suave); max-width: 56ch; }
.sec-cab h2 { margin-bottom: .25em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--f-texto); padding: 14px 22px; min-height: 48px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primario { background: var(--marino); color: #fff; }
.btn-primario:hover { background: var(--marino-oscuro); color: #fff; }
.btn-accion { background: var(--rojo-accion); color: #fff; }
.btn-accion:hover { background: var(--rojo-accion-hover); color: #fff; }
.btn-borde { background: transparent; color: var(--marino); border-color: var(--marino); }
.btn-borde:hover { background: var(--marino); color: #fff; }
.btn-claro { background: #fff; color: var(--marino); }
.btn-claro:hover { background: var(--bruma-2); color: var(--marino); }
.btn-wa { background: #0b7a43; color: #fff; }
.btn-wa:hover { background: #086236; color: #fff; }
.btn-bloque { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Encabezado */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cab-int { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: block; flex: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--tinta); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bruma-2); color: var(--marino); }
.cab-acciones { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--linea); border-radius: 12px; width: 48px; height: 48px; cursor: pointer; color: var(--marino); }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }
@media (max-width: 1040px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); flex-direction: column; align-items: stretch; padding: 8px var(--gut) 16px; display: none; box-shadow: var(--sombra); }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .cab-acciones .btn-borde { display: none; }
}
@media (max-width: 480px) { .logo img { height: 38px; } .cab-acciones .btn-wa span { display: none; } .cab-acciones .btn-wa { padding: 12px; } }

/* Banner principal: el círculo del logo como ventana */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bruma) 0%, #fff 100%); padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; gap: 32px; align-items: center; padding-bottom: 80px; }
.hero h1 { max-width: 14ch; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-circulo { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.hero-circulo .ventana { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: var(--bruma-2); box-shadow: 0 30px 60px -30px rgba(0, 51, 154, .5); }
.hero-circulo .ventana img, .hero-circulo .ventana svg { width: 100%; height: 100%; object-fit: cover; }
.hero-circulo .arcos { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-circulo .casa { position: absolute; left: 2%; bottom: 14%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sombra); }
.hero-circulo .casa svg { width: 52%; height: 52%; color: var(--rojo); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-circulo .arcos { animation: gira 36s linear infinite; transform-origin: 50% 50%; }
  @keyframes gira { to { transform: rotate(360deg); } }
}

/* Buscador acoplado al banner */
.buscador { position: relative; margin-top: -56px; z-index: 5; background: #fff; border: 1px solid var(--linea); border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(0, 51, 154, .35); padding: 18px; }
.operaciones { display: inline-flex; background: var(--bruma-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.operaciones label { position: relative; cursor: pointer; }
.operaciones input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.operaciones span { display: block; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--tinta-suave); }
.operaciones input:checked + span { background: var(--marino); color: #fff; }
.operaciones input:focus-visible + span { outline: 3px solid var(--cian); outline-offset: 2px; }
.busca-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.busca-grid .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .busca-grid { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } .busca-grid .btn { grid-column: auto; } }

/* Formularios */
.campo { display: block; }
.campo > span, .campo > legend { display: block; font-size: .88rem; font-weight: 600; color: var(--tinta); margin-bottom: 6px; padding: 0; }
.campo small { color: var(--tinta-suave); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--tinta); background: #fff; border: 1.5px solid #9db4cb; border-radius: var(--radio-s); padding: 12px 14px; min-height: 48px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cian); outline-offset: 0; border-color: var(--azul); }
[aria-invalid="true"] { border-color: var(--error); }
.error-campo { color: var(--error); font-size: .88rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--marino); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid.dos { grid-template-columns: 1fr 1fr; } .form-grid .completo { grid-column: 1 / -1; } }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { border-radius: var(--radio); padding: 16px 18px; font-size: .98rem; }
.aviso-error { background: #fdecea; color: #7a1812; border: 1px solid #f3b8b3; }
.aviso-ok { background: #e6f5ee; color: #0a4d31; border: 1px solid #a8dcc4; }
.aviso-info { background: var(--bruma); color: var(--tinta); border: 1px solid var(--linea); }
.tipos-pqrs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 0; padding: 0; margin: 0; }
.tipo-op { position: relative; }
.tipo-op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tipo-op span { display: block; border: 1.5px solid #9db4cb; border-radius: var(--radio-s); padding: 12px 14px; font-weight: 600; text-align: center; background: #fff; }
.tipo-op input:checked + span { border-color: var(--marino); background: var(--marino); color: #fff; }
.tipo-op input:focus-visible + span { outline: 3px solid var(--cian); outline-offset: 2px; }

/* Tarjetas de inmuebles */
.rejilla { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.inm { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.inm:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.inm-foto { position: relative; aspect-ratio: 4 / 3; background: var(--bruma-2); }
.inm-foto img, .inm-foto svg { width: 100%; height: 100%; object-fit: cover; }
.inm-etiquetas { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.etq { background: #fff; color: var(--marino); font-weight: 700; font-size: .82rem; padding: 5px 11px; border-radius: 999px; }
.etq-dest { background: var(--rojo-accion); color: #fff; }
.inm-cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.inm h3 { margin: 0; font-size: 1.12rem; }
.inm h3 a { color: var(--marino); text-decoration: none; }
.inm h3 a::after { content: ''; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.inm { position: relative; }
.inm-lugar { color: var(--tinta-suave); font-size: .95rem; margin: 0; display: flex; gap: 6px; align-items: center; }
.inm-lugar svg { width: 16px; height: 16px; flex: none; }
.precio { font-family: var(--f-titulo); font-weight: 700; font-size: 1.5rem; color: var(--tinta); line-height: 1.1; }
.precio small { font-family: var(--f-texto); font-weight: 400; font-size: .85rem; color: var(--tinta-suave); }
.datos { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 12px 0 0; margin: auto 0 0; border-top: 1px solid var(--linea); color: var(--tinta-suave); font-size: .92rem; }
.datos li { display: inline-flex; align-items: center; gap: 6px; }
.datos svg { width: 18px; height: 18px; color: var(--azul); }

/* Servicios */
.servicios { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.serv { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radio); overflow: hidden; background: #fff; border: 1px solid var(--linea); }
.serv-img { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--marino), var(--azul) 60%, var(--cian)); position: relative; overflow: hidden; }
.serv-img img { width: 100%; height: 100%; object-fit: cover; }
.serv-img svg { position: absolute; right: -10px; bottom: -22px; width: 120px; height: 120px; color: rgba(255, 255, 255, .22); }
.serv-cuerpo { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.serv-cuerpo p { color: var(--tinta-suave); margin: 0; flex: 1; }
.serv-cuerpo a { font-weight: 600; }

/* Banda para propietarios */
.banda { background: var(--marino); color: #fff; position: relative; overflow: hidden; }
.banda h2, .banda h3 { color: #fff; }
.banda p { color: #d4e4f7; }
.banda::before { content: ''; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(43, 174, 230, .22); }
.banda-grid { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .banda-grid { grid-template-columns: 1.3fr 1fr; } }

/* Pasos (secuencia real) */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pasos li::before { content: counter(paso); width: 44px; height: 44px; border-radius: 50%; background: var(--cian); color: var(--marino-oscuro); font: 700 1.15rem/44px var(--f-titulo); text-align: center; }
.pasos h3 { font-size: 1.08rem; margin: 2px 0 2px; }
.pasos p { margin: 0; }

/* Institucional y contacto */
.dos-col { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .dos-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.imagen-redonda { aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: var(--bruma-2); }
.imagen-redonda img, .imagen-redonda svg { width: 100%; height: 100%; object-fit: cover; }
.lineas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 20px 0; }
.linea { border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.linea b { font-family: var(--f-titulo); color: var(--marino); font-size: 1.05rem; }
.linea a.tel { color: var(--tinta); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.redes { display: flex; gap: 10px; flex-wrap: wrap; }
.redes a { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--linea); color: var(--marino); background: #fff; }
.redes a:hover { background: var(--marino); color: #fff; }
.redes svg { width: 22px; height: 22px; }

/* Llamado a PQRS */
.pqrs-llamado { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border: 1.5px solid var(--linea); border-radius: 20px; padding: clamp(20px, 4vw, 36px); background: #fff; }
.pqrs-llamado h2 { margin-bottom: .2em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pqrs-llamado p { margin: 0; color: var(--tinta-suave); max-width: 52ch; }

/* Pie de página */
.pie { background: var(--marino-oscuro); color: #cfe0f4; padding-block: 48px 28px; font-size: .96rem; }
.pie a { color: #fff; }
.pie h3 { color: #fff; font-size: 1.05rem; }
.pie-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pie .logo-pie { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.pie .logo-pie img { height: 40px; }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #0b7a43; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.wa-flotante:hover { background: #086236; color: #fff; }
.wa-flotante svg { width: 30px; height: 30px; }

/* Catálogo */
.cat-layout { display: grid; gap: 28px; padding-block: 28px 72px; }
@media (min-width: 960px) { .cat-layout { grid-template-columns: 290px 1fr; align-items: start; } .filtros { position: sticky; top: 92px; } }
.filtros { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px; display: grid; gap: 14px; }
.filtros h2 { font-size: 1.15rem; margin: 0; }
.filtros .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filtros-btn { display: none; }
@media (max-width: 959px) { .filtros-btn { display: inline-flex; } .filtros:not(.abierto) .filtros-cuerpo { display: none; } }
.cat-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cat-cab p { margin: 0; color: var(--tinta-suave); }
.cat-cab select { width: auto; }
.vacio { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--linea); border-radius: var(--radio); background: var(--bruma); }
.vacio h3 { margin-bottom: 6px; }
.cargando { color: var(--tinta-suave); padding: 32px 0; }
.sk { height: 340px; border-radius: var(--radio); background: linear-gradient(100deg, var(--bruma-2) 30%, var(--bruma) 50%, var(--bruma-2) 70%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: brillo 1.4s linear infinite; } @keyframes brillo { to { background-position: -200% 0; } } }
.sub-cab { background: linear-gradient(180deg, var(--bruma), #fff); padding-block: 36px 8px; }
.migas { font-size: .92rem; color: var(--tinta-suave); margin-bottom: 10px; }
.migas a { color: var(--tinta-suave); }

/* Ficha del inmueble */
.ficha { display: grid; gap: 32px; padding-block: 24px 72px; }
@media (min-width: 960px) { .ficha { grid-template-columns: 1fr 380px; align-items: start; } .ficha-lado { position: sticky; top: 92px; } }
.galeria-principal { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radio); overflow: hidden; background: var(--bruma-2); }
.galeria-principal img, .galeria-principal svg { width: 100%; height: 100%; object-fit: cover; }
.galeria-principal button.nav-g { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--marino); cursor: pointer; display: grid; place-items: center; }
.nav-g.ant { left: 12px; } .nav-g.sig { right: 12px; }
.nav-g svg { width: 22px; height: 22px; }
.miniaturas { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; }
.miniaturas button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.miniaturas button[aria-current="true"] { border-color: var(--azul); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.ficha-titulo { margin: 20px 0 6px; }
.ficha-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.dato { border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; display: flex; align-items: center; gap: 12px; }
.dato svg { width: 26px; height: 26px; color: var(--azul); flex: none; }
.dato b { display: block; font-family: var(--f-titulo); font-size: 1.15rem; color: var(--tinta); line-height: 1.1; }
.dato span { font-size: .85rem; color: var(--tinta-suave); }
.caract { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.caract li { display: flex; gap: 10px; align-items: flex-start; }
.caract svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; flex: none; }
.panel-contacto { border: 1px solid var(--linea); border-radius: 20px; padding: 22px; background: #fff; box-shadow: var(--sombra); display: grid; gap: 14px; }
.panel-contacto .precio { font-size: 2rem; }
.mapa { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radio); background: var(--bruma-2); }

/* Legal */
.legal { max-width: 74ch; padding-block: 32px 72px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }

/* Banners */
.vista-previa { background: #fff3c4; color: #5b4300; text-align: center; padding: 10px var(--gut); font-weight: 600; font-size: .95rem; position: sticky; top: 0; z-index: 70; border-bottom: 1px solid #ecd37a; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; background: #fff; border: 1px solid var(--linea); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); border-radius: 16px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; max-width: 760px; margin-inline: auto; }
.consent p { margin: 0; flex: 1 1 280px; font-size: .95rem; }
.exito { text-align: center; padding: 36px 20px; }
.radicado { display: inline-block; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--marino); background: var(--bruma); border: 1.5px dashed var(--azul); border-radius: 14px; padding: 12px 24px; margin: 12px 0; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* --- ajustes tras revisión visual --- */
.nav a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1280px) { .nav a { padding: 10px 8px; font-size: .94rem; } }
.filtros > * { min-width: 0; }
.filtros fieldset { min-width: 0; }
.filtros select, .filtros input[type="number"] { width: 100%; min-width: 0; }
.filtros .operaciones { display: flex; width: 100%; }
.filtros .operaciones label { flex: 1; }
.filtros .operaciones span { padding: 10px 6px; text-align: center; }
.pie .redes a { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.pie .redes a:hover { background: #fff; color: var(--marino); }
@media (min-width: 900px) { .nav a[href="pqrs.html"] { display: none; } }
.cab-acciones .btn { white-space: nowrap; }

/* --- Página de pagos --- */
.pagos-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .pagos-grid { grid-template-columns: 1.05fr .95fr; } }
.pagos-grid h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .8em; }
.pagos-izq .aviso { margin: 24px 0 0; }
.pg-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pg-acciones .btn[aria-disabled="true"] { background: var(--linea); color: var(--tinta-suave); pointer-events: none; }
.pg-seguridad, .pg-nota { font-size: .95rem; color: var(--tinta-suave); margin: 18px 0 0; max-width: 60ch; }
.video-caja { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--marino-oscuro); box-shadow: var(--sombra); }
.video-caja iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--marino) 0%, var(--azul) 100%); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; font: inherit; }
.video-play:hover .video-icono { transform: scale(1.06); }
.video-icono { width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--marino); display: grid; place-items: center; transition: transform .15s; }
.video-icono svg { width: 34px; height: 34px; margin-left: 4px; }
.video-tit { font: 600 1.1rem/1.25 var(--f-titulo); max-width: 28ch; }
.video-play small { opacity: .85; font-size: .82rem; }
.video-ext { display: inline-block; margin-top: 10px; font-size: .95rem; }

/* --- Asistente virtual --- */
.bot-lanzador { position: fixed; right: 16px; bottom: 16px; z-index: 61; display: inline-flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 16px; justify-content: center; border: 0; border-radius: 999px; background: var(--marino); color: #fff; font: 600 1rem/1 var(--f-texto); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 20, 80, .35); }
.bot-lanzador.sobre-wa { bottom: 86px; }
.bot-lanzador:hover { background: var(--marino-oscuro); }
.bot-lanzador.abierto { background: var(--marino-oscuro); }
.bot-lanzador .bot-ico { width: 26px; height: 26px; }
.bot-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bot-lanz-txt { display: none; }
@media (min-width: 640px) { .bot-lanz-txt { display: inline; } .bot-lanzador { padding: 0 20px 0 16px; } }
.bot-panel[hidden] { display: none; }
.bot-panel { position: fixed; z-index: 65; right: 16px; bottom: 16px; width: min(392px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 60px rgba(0, 20, 80, .35); }
.bot-lanzador.sobre-wa ~ .bot-panel { bottom: 16px; }
@media (max-width: 639px) { .bot-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(82dvh, 640px); border-radius: 20px 20px 0 0; } }
.bot-cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--marino); color: #fff; }
.bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--cian); color: var(--marino-oscuro); display: grid; place-items: center; font: 700 1.2rem/1 var(--f-titulo); flex: none; }
.bot-cab-txt { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.bot-cab-txt b { font: 600 1.05rem/1.2 var(--f-titulo); }
.bot-cab-txt span { font-size: .82rem; opacity: .85; }
.bot-cerrar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.bot-cerrar:hover { background: rgba(255, 255, 255, .16); }
.bot-cerrar .bot-ico { width: 22px; height: 22px; }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; overscroll-behavior: contain; }
.bot-msg { display: flex; }
.bot-msg.yo { justify-content: flex-end; }
.bot-burbuja { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.45; overflow-wrap: anywhere; }
.bot-burbuja p { margin: 0 0 .5em; }
.bot-burbuja p:last-child { margin-bottom: 0; }
.bot-msg.bot .bot-burbuja { background: var(--bruma); color: var(--tinta); border-bottom-left-radius: 4px; }
.bot-msg.yo .bot-burbuja { background: var(--marino); color: #fff; border-bottom-right-radius: 4px; }
.bot-opciones { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.bot-op { font: 500 .93rem/1.2 var(--f-texto); color: var(--marino); background: #fff; border: 1.5px solid var(--azul); border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer; text-align: left; }
.bot-op:hover { background: var(--marino); color: #fff; border-color: var(--marino); }
.bot-enlaces { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bot-enlace { display: block; text-align: center; text-decoration: none; font: 600 .93rem/1.2 var(--f-texto); color: #fff; background: var(--marino); border-radius: 12px; padding: 11px 14px; overflow-wrap: anywhere; }
.bot-enlace:hover { background: var(--marino-oscuro); color: #fff; }
.bot-enlace-wa { background: #0b7a43; }
.bot-enlace-wa:hover { background: #086236; }
.bot-inms { display: grid; gap: 8px; margin-top: 8px; }
.bot-inm { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 8px; text-decoration: none; color: var(--tinta); }
.bot-inm:hover { border-color: var(--azul); color: var(--tinta); }
.bot-inm img, .bot-inm-ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--bruma-2); }
.bot-inm-txt { display: grid; gap: 1px; min-width: 0; }
.bot-inm-txt b { font: 600 .93rem/1.25 var(--f-titulo); color: var(--marino); }
.bot-inm-txt small { color: var(--tinta-suave); font-size: .8rem; }
.bot-inm-precio { font-weight: 600; font-size: .9rem; }
.bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--linea); background: #fff; }
.bot-entrada { flex: 1; min-width: 0; font: 1rem var(--f-texto); border: 1.5px solid var(--linea); border-radius: 999px; padding: 11px 16px; color: var(--tinta); background: #fff; }
.bot-entrada:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(43, 174, 230, .35); }
.bot-enviar { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--rojo-accion); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.bot-enviar:hover { background: var(--rojo-accion-hover); }
.bot-enviar .bot-ico { width: 22px; height: 22px; }
.bot-pie { margin: 0; padding: 0 14px 10px; font-size: .78rem; color: var(--tinta-suave); text-align: center; background: #fff; }

/* El atributo hidden debe ganarle a cualquier display de componentes */
[hidden] { display: none !important; }

/* --- Barra de información superior (escritorio) --- */
html { scroll-padding-top: 88px; }
.barra-info { display: none; background: var(--marino); color: #fff; font-size: .9rem; line-height: 1.3; }
@media (min-width: 900px) { .barra-info { display: block; } }
.barra-int { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 40px; padding-block: 6px; }
.barra-info a { color: #fff; text-decoration: none; }
.barra-info a:hover { text-decoration: underline; }
.barra-info svg { width: 17px; height: 17px; flex: none; }
.barra-redes { display: flex; align-items: center; gap: 12px; }
.barra-redes a { display: inline-flex; padding: 2px; }
.barra-dato { display: flex; align-items: center; gap: 8px; }
.barra-info :focus-visible { outline-color: #fff; }
