@charset "utf-8";
/* ==========================================================================
   tuisla.com.ve
   Paleta tomada de la bahía al caer la tarde: mar hondo, sol dorado,
   franja coral del horizonte y el turquesa de los peñeros.
   ========================================================================== */
:root {
    --mar: #0B3C5D;
    --mar-noche: #072940;
    --sol: #FFB703;
    --coral: #F2542D;
    --turquesa: #0E8F8A;
    --espuma: #F3F7FA;
    --blanco: #FFFFFF;
    --tinta: #10222E;
    --tinta-suave: #4C6170;
    --linea: #D5E0E8;
    --error: #B3261E;
    --ok: #17694A;
    --titulos: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
    --texto: "Figtree", "Segoe UI", Tahoma, sans-serif;
    --radio: 14px;
    --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--texto);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tinta);
    background: var(--espuma);
}
img { max-width: 100%; display: block; }
a { color: #0A5F85; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.12; letter-spacing: -0.015em; color: var(--mar-noche); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .84em; color: var(--tinta-suave); font-weight: 400; }

.wrap { width: min(var(--ancho), 100% - 2.5rem); margin-inline: auto; }
.wrap-lectura { max-width: 780px; }
.wrap-form { max-width: 520px; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--sol); color: var(--tinta); padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: .5rem; top: .5rem; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tenue { color: var(--tinta-suave); }

/* ---------- Cabecera ---------- */
.cab { background: var(--mar-noche); color: #fff; position: sticky; top: 0; z-index: 50; }
.cab-fila { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.marca { font-family: var(--titulos); font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.marca:hover { color: var(--sol); }
/* El sol a medio ponerse sobre el horizonte */
.marca-sol { width: 26px; height: 15px; overflow: hidden; position: relative; border-bottom: 3px solid var(--coral); flex: none; }
.marca-sol::before { content: ""; position: absolute; left: 2px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sol); }
.nav { display: flex; align-items: center; gap: .2rem; flex: 1; flex-wrap: wrap; }
.nav a { color: #DCE8F0; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.activo { color: var(--mar-noche); background: var(--sol); font-weight: 700; }
.nav-cuenta { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.cab-menu { display: none; margin-left: auto; background: none; border: 1.5px solid rgba(255,255,255,.5); color: #fff; font: inherit; padding: .35rem .9rem; border-radius: 8px; cursor: pointer; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 700 1rem/1.2 var(--texto); padding: .8rem 1.35rem; border-radius: 999px;
    border: 2px solid transparent; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-sol { background: var(--sol); color: var(--mar-noche); }
.btn-sol:hover { background: #FFC933; color: var(--mar-noche); }
.btn-linea { background: transparent; color: var(--mar); border-color: var(--mar); }
.btn-linea:hover { background: var(--mar); color: #fff; }
.btn-claro { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.75); }
.btn-claro:hover { background: #fff; color: var(--mar-noche); }
.btn-wa { background: #128C4B; color: #fff; }
.btn-wa:hover { background: #0E743E; color: #fff; }
.btn-peligro { background: transparent; color: var(--error); border-color: var(--error); margin-left: auto; }
.btn-peligro:hover { background: var(--error); color: #fff; }
.btn-chico { padding: .4rem .95rem; font-size: .92rem; }
.nav a.btn-linea { color: #fff; border-color: rgba(255,255,255,.6); border-radius: 999px; }
.btn-ancho { width: 100%; margin-bottom: .6rem; }
button.enlace { background: none; border: 0; padding: 0; font: inherit; color: #0A5F85; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.enlace:hover { color: var(--coral); }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--mar-noche); overflow: hidden; isolation: isolate; }
.portada-pano { position: absolute; inset: 0; z-index: -2; }
.portada-pano .pnlm-load-box, .portada-pano .pnlm-about-msg { display: none !important; }
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,41,64,.92) 0%, rgba(7,41,64,.55) 38%, rgba(7,41,64,0) 70%); pointer-events: none; }
.portada-texto { padding: 3rem 0 3.5rem; }
.portada h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; max-width: 13ch; margin-bottom: .35em; }
.portada p { max-width: 46ch; font-size: 1.2rem; }
.portada-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.portada-dato { font-size: .98rem !important; color: #C9DBE7; margin-top: 1.2rem; }

/* Portada sin fotos todavía: el atardecer dibujado */
.atardecer { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to bottom, #1B2A63 0%, #7A2E6E 34%, #E0475A 52%, #F9893B 63%, #FFC857 70%, #0B3C5D 70.2%, #072940 100%); }
.atardecer .sol { position: absolute; left: 68%; top: 70%; width: clamp(120px, 20vw, 260px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFF3C4 0%, #FFD166 45%, #FFB703 100%); transform: translate(-50%, -62%); clip-path: inset(0 0 38% 0); animation: ponerse 2.4s ease-out both; }
.atardecer .mar { position: absolute; left: 0; right: 0; top: 70.2%; bottom: 0; background: repeating-linear-gradient(to bottom, rgba(255,200,87,.20) 0 2px, transparent 2px 14px); -webkit-mask-image: radial-gradient(ellipse 22% 90% at 68% 0%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 22% 90% at 68% 0%, #000 0%, transparent 100%); }
@keyframes ponerse { from { transform: translate(-50%, -92%); } to { transform: translate(-50%, -62%); } }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.seccion-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.seccion-cab h1, .seccion-cab h2 { margin: 0; }
.entrada { font-size: 1.2rem; color: var(--tinta-suave); max-width: 62ch; }
.seccion-mar { background: var(--mar); color: #E6F0F6; }
.seccion-mar h2 { color: #fff; }
.seccion-mar .seccion-cab a { color: var(--sol); }

.ciudad { background: var(--blanco); border-block: 1px solid var(--linea); }
.ciudad-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); }
.ciudad-item { padding: 1.4rem 1.6rem 1.4rem 0; text-decoration: none; color: var(--tinta); border-top: 4px solid var(--mar); margin-right: 1.6rem; display: block; }
.ciudad-item:nth-child(2) { border-top-color: var(--coral); }
.ciudad-item:nth-child(3) { border-top-color: var(--sol); }
.ciudad-item strong { display: block; font: 750 1.6rem/1.15 var(--titulos); color: var(--mar-noche); margin-bottom: .4rem; }
.ciudad-item:hover strong { color: var(--coral); }
.ciudad-item span { color: var(--tinta-suave); }

.pasos { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 0; margin: 0 0 2rem; }
.pasos li { counter-increment: paso; padding-left: 3.2rem; position: relative; }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--sol); color: var(--mar-noche); font: 800 1.15rem/2.3rem var(--titulos); text-align: center; }
.pasos strong { color: #fff; }

/* ---------- Tarjetas ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.rejilla-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; }
a.tarjeta:hover { border-color: var(--mar); color: var(--tinta); }
a.tarjeta:hover strong { color: #0A5F85; }
.tarjeta-img { display: block; aspect-ratio: 4 / 3; background: #DDE8EF; overflow: hidden; }
.tarjeta-img.cuadrada { aspect-ratio: 1; }
.tarjeta-img img { width: 100%; height: 100%; object-fit: cover; }
.sin-img { background: linear-gradient(160deg, #1B4F72 0%, #0B3C5D 55%, #F2542D 56%, #FFB703 100%); }
.sin-img.inicial { display: grid; place-items: center; font: 800 3.4rem/1 var(--titulos); color: #fff; background: var(--mar); }
.tarjeta-cuerpo { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.tarjeta-cuerpo strong { font: 700 1.14rem/1.25 var(--titulos); color: var(--mar-noche); }
.tarjeta-txt { color: var(--tinta-suave); font-size: .95rem; line-height: 1.45; }
.tarjeta time { font-size: .86rem; color: var(--tinta-suave); margin-top: auto; padding-top: .4rem; }
.etiqueta { align-self: flex-start; display: inline-block; font-size: .8rem; font-weight: 700; color: var(--turquesa); }
.etiqueta-promo { color: #fff; background: var(--coral); padding: .1rem .55rem; border-radius: 999px; }
.precio { font: 800 1.25rem/1.2 var(--titulos); color: var(--mar-noche); }
.precio .bs { font: 500 .88rem var(--texto); color: var(--tinta-suave); margin-left: .3rem; }
.precio-grande { font-size: 2.1rem; }
.seccion-mar .tarjeta { border-color: transparent; }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.filtros a { padding: .4rem .95rem; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta); text-decoration: none; font-size: .95rem; font-weight: 500; }
.filtros a:hover { border-color: var(--mar); }
.filtros a.activo { background: var(--mar); border-color: var(--mar); color: #fff; }
.filtros a.activo small { color: #C9DBE7; }

.vacio { border: 2px dashed var(--linea); border-radius: var(--radio); padding: 2.2rem 1.5rem; text-align: center; background: var(--blanco); margin: 1rem 0; }
.vacio strong { font: 700 1.25rem var(--titulos); color: var(--mar-noche); display: block; margin-bottom: .3rem; }
.vacio p { color: var(--tinta-suave); margin: 0; }

.paginas { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; }

/* ---------- Historia: línea de tiempo ---------- */
.linea { list-style: none; margin: 2.5rem 0; padding: 0; position: relative; }
.linea::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: linear-gradient(to bottom, var(--mar) 0%, #7A2E6E 45%, var(--coral) 75%, var(--sol) 100%); }
.linea-item { position: relative; padding: 0 0 2.6rem 2.6rem; }
.linea-item::before { content: ""; position: absolute; left: 0; top: .5rem; width: 17px; height: 17px; border-radius: 50%; background: var(--espuma); border: 4px solid var(--mar); }
.linea-anio { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1 var(--titulos); color: var(--coral); margin-bottom: .2rem; }
.linea-cuerpo h2 { margin-top: .2rem; font-size: 1.35rem; }
.linea-cuerpo img { border-radius: var(--radio); margin: .6rem 0 1rem; }
.prosa { max-width: 70ch; }
.prosa p { margin-bottom: 1.05em; }
.seguir { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Personajes y gobernantes ---------- */
.bio-cab { display: flex; gap: 1.5rem; align-items: center; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.bio-foto { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; border: 5px solid var(--sol); }
.bio-cab h1 { margin-bottom: .2em; }
.bio-vida { color: var(--tinta-suave); margin: 0; }
.gob { list-style: none; padding: 0; margin: 2rem 0; }
.gob-item { display: flex; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--linea); align-items: flex-start; }
.gob-foto { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; font-size: 2rem !important; }
.gob-periodo { font: 800 1.2rem var(--titulos); color: var(--coral); }
.gob-item h2 { margin: .1rem 0 .15rem; font-size: 1.35rem; }
.gob-cargo { color: var(--tinta-suave); margin: 0 0 .4rem; }
.nota { color: var(--coral); font-weight: 700; }
.nota-pie { font-size: .9rem; color: var(--tinta-suave); }

/* ---------- Fichas (local, publicación, orden) ---------- */
.ficha-portada { max-height: 420px; overflow: hidden; background: var(--mar-noche); }
.ficha-portada img { width: 100%; height: 420px; object-fit: cover; }
.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; padding-block: 2rem; align-items: start; }
.ficha-cab { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.ficha-cab h1 { margin: 0; }
.ficha-logo { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 1px solid var(--linea); background: #fff; }
.ficha-lado { position: sticky; top: 84px; }
.datos { margin: 1rem 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.datos dt { color: var(--tinta-suave); font-size: .93rem; }
.datos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.galeria { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 1rem; }
.galeria img { border-radius: var(--radio); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pub-titulo { font-size: 1.7rem; }
.noticia-meta { color: var(--tinta-suave); }
.noticia-img { border-radius: var(--radio); margin: 1rem 0 1.5rem; width: 100%; }
.caja { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.caja h2 { margin-top: 0; font-size: 1.35rem; }
.caja-accion { border-left: 6px solid var(--sol); }
.caja summary { cursor: pointer; font-weight: 600; color: #0A5F85; }
.datos-pago { background: var(--espuma); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.datos-pago p:last-child { margin: 0; }
.orden-img { border-radius: 10px; margin-bottom: .8rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.progreso { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; margin: 1.2rem 0 1.8rem; counter-reset: p; }
.progreso li { counter-increment: p; font-size: .85rem; color: var(--tinta-suave); text-align: center; position: relative; padding-top: 2.4rem; }
.progreso li::before { content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--linea); color: var(--tinta-suave); font-weight: 700; line-height: 1.9rem; z-index: 1; }
.progreso li::after { content: ""; position: absolute; top: .9rem; left: -50%; width: 100%; height: 3px; background: var(--linea); }
.progreso li:first-child::after { display: none; }
.progreso li.hecho::before { background: var(--turquesa); color: #fff; content: "✓"; }
.progreso li.hecho::after, .progreso li.actual::after { background: var(--turquesa); }
.progreso li.actual { color: var(--tinta); font-weight: 700; }
.progreso li.actual::before { background: var(--sol); color: var(--mar-noche); }

.historial { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.historial li { padding: .8rem 0; border-top: 1px solid var(--linea); }
.historial li.msg { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0; }
.historial-cab time { color: var(--tinta-suave); font-size: .86rem; margin-left: .4rem; }
.historial p { margin: .2rem 0 0; overflow-wrap: anywhere; }

.estado { display: inline-block; padding: .18rem .7rem; border-radius: 999px; font-size: .84rem; font-weight: 700; background: #E3EBF1; color: var(--mar-noche); white-space: nowrap; }
.estado-pendiente_pago, .estado-pub-pendiente, .estado-pub-borrador { background: #FFF0C2; color: #6B4A00; }
.estado-pago_reportado { background: #FFD9A8; color: #6B3A00; }
.estado-en_custodia, .estado-entregado { background: #CFEDEB; color: #0A5753; }
.estado-completada, .estado-liquidada, .estado-pub-activa, .estado-pub-publicada { background: #CFE9DC; color: #0F4D35; }
.estado-disputa, .estado-pub-rechazada { background: #F9D5D2; color: #7A1A14; }
.estado-reembolsada, .estado-cancelada, .estado-pub-pausada, .estado-pub-vendida, .estado-pub-descartada { background: #E3EBF1; color: #4C6170; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.05rem; }
.form-angosto { max-width: 520px; }
.campo { display: grid; gap: .35rem; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.campo small { display: block; }
.campo legend { padding: 0; margin-bottom: .35rem; }
.campos-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.05rem; }
.opcional { font-weight: 400; font-size: .84rem; color: var(--tinta-suave); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
    font: 400 1rem/1.4 var(--texto); color: var(--tinta); width: 100%; padding: .68rem .8rem;
    border: 1.5px solid #9FB3C1; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sol); outline-offset: 1px; border-color: var(--mar); }
input[type=file] { font: inherit; font-weight: 400; }
textarea { resize: vertical; }
.campo-check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; flex-wrap: wrap; }
.campo-check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--mar); }
.buscador { display: flex; gap: .6rem; margin-bottom: 1.3rem; max-width: 520px; }
.aviso { padding: .85rem 1.1rem; border-radius: 10px; margin: 0 0 1.2rem; font-weight: 600; border-left: 6px solid var(--ok); background: #DDF1E7; color: #0F4D35; white-space: pre-line; }
.aviso.error { border-left-color: var(--error); background: #FBE4E2; color: #7A1A14; }
.mini { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: inline-block; vertical-align: middle; }
.mini-pano { width: 144px; }

.tabla-caja { overflow-x: auto; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); margin-bottom: 1.5rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tabla th { text-align: left; font-size: .84rem; color: var(--tinta-suave); font-weight: 600; padding: .7rem 1rem; border-bottom: 2px solid var(--linea); white-space: nowrap; }
.tabla td { padding: .7rem 1rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .acciones { white-space: nowrap; text-align: right; }
.tabla .acciones > * { margin-left: .7rem; }

/* ---------- Pie ---------- */
.pie { background: var(--mar-noche); color: #BFD2DE; padding: 2.5rem 0; margin-top: 2rem; font-size: .96rem; }
.pie-fila { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2rem; }
.pie strong { font: 800 1.2rem var(--titulos); color: #fff; }
.pie p { margin: .25rem 0; }
.pie a { color: #fff; }
.pie a:hover { color: var(--sol); }

/* ==========================================================================
   Recorrido 360
   ========================================================================== */
.pag-recorrido { background: #000; overflow: hidden; height: 100vh; height: 100dvh; }
.visor { position: fixed; inset: 0; }
.rc-barra { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: linear-gradient(to bottom, rgba(7,41,64,.92), rgba(7,41,64,0)); color: #fff; pointer-events: none; }
.rc-barra > * { pointer-events: auto; }
.rc-volver { font: 800 1.1rem var(--titulos); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.rc-titulo { flex: 1; min-width: 0; text-align: center; pointer-events: none; }
.rc-titulo strong { display: block; font: 700 1.15rem/1.2 var(--titulos); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-titulo span { display: block; font-size: .88rem; color: #D5E3EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-botones { display: flex; gap: .5rem; }
.rc-btn { font: 600 .92rem var(--texto); color: #fff; background: rgba(7,41,64,.72); border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: .42rem 1rem; cursor: pointer; }
.rc-btn[aria-pressed=true] { background: var(--sol); border-color: var(--sol); color: var(--mar-noche); }

.rc-tira { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: .6rem; padding: 2rem 1rem .9rem; overflow-x: auto; background: linear-gradient(to top, rgba(7,41,64,.9), rgba(7,41,64,0)); scrollbar-width: thin; }
.rc-tira[hidden] { display: none; }
.rc-tira button { flex: none; width: 132px; background: rgba(7,41,64,.8); border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; color: #fff; font: 600 .8rem/1.25 var(--texto); text-align: left; }
.rc-tira button img { width: 100%; height: 62px; object-fit: cover; }
.rc-tira button span { display: block; padding: .35rem .5rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-tira button:hover { border-color: rgba(255,255,255,.7); }
.rc-tira button.activo { border-color: var(--sol); }

.rc-mapa { position: fixed; right: 1rem; top: 4.2rem; width: min(360px, calc(100vw - 2rem)); height: 280px; z-index: 25; border-radius: var(--radio); overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.rc-mapa[hidden] { display: none; }

.rc-local { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 100vw); z-index: 30; background: var(--blanco); overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,.4); animation: entrar .25s ease-out; }
.rc-local[hidden] { display: none; }
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-cerrar { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgba(7,41,64,.85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rc-local-portada { width: 100%; height: 190px; object-fit: cover; }
.rc-local-txt { padding: 1.2rem 1.3rem 2rem; }
.rc-local-txt h2 { margin: .1rem 0 .5rem; font-size: 1.6rem; padding-right: 2.5rem; }
.rc-local-txt h3 { margin-top: 1.3rem; }
.rc-local-dato { color: var(--tinta-suave); font-size: .95rem; margin-bottom: .3rem; }
.rc-prods { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.rc-prods li { display: flex; gap: .8rem; align-items: center; }
.rc-prods img, .rc-prod-sin { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; background: #DDE8EF; }
.rc-prods span { display: grid; line-height: 1.3; }
.rc-prods em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--coral); }
.rc-prods b { color: var(--mar-noche); font-family: var(--titulos); }
.rc-local-acciones { display: grid; gap: .6rem; margin-top: 1.3rem; }

.rc-vacio { position: fixed; inset: 0; z-index: 15; display: grid; place-content: center; text-align: center; padding: 2rem; color: #fff; background: linear-gradient(to bottom, #1B2A63, #7A2E6E 45%, #E0475A 75%, #F9893B); }
.rc-vacio[hidden] { display: none; }
.rc-vacio strong { font: 800 clamp(1.6rem, 5vw, 2.4rem)/1.15 var(--titulos); display: block; margin-bottom: .5rem; }

/* Puntos sobre la foto 360 */
.hs { width: 48px; height: 48px; border-radius: 50%; }
.hs:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }
.hs-rotulo { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(7,41,64,.9); color: #fff; font: 600 .82rem/1 var(--texto); padding: .38rem .7rem; border-radius: 999px; pointer-events: none; }
.hs-ir { background: rgba(255,255,255,.22); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: latido 2.2s infinite; display: grid; place-items: center; }
.hs-ir .hs-flecha { width: 13px; height: 13px; border-top: 4px solid #fff; border-left: 4px solid #fff; transform: translateY(3px) rotate(45deg); }
.hs-ir .hs-rotulo { opacity: 0; transition: opacity .15s; }
.hs-ir:hover .hs-rotulo, .hs-ir:focus .hs-rotulo, .hs-admin .hs-rotulo { opacity: 1; }
.hs-ir:hover { background: var(--sol); border-color: var(--sol); }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.hs-local { width: 56px; height: 56px; background: #fff; border: 3px solid var(--sol); box-shadow: 0 4px 14px rgba(0,0,0,.45); display: grid; place-items: center; }
.hs-local img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hs-inicial { font: 800 1.5rem var(--titulos); color: var(--mar); }
.hs-local .hs-rotulo { background: var(--sol); color: var(--mar-noche); font-weight: 700; }
.hs-premium { width: 68px; height: 68px; border-width: 4px; }
.hs-info { width: 34px; height: 34px; background: var(--turquesa); border: 2px solid #fff; display: grid; place-items: center; }
.hs-info .hs-i { color: #fff; font: 800 1rem Georgia, serif; }
.hs-info .hs-rotulo { white-space: normal; width: max-content; max-width: 240px; line-height: 1.35; border-radius: 10px; opacity: 0; transition: opacity .15s; }
.hs-info:hover .hs-rotulo { opacity: 1; }
.hs-nuevo { background: var(--coral); border: 3px solid #fff; }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 900px) {
    .cab-menu { display: block; }
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--mar-noche); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.2rem; }
    .nav.abierto { display: flex; }
    .nav a { padding: .75rem .6rem; }
    .nav-cuenta { margin: .6rem 0 0; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255,255,255,.2); padding-top: .6rem; }
    .ficha-cuerpo { grid-template-columns: 1fr; gap: 1.5rem; }
    .ficha-lado { position: static; }
    .ciudad-rejilla, .pasos, .pie-fila { grid-template-columns: 1fr; }
    .ciudad-item { margin: 0 0 .6rem; }
    .progreso li { font-size: 0; }
    .progreso li.actual { font-size: .85rem; }
    .rc-volver { font-size: 0; gap: 0; }
    .rc-local { top: auto; width: 100vw; max-height: 72vh; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
    .con-local .rc-tira { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Negocios en el mapa: icono por tipo de comercio ---- */
.pin-local { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--turquesa); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(7, 41, 64, .45); }
.pin-local svg { display: block; }
.pin-local.pin-premium { background: var(--sol); color: var(--mar-noche); }
.mapa-locales { height: min(60vh, 460px); min-height: 300px; border-radius: var(--radio); border: 1px solid var(--linea); margin: 0 0 1.8rem; z-index: 0; }
.pin-ficha { display: grid; gap: .25rem; font: 400 .92rem/1.35 var(--texto); color: var(--tinta); min-width: 170px; }
.pin-ficha strong { font-size: 1rem; }
.pin-ficha a { font-weight: 600; margin-top: .2rem; }

/* ---- Guia del municipio Marcano (Directorio.aspx) ---- */
.dir-filtros { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin: 0 0 1.5rem; }
.dir-filtros input[type=search] { font: 400 1rem/1.4 var(--texto); color: var(--tinta); width: 100%; padding: .68rem .8rem; border: 1.5px solid #9FB3C1; border-radius: 10px; background: #fff; }
.dir-cuenta { color: var(--tinta-suave); font-size: .95rem; margin: 0 0 .8rem; }
.dir-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
.dir-ficha { display: flex; gap: .9rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem; scroll-margin-top: 5rem; }
.dir-ficha[hidden] { display: none; }
.dir-ficha.dir-premium { border-color: var(--sol); border-width: 2px; }
.dir-ficha.dir-resaltada { outline: 3px solid var(--sol); outline-offset: 2px; }
.dir-icono { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--turquesa); color: #fff; }
.dir-icono svg { width: 22px; height: 22px; }
.dir-ficha[data-tipo=lugar] .dir-icono { background: var(--mar); }
.dir-cuerpo { min-width: 0; flex: 1; }
.dir-cuerpo h2 { font-size: 1.12rem; margin: .1rem 0 .3rem; overflow-wrap: anywhere; }
.dir-cuerpo p { margin: 0 0 .35rem; font-size: .95rem; }
.dir-dato { color: var(--tinta-suave); }
.dir-contacto { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.dir-contacto a { display: inline-block; padding: .28rem .7rem; border: 1.5px solid var(--linea); border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--mar); background: var(--espuma); overflow-wrap: anywhere; }
.dir-contacto a:hover { border-color: var(--mar); }
.dir-acciones { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem !important; font-weight: 600; }
.pin-local.pin-lugar { background: var(--mar); }
@media (max-width: 760px) {
    .dir-filtros { grid-template-columns: 1fr; }
    .dir-lista { grid-template-columns: 1fr; }
}

/* Negocio sin suscripcion: marcador mas discreto */
.pin-local.pin-basico { background: #5E7482; transform: scale(.82); }

/* ==========================================================================
   Ajustes para teléfonos (van al final para ganar a las reglas anteriores)
   ========================================================================== */
body { overflow-wrap: break-word; }
h1, h2, h3, .tarjeta-cuerpo strong { overflow-wrap: anywhere; }
video, iframe, svg { max-width: 100%; }
input[type=search], input[type=tel], input[type=url] {
    font: 400 1rem/1.4 var(--texto); color: var(--tinta); width: 100%; padding: .68rem .8rem;
    border: 1.5px solid #9FB3C1; border-radius: 10px; background: #fff;
}
input[type=file] { width: 100%; max-width: 100%; min-width: 0; }
select { text-overflow: ellipsis; }
/* Las rejillas nunca piden mas ancho del que hay */
.rejilla { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.rejilla-4 { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.galeria { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.campos-2 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.dir-lista { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.ficha-cab > *, .gob-item > *, .bio-cab > *, .datos dd, .tarjeta-cuerpo, .form > * { min-width: 0; }
.ficha-logo, .bio-foto, .gob-foto { flex: none; }
.buscador { flex-wrap: wrap; }
.buscador input { flex: 1 1 180px; min-width: 0; }
/* position: relative hace que la caja recorte tambien los textos ocultos para lectores de pantalla;
   sin eso, una tabla ancha estiraba toda la pagina hacia la derecha */
.tabla-caja { -webkit-overflow-scrolling: touch; position: relative; }
.solo-lector { white-space: nowrap; margin: -1px; padding: 0; border: 0; }
/* Los botones largos parten en dos lineas en vez de salirse */
.btn { max-width: 100%; white-space: normal; height: auto; }
.datos { grid-template-columns: auto minmax(0, 1fr); }
.marca { min-height: 44px; }
/* Los mapas no deben pintarse por encima de la cabecera fija */
.leaflet-container { isolation: isolate; }
.mapa-pista { position: absolute; left: 50%; bottom: 1.9rem; transform: translateX(-50%); z-index: 900; background: rgba(7, 41, 64, .88); color: #fff; font: 600 .82rem/1.2 var(--texto); padding: .4rem .8rem; border-radius: 999px; pointer-events: none; white-space: nowrap; }

@media (max-width: 900px) {
    /* 1fr a secas deja crecer la columna con su contenido; minmax(0, 1fr) la mantiene dentro de la pantalla */
    .ficha-cuerpo, .ciudad-rejilla, .pasos, .pie-fila { grid-template-columns: minmax(0, 1fr); }
    .nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
    .cab-menu { min-height: 44px; padding: .5rem 1rem; }
}
@media (max-width: 760px) {
    .dir-filtros, .dir-lista { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .portada { min-height: min(78vh, 640px); min-height: min(78svh, 640px); }
    .portada-texto { padding: 2rem 0 2.4rem; }
    .portada p { font-size: 1.08rem; }
    .portada-acciones .btn { flex: 1 1 100%; }
    .entrada { font-size: 1.08rem; }
    .ficha-portada { max-height: 240px; }
    .ficha-portada img { height: 240px; }
    .ficha-cab { align-items: flex-start; }
    .ficha-logo { width: 64px; height: 64px; border-radius: 14px; }
    .precio-grande { font-size: 1.8rem; }
    .caja { padding: 1.05rem 1rem; }
    .bio-foto { width: 120px; height: 120px; }
    .gob-item { gap: .85rem; }
    .gob-foto { width: 56px; height: 56px; }
    .linea-item { padding-left: 2.1rem; }
    .paginas { flex-wrap: wrap; gap: .8rem; }
    .mapa-locales { height: 52vh; min-height: 280px; }
    /* Marketplace: dos columnas de tarjetas compactas */
    .rejilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .rejilla-4 .tarjeta-cuerpo { padding: .7rem .75rem .9rem; }
    .rejilla-4 .tarjeta-cuerpo strong { font-size: 1rem; }
    .rejilla-4 .precio { font-size: 1.08rem; }
    .rejilla-4 .precio .bs { display: block; margin-left: 0; }
    /* Los botones principales de un formulario ocupan todo el ancho */
    .form > .btn, .form > input.btn, .form > p > .btn { width: 100%; }
    .btn-peligro { margin-left: 0; }
    /* Pasos de la orden: solo los circulos, y el nombre del paso actual debajo, a todo el ancho */
    .progreso { position: relative; padding-bottom: 2rem; }
    .progreso li { position: static; padding-top: 0; height: 1.9rem; }
    .progreso li::before { position: relative; display: block; left: auto; transform: none; margin: 0 auto; }
    .progreso li::after { display: none; }
    .progreso li.actual { font-size: 0; }
    .progreso li.actual span, .progreso-actual { position: absolute; left: 0; right: 0; bottom: 0; font-size: .9rem; font-weight: 700; color: var(--tinta); text-align: center; }
    /* Recorrido */
    .rc-barra { gap: .5rem; padding: .5rem .6rem; }
    .rc-titulo strong { font-size: 1rem; }
    .rc-titulo span { font-size: .8rem; }
    .rc-botones { gap: .35rem; }
    .rc-mapa { left: .6rem; right: .6rem; width: auto; top: 4rem; height: min(260px, 40vh); }
    .rc-tira button { width: 116px; }
    .hs-rotulo { max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
}
/* Teléfono acostado: el panel del local va a un lado en vez de tapar la foto desde abajo */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
    .rc-local { top: 0; left: auto; width: min(360px, 58vw); max-height: none; border-radius: 0; }
    .rc-local-portada { height: 120px; }
    .rc-tira { padding-top: 1rem; }
    .rc-tira button img { height: 44px; }
    .rc-mapa { left: auto; width: min(320px, 50vw); height: 55vh; }
    .portada { min-height: 100vh; min-height: 100svh; }
}
/* Pantallas con muesca o barra de gestos */
@supports (padding: max(0px)) {
    .rc-barra { padding-top: max(.5rem, env(safe-area-inset-top)); padding-left: max(.6rem, env(safe-area-inset-left)); padding-right: max(.6rem, env(safe-area-inset-right)); }
    .rc-tira { padding-bottom: max(.9rem, env(safe-area-inset-bottom)); padding-left: max(1rem, env(safe-area-inset-left)); }
    .rc-local-txt { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}
/* Dedos en vez de ratón: todo lo que se toca mide al menos unos 44 px */
@media (pointer: coarse) {
    .nav a { padding-block: .8rem; }
    .filtros a { padding: .62rem 1.05rem; }
    .dir-contacto a { padding: .58rem .95rem; font-size: .92rem; }
    button.enlace, .dir-acciones a, .seccion-cab > a, .pie a, .tabla .acciones a { display: inline-flex; align-items: center; min-height: 44px; }
    .tabla .acciones > * { margin-left: 1rem; }
    .caja summary { padding: .6rem 0; }
    .rc-btn { padding: .7rem 1.05rem; }
    .rc-volver { min-width: 44px; min-height: 44px; justify-content: center; }
    .rc-cerrar { width: 2.75rem; height: 2.75rem; }
    body .leaflet-touch .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: 22px; }
    p > a:only-child, .panel-usuario a { display: inline-block; padding-block: .55rem; }
    input[type=file] { padding: .55rem 0; }
    .campo-check input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
}
/* Sin ratón no hay "pasar por encima": los rótulos de las flechas se ven siempre y los de texto al tocarlos */
@media (hover: none) {
    .hs-ir .hs-rotulo { opacity: 1; }
    .hs-info:focus .hs-rotulo, .hs-info:active .hs-rotulo { opacity: 1; }
}
.sin-img.inicial { overflow: hidden; }
/* Recorrido: los controles propios del visor bajan para no quedar debajo de la barra; en teléfonos se amplía con dos dedos */
.pag-recorrido .pnlm-controls-container { top: 4.4rem; left: .6rem; }
@media (pointer: coarse) {
    .pag-recorrido .pnlm-zoom-controls { display: none !important; }
}

/* ---- Aplicacion instalable y avisos: barra inferior ---- */
.app-barra { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 2000; max-width: 560px; margin-inline: auto; background: var(--mar-noche); color: #fff; border-radius: var(--radio); padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); }
.app-barra p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.45; }
.app-botones { display: flex; flex-wrap: wrap; gap: .6rem; }
.app-botones .btn { flex: 1 1 140px; padding: .7rem 1rem; }
.pie button.enlace { color: #fff; text-align: left; }
.pie button.enlace:hover { color: var(--sol); }
.push-previa { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .8rem; max-width: 380px; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: .9rem; box-shadow: 0 6px 20px rgba(7, 41, 64, .12); }
.push-previa img.push-icono { width: 48px; height: 48px; border-radius: 10px; }
.push-previa strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.push-previa span { display: block; font-size: .92rem; color: var(--tinta-suave); overflow-wrap: anywhere; }
.push-previa img.push-imagen { grid-column: 1 / -1; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; }

/* ---- Verificacion de vendedores ---- */
.doc-fotos { display: flex; flex-wrap: wrap; gap: .8rem; margin: .6rem 0 1rem; }
.doc-fotos img { width: min(260px, 100%); max-height: 260px; object-fit: contain; background: #0f1d27; border-radius: 10px; border: 1px solid var(--linea); }
.ia-informe { border-left: 6px solid #9FB3C1; background: var(--espuma); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 .8rem; }
.ia-informe p { margin: .3rem 0 0; white-space: pre-line; font-size: .95rem; }
.ia-informe.ia-conforme { border-left-color: var(--ok); }
.ia-informe.ia-no_conforme { border-left-color: var(--error); background: #FBE4E2; }
.ia-informe.ia-dudoso { border-left-color: var(--sol); background: #FFF6D9; }
.verificado { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--ok); }
.verificado::before { content: "✓"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: .8rem; }

/* ---- Selector de municipio en la cabecera ---- */
.nav-muni { display: inline-flex; align-items: center; margin-right: .4rem; }
.nav-muni select { width: auto; max-width: 190px; padding: .4rem 1.9rem .4rem .7rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background-color: rgba(255,255,255,.1); color: #fff; font: 600 .95rem var(--texto); }
.nav-muni select option { color: var(--tinta); }
@media (max-width: 900px) {
    .nav-muni { margin: .3rem 0 .5rem; }
    .nav-muni select { width: 100%; max-width: none; min-height: 44px; }
}
@media (max-width: 900px) {
    /* El menu abierto es una sola columna que se desplaza; sin esto, en pantallas bajas se partia en dos columnas */
    .nav { flex-wrap: nowrap; }
    .nav > * { flex: none; }
}
