/* Menú Web (15/10): fotos de la web pública. Ver static/web.js */
.web .page-head { align-items: flex-start; }
.web-cab-acc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.web-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.web-pub.ok { color: var(--ok); }
.web-pub.mal { color: var(--bad); }
.web-subida { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px; overflow: hidden; font-weight: 600; box-shadow: var(--shadow); }
.web-subida span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.web-subida i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); opacity: .55; transition: width .3s; }
.ic.gira { animation: spin 1s linear infinite; }
.toast.aviso { border-left: 4px solid var(--warn); }
.web-aviso { color: var(--warn); display: flex; gap: 5px; align-items: flex-start; font-size: 12.5px; margin: 6px 0 0; }
.web-aviso .ic { flex: none; margin-top: 1px; }
.web-pie { margin-top: 22px; display: flex; gap: 6px; align-items: flex-start; }

/* huecos de una foto: portada y Servicios */
.web-dos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.web-hueco { transition: box-shadow .2s, outline-color .2s; outline: 2px dashed transparent; outline-offset: -2px; }
.web-hueco.sobre, [data-soltar].sobre { outline: 2px dashed var(--accent) !important; background: var(--accent-soft); }
.web-hueco-cab { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.web-hueco-cab h3 { margin: 0 0 4px; }
.web-hueco-cab p { margin: 0; max-width: 52ch; }
.web-hueco-vistas { display: flex; gap: 12px; align-items: flex-end; }
.web-hueco-vistas figure, .web-enc-vistas figure { margin: 0; flex: 1; min-width: 0; }
.web-hueco-vistas figure:has(div[style*="aspect-ratio:0.5"]) { flex: .3; }
.web-hueco-vistas div, .web-enc-vistas div { overflow: hidden; border-radius: 8px; background: var(--beige-soft); }
.web-hueco-vistas img, .web-enc-vistas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-hueco-vistas figcaption, .web-enc-vistas figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }
.web-hueco-acc { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.web-vacio { border: 2px dashed var(--line); border-radius: 10px; padding: 34px 16px; text-align: center; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; }
.web-otras { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.web-otras > div { display: flex; gap: 10px; flex-wrap: wrap; }
.web-otra { width: 120px; }
.web-otra img { width: 120px; height: 80px; object-fit: cover; border-radius: 7px; display: block; background: var(--beige-soft); }
.web-otra > div { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* productos */
.web-prods { list-style: none; margin: 0; padding: 0; }
.web-prods li { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-top: 1px solid var(--line-2); border-radius: 8px; }
.web-prods li:first-child { border-top: 0; }
.web-prods li > .grow { display: flex; flex-direction: column; min-width: 0; }
.web-prod-img { width: 76px; height: 56px; border-radius: 7px; overflow: hidden; background: var(--beige-soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.web-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.web-prod-acc { display: flex; gap: 6px; align-items: center; }

/* proyectos y clientes */
.web-soltar { display: flex; gap: 14px; align-items: center; border: 2px dashed #cfc6b6; background: var(--panel); border-radius: 12px; padding: 22px 20px; cursor: pointer; margin-bottom: 10px; transition: border-color .15s, background .15s; }
.web-soltar:hover { border-color: var(--accent); }
.web-soltar > .ic { width: 34px; height: 34px; color: var(--accent); flex: none; }
.web-soltar div { display: flex; flex-direction: column; }
.web-soltar span { color: var(--muted); font-size: 13.5px; }
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.web-grid.logos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.web-card { min-width: 0; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 7px; position: relative; transition: opacity .2s, transform .15s; }
.web-card.off .web-img img { opacity: .38; filter: grayscale(.7); }
.web-card.arrastrando { opacity: .4; }
.web-card.antes::before, .web-card.despues::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: var(--accent); }
.web-card.antes::before { left: -9px; } .web-card.despues::after { right: -9px; }
.web-img { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--beige-soft); cursor: grab; }
.web-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.web-img.logo { background: #fff; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; }
.web-img.logo img { object-fit: contain; padding: 14px; }
.web-num { position: absolute; left: 6px; top: 6px; background: rgba(29,29,27,.78); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.web-oculta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(29,29,27,.82); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 4px 11px; display: inline-flex; gap: 5px; align-items: center; }
.web-grip { position: absolute; right: 6px; top: 6px; background: rgba(255,255,255,.9); border-radius: 6px; display: grid; place-items: center; width: 26px; height: 26px; color: var(--ink-2); }
.web-tit { border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; font-size: 13.5px; background: var(--bg); width: 100%; }
.web-tit:hover { border-color: var(--line); }
.web-tit:focus { outline: 0; border-color: var(--accent); background: #fff; }
.web-acc { display: flex; align-items: center; gap: 2px; }
.web-acc .iconbtn:disabled { opacity: .3; cursor: default; }
/* interruptor */
.web-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; }
.web-sw b { font-weight: 600; }
.web-acc .iconbtn { width: 28px; height: 28px; }
.web-sw input { position: absolute; opacity: 0; pointer-events: none; }
.web-sw span { width: 34px; height: 20px; border-radius: 999px; background: #cfc8bc; position: relative; transition: background .2s; flex: none; }
.web-sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.web-sw input:checked + span { background: var(--ok); }
.web-sw input:checked + span::after { transform: translateX(14px); }
.web-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* encuadre */
.web-enc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.web-enc-foto { position: relative; cursor: crosshair; touch-action: none; user-select: none; border-radius: 8px; overflow: hidden; }
.web-enc-foto img { width: 100%; display: block; pointer-events: none; }
.web-enc-p { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.web-enc-p::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.web-enc-vistas { display: flex; flex-wrap: wrap; gap: 10px; }
.web-enc-vistas figure { flex: 1 1 120px; }

.web .tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
@media (max-width: 860px) {
  .web-sw b { display: none; }
  .web-card { padding: 6px; }
  .web-dos, .web-enc { grid-template-columns: 1fr; }
  .web-hueco-cab { flex-direction: column; }
  .web-prod-acc .btn span { display: none; }
  .web-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .web-grid.logos { grid-template-columns: repeat(2, 1fr); }
  .web-cab-acc { justify-content: flex-start; }
}
/* 18/10: fotos repetidas o prestadas */
.web-avisos { margin: 0 0 14px; }
.web-avisos ul { margin: 8px 0 6px; padding-left: 18px; display: grid; gap: 6px; }
.web-avisos li .btn { margin-left: 6px; vertical-align: middle; }
.web-avisos p { margin: 6px 0 0; }
