/* Día sin IVA MediaMarkt (dia-sin-iva-mediamarkt.php): ventana en portada (carrusel de dos filas) y entrada. */
.ojm-ventana { --mm: #df0000; background: #fff; border: 1px solid #d5dfeb; border-top: 5px solid var(--mm); border-radius: 1rem; padding: 1rem 1.2rem 1.1rem; box-shadow: 0 6px 22px #17212d14; }
.ojm-kicker { color: var(--mm, #df0000); }
.ojm-cuenta { color: #17212d; letter-spacing: .06em; }
.ojm-cabeza { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.ojm-cabeza h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; margin-top: .15rem; }
.ojm-cabeza h2 a { color: inherit; text-decoration: none; }
.ojm-ver { font-weight: 700; font-size: .9rem; color: #005cae; white-space: nowrap; }
.ojm-barra { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }

.ojm-pills { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.ojm-pills::-webkit-scrollbar { display: none; }
.ojm-pill { flex: none; border: 1px solid #d5dfeb; background: #f4f7fb; color: #17212d; border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; font-weight: 700; cursor: pointer; }
.ojm-pill small { font-weight: 600; color: #6a7581; }
.ojm-pill.is-on { background: #df0000; border-color: #df0000; color: #fff; }
.ojm-pill.is-on small { color: #ffd9d9; }
.ojm-flechas { display: flex; gap: .3rem; flex: none; }
.ojm-flecha { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid #d5dfeb; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #17212d; }
.ojm-flecha:hover { background: #f2f6fb; }

/* Carrusel: dos filas que se desplazan en horizontal; cada ficha es nuestra imagen con precio (1200×850). */
.ojm-carrusel { list-style: none; margin: 0; padding: 0 0 .3rem; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - 3 * .7rem) / 4); gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ojm-carrusel .ojm-ficha { scroll-snap-align: start; min-width: 0; }
.ojm-ficha[hidden] { display: none; }
.ojm-ficha a { display: flex; flex-direction: column; gap: .25rem; height: 100%; color: inherit; text-decoration: none; border-radius: .6rem; padding: .25rem; transition: background .15s; }
.ojm-ficha a:hover { background: #f2f6fb; }
.ojm-img { display: block; aspect-ratio: 1200 / 850; border-radius: .5rem; overflow: hidden; background: #f4f7fb; }
.ojm-img img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }
.ojm-nom { font-size: .8rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ojm-precio { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; font-size: .74rem; color: #6a7581; }
.ojm-precio strong { font-size: 1rem; color: #df0000; }
.ojm-precio del { white-space: nowrap; }
.ojm-ir { display: none; }

/* Entrada: rejilla con fichas más grandes y botón */
.ojm-entrada .ojm-pills { margin: 1rem 0 .9rem; }
.ojm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.ojm-grid .ojm-ficha a { border: 1px solid #d5dfeb; background: #fff; padding: .4rem .4rem .55rem; }
.ojm-grid .ojm-nom { font-size: .9rem; }
.ojm-grid .ojm-ir { display: inline-block; margin-left: auto; background: #df0000; color: #fff; font-weight: 700; font-size: .78rem; border-radius: .4rem; padding: .25rem .55rem; }
.ojm-btn { background: #df0000; border-color: #df0000; color: #fff; }
.ojm-fin-aviso { background: #fff3cd; border: 1px solid #f0d58a; border-radius: .6rem; padding: .6rem .8rem; font-weight: 600; }

@media (max-width: 1100px) {
  .ojm-carrusel { grid-auto-columns: calc((100% - 2 * .7rem) / 3); }
}
@media (max-width: 625px) {
  .ojm-ventana { padding: .9rem .8rem; }
  .ojm-cabeza { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .ojm-flechas { display: none; }
  .ojm-carrusel { grid-auto-columns: 72%; scrollbar-width: none; }
  .ojm-carrusel::-webkit-scrollbar { display: none; }
  .ojm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ojm-grid .ojm-ir { display: none; }
  .ojm-grid .ojm-nom { font-size: .8rem; }
}

/* El tema da sangría y subrayado a las listas y enlaces del contenido de las entradas. */
.ojm-grid, .ojm-carrusel { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.ojm-grid > li, .ojm-carrusel > li { margin: 0 !important; padding: 0 !important; }
.ojm-grid > li::marker, .ojm-carrusel > li::marker { content: none; }
.ojm-ficha a, .ojm-ficha a:hover { text-decoration: none !important; }
.ojm-ficha .ojm-nom { color: #17212d; }
