/* BANBAS TRAVEL - Estilos de páginas interiores (complementa estilos.css) */
.cab-pagina { background: var(--niebla); padding-block: 3.5rem 2.5rem; }
.cab-pagina h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cab-pagina p { color: var(--texto-suave); max-width: 60ch; margin: 0 0 1em; }
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ficha { display: block; border: 1px solid #e2ebef; border-radius: 8px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; }
.ficha .foto { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--marino-claro), var(--turquesa)); }
.ficha .foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha .t { padding: 1.1rem 1.2rem 1.3rem; }
.ficha .t h3 { margin-bottom: .3rem; }
.ficha .t p { color: var(--texto-suave); font-size: .95rem; margin: 0; }
a.ficha:hover { border-color: var(--turquesa); }
.aviso { background: var(--niebla); border-left: 4px solid var(--turquesa); padding: 1rem 1.2rem; border-radius: 4px; color: var(--texto-suave); margin-block: 1.8rem; }
.articulo { max-width: 760px; }
.articulo h2 { margin-top: 1.6em; }
.foto-art { border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; }
#q { width: 100%; padding: .9rem 1.2rem; font-size: 1rem; border: 1px solid #cfdce3; border-radius: 999px; margin-bottom: 1.8rem; }
.oculto { position: absolute; left: -9999px; }
@media (max-width: 820px) { .rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rejilla { grid-template-columns: 1fr; } }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 1.5rem; justify-content: center; margin-block: 1rem 2rem; }
.videos video { width: 100%; height: auto; border-radius: 8px; background: #000; }
.videos figcaption { color: var(--texto-suave); font-size: .9rem; margin-top: .5rem; }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.filtros { border: 1px solid #e2ebef; border-radius: 8px; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; background: var(--niebla); }
.grupo { margin-bottom: 1rem; } .grupo h3 { font-size: 1rem; margin-bottom: .5rem; font-family: var(--sans); }
.opciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.opciones label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #cfdce3; border-radius: 999px; padding: .4rem .9rem; font-size: .92rem; cursor: pointer; background: #fff; }
.opciones input { accent-color: var(--turquesa-osc); }
.opciones label:has(input:checked) { background: var(--marino); color: #fff; border-color: var(--marino); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: .7rem 0 0; }
.chips li { font-size: .78rem; background: var(--niebla); border-radius: 999px; padding: .15rem .6rem; color: var(--texto-suave); }
.ficha .foto { display: grid; place-items: center; } .sin, .sin-foto { color: #fff; font-size: .9rem; opacity: .9; }
.sin-foto { aspect-ratio: 16 / 8; display: grid; place-items: center; border-radius: 8px; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--marino-claro), var(--turquesa)); }
.datos { display: grid; grid-template-columns: 190px 1fr; gap: .3rem 1.2rem; margin: 0 0 1.5rem; } .datos dt { font-weight: 700; color: var(--marino); } .datos dd { margin: 0 0 .9rem; }
.b { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; margin-right: .4rem; }
.b.si { background: #d9f3ef; color: #0b5f5b; } .b.no { background: #fde8e8; color: #8a1f1f; } .b.q { background: #fff3cd; color: #7a5b00; }
.adv { border-left: 4px solid #e0a100; background: #fff9e6; padding: 1rem 1.2rem 1rem 2.2rem; border-radius: 4px; }
@media (max-width: 560px) { .datos { grid-template-columns: 1fr; } }
/* Galería de fotos (mantiene la proporción original de cada imagen) */
.galeria { columns: 3 260px; column-gap: 1rem; margin-block: 1rem 1.4rem; }
.galeria figure { margin: 0 0 1rem; break-inside: avoid; border-radius: 8px; overflow: hidden; border: 1px solid #e2ebef; background: #fff; }
.galeria img { display: block; width: 100%; height: auto; }
.galeria figcaption { padding: .6rem .8rem .7rem; font-size: .85rem; color: var(--texto-suave); }
/* Mercados de Mallorca */
.leyenda { display: grid; gap: .5rem; margin: 0 0 1.2rem; } .leyenda p { margin: 0; font-size: .95rem; }
.merc-etq { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; margin-right: .4rem; white-space: nowrap; }
.merc-etq.conf { background: #d9f3ef; color: #0b5f5b; border: 1px solid #0e8a86; } .merc-etq.conf::before { content: "✓ "; }
.merc-etq.pend { background: #fff3cd; color: #7a5b00; border: 1px dashed #b78300; } .merc-etq.pend::before { content: "! "; }
#filtros-mercados select { width: 100%; max-width: 360px; font: inherit; padding: .55rem .7rem; border: 1px solid #cfdce3; border-radius: 8px; background: #fff; color: var(--texto); }
#filtros-mercados h3 label { font: inherit; }
#filtros-mercados .contador { margin: .2rem 0 .8rem; }
.mercados-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.merc { border: 1px solid #e2ebef; border-left: 5px solid #0e8a86; border-radius: 8px; background: #fff; padding: 1rem 1.1rem 1.1rem; }
.merc.pend { border-left: 5px dashed #b78300; background: #fffdf5; }
.merc[hidden], #vacio-mercados[hidden], #sin-datos-mercados[hidden] { display: none; }
.merc-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.merc-mun { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-suave); }
.merc h3 { font-size: 1.3rem; margin: .3rem 0 .1rem; } .merc-sub { margin: 0 0 .3rem; font-weight: 600; color: var(--marino-claro); }
.merc dl { margin: .6rem 0 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: .25rem .6rem; font-size: .92rem; }
.merc dt { font-weight: 700; color: var(--marino); } .merc dd { margin: 0; overflow-wrap: anywhere; }
.merc .dia { display: inline-block; background: var(--marino); color: #fff; border-radius: 6px; padding: 0 .45rem; font-size: .82rem; margin: 0 .15rem .15rem 0; }
.merc .et { font-weight: 600; } .merc-nota { margin: .6rem 0 0; font-size: .85rem; color: var(--texto-suave); } .merc-ficha { margin: .7rem 0 0; font-size: .92rem; }
.merc-lista { padding-left: 1.1rem; } .merc-lista li { margin-bottom: .8rem; } .merc-lista .dia { font-weight: 700; }
.sin-datos { line-height: 1.9; }
@media (max-width: 960px) { .mercados-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mercados-rejilla { grid-template-columns: 1fr; } .merc dl { grid-template-columns: 1fr; gap: 0; } .merc dd { margin-bottom: .5rem; } #filtros-mercados select { max-width: none; } .opciones label { padding: .5rem .9rem; } }

/* Páginas propias de mercado */
.merc-foto-hueco { margin: 0 0 1.2rem; }
.merc-foto-hueco .hueco { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 2px dashed #b9cbd3; border-radius: 12px; background: #f3f8fa; color: #5a717b; font-weight: 600; }
.articulo h1 .sub { display: block; font-size: .55em; font-weight: 600; opacity: .85; }
.cab-pagina h1 .sub { display: block; font-size: .55em; font-weight: 600; opacity: .9; }
.articulo .botones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* Ronda 14: nota discreta para datos pendientes de confirmar (sustituye a las marcas visibles «[VERIFICAR]») */
.por-confirmar { display: inline-block; padding: .05em .55em; margin: 0 .1em; border: 1px dashed #8a97a6; border-radius: 999px; background: #eef2f6; color: #3d4a5a; font-size: .82em; font-style: normal; font-weight: 600; line-height: 1.5; vertical-align: baseline; }

/* Ronda 14: tablas de guía (gastronomía, consejos) */
.tabla-guia { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; }
.tabla-guia th, .tabla-guia td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid #dfe8ec; }
.tabla-guia th { background: var(--niebla); color: var(--texto); font-weight: 700; }
.tabla-guia caption { text-align: left; font-weight: 700; padding: .4rem 0; }
@media (max-width: 640px) { .tabla-guia { font-size: .9rem; } .tabla-guia th, .tabla-guia td { padding: .45rem .4rem; } }
.articulo .nota-fuente { font-size: .88rem; color: var(--texto-suave); }
.articulo h2[id] { scroll-margin-top: 96px; }

.merc-etq.conf.vig { background: #d6f2dd; color: #0a5a2a; border: 1px solid #15803d; }
.merc-etq.conf.osf { background: #e3eefb; color: #1b4a7a; border: 1px solid #3b7bbf; white-space: normal; }
.merc-etq.conf.osf::before { content: "○ "; }

/* Ronda visual 1 (18/11/2026): espacio de cabecera, etiquetas compactas en tablas y pista de desplazamiento */
@media (max-width: 640px) {
  .cab-pagina { padding-block: 2.2rem 1.6rem; }
  .tabla-guia .merc-etq { display: block; width: fit-content; max-width: 100%; margin: .3rem 0 0; font-size: .68rem; padding: .1rem .45rem; line-height: 1.25; white-space: normal; }
  .tabla-guia .por-confirmar { font-size: .74em; }
}
/* Pista de desplazamiento lateral: sombra en el borde donde queda contenido oculto (solo CSS) */
div[style*="overflow-x:auto"] {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 2.2rem 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 2.2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15,40,60,.28), rgba(15,40,60,0)) left center / .9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15,40,60,.28), rgba(15,40,60,0)) right center / .9rem 100% no-repeat scroll;
  -webkit-overflow-scrolling: touch;
}

/* Ronda visual 3 (18/11/2026): bloque «Antes de ir» con tarjeta propia e iconos (solo CSS; orden: llegar, comprobar, datos) */
#antes-de-ir.aviso { background: #fff; border: 1px solid #cfe0e6; border-left: 5px solid #0e8a86; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 2px 10px rgba(15,40,60,.07); }
#antes-de-ir h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
#antes-de-ir ul { list-style: none; padding: 0; margin: 0; }
#antes-de-ir li { position: relative; padding-left: 2.1rem; margin: 0 0 .75rem; }
#antes-de-ir li:last-child { margin-bottom: 0; }
#antes-de-ir li::before { content: ""; position: absolute; left: 0; top: .12rem; width: 1.35rem; height: 1.35rem; background-color: #0e8a86;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
#antes-de-ir li:nth-child(1) { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>"); }
#antes-de-ir li:nth-child(2) { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/></svg>"); }
#antes-de-ir li:nth-child(3) { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 8v10H5V10z'/></svg>"); }
#antes-de-ir li:nth-child(3):not(:last-child) { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/></svg>"); }
#antes-de-ir li:nth-child(4):last-child { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 8v10H5V10z'/></svg>"); }

/* Ronda integral 1 (19/11/2026): una sola foto en galería ocupa el ancho útil (antes quedaba a un tercio en escritorio) */
.galeria:has(> figure:only-child) { columns: 1; max-width: 680px; }
.galeria:has(> figure:only-child) img { max-height: 420px; object-fit: cover; }

/* Ronda iconos 1 (19/11/2026): icono por tipo de mercado (primer tipo de data-tipos) y lista compacta en móvil. Solo CSS. */
.merc .chips li:first-child { display: inline-flex; align-items: center; gap: .3rem; }
.merc .chips li:first-child::before { content: ""; width: .95em; height: .95em; background-color: #0e8a86; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.merc[data-tipos^="semanal"] { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9l1.5-5h15L21 9v1a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0zM5 13v8h14v-8h-2v6H7v-6z'/></svg>"); }
.merc[data-tipos^="nocturno"] { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/></svg>"); }
.merc[data-tipos^="artesania"] { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4z'/></svg>"); }
.merc[data-tipos^="segunda"] { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill-rule='evenodd' d='M3 12.6V4a1 1 0 0 1 1-1h8.6l8.4 8.4a1.4 1.4 0 0 1 0 2L14.4 21a1.4 1.4 0 0 1-2 0zM7.5 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/></svg>"); }
.merc[data-tipos^="feria"] { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 3v18h2v-7h11l-2-4 2-4H7V3z'/></svg>"); }
@media (max-width: 600px) {
  .merc { padding: .75rem .85rem .85rem; }
  .merc h3 { font-size: 1.12rem; margin: .2rem 0 0; }
  .merc-sub { margin: 0 0 .15rem; font-size: .9rem; }
  .merc .chips { margin: .4rem 0 0; }
  .merc dl { grid-template-columns: 4.3rem minmax(0, 1fr); gap: .15rem .5rem; margin-top: .45rem; font-size: .88rem; }
  .merc dd { margin-bottom: .25rem; }
  .merc-nota { margin: .4rem 0 0; font-size: .8rem; }
  .merc-ficha { margin: .4rem 0 0; font-size: .86rem; }
  .mercados-rejilla { gap: .8rem; }
}
