/* IAFIDI · página de ofertas (se carga después de estilos.css) */
.of-hero { position: relative; background: var(--gris); overflow: hidden; padding: 64px 0 56px; }
.of-hero::after { content: ""; position: absolute; right: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(227,10,30,.12), transparent 65%); }
.of-hero .contenedor { position: relative; z-index: 1; }
.of-hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.of-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: var(--t2); }
.of-meta span { display: inline-flex; align-items: center; gap: 8px; }
.of-meta span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }

.filtros { position: sticky; top: 72px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.filtros .contenedor { display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.filtros .contenedor::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--negro); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--negro); }
.chip[aria-pressed="true"] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.chip small { font-weight: 600; opacity: .7; margin-left: 4px; }

.of-cat { padding: 48px 0 8px; }
.of-cat h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; font-style: italic; letter-spacing: -.01em; margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px; }
.of-cat h2 small { font-size: 14px; font-style: normal; font-weight: 600; color: var(--t3); }
.of-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 20px; }

.of-card { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.of-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.of-card.destacada { border: 2px solid var(--rojo); }
.of-foto { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--gris); }
.of-foto img { max-height: 100%; width: auto; object-fit: contain; }
.of-foto .sin-foto { width: 64px; height: 64px; opacity: .25; }
.of-sello { position: absolute; top: 12px; left: 12px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.of-sello.gris { background: var(--negro); }
.of-cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.of-cuerpo h3 { font-size: 17.5px; font-weight: 800; line-height: 1.25; }
.of-ideal { color: var(--t2); font-size: 14px; margin-top: 4px; }
.of-puntos { list-style: none; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.of-puntos li { position: relative; padding-left: 18px; }
.of-puntos li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rojo); }
.of-consu { margin-top: 14px; background: var(--gris); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.of-consu b { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); margin-bottom: 4px; }
.of-consu div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 3px 0; }
.of-consu div + div { border-top: 1px solid var(--linea); }
.of-consu em { display: block; font-style: normal; color: var(--t3); font-size: 12px; }
.of-consu strong { white-space: nowrap; font-weight: 800; }
.of-nota { margin-top: 12px; font-size: 13px; color: var(--t2); font-style: italic; }
.of-pie { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.of-precio { white-space: nowrap; font-size: 28px; font-weight: 900; font-style: italic; color: var(--rojo); letter-spacing: -.02em; line-height: 1; }
.of-precio small { display: block; font-size: 12px; font-style: normal; font-weight: 600; color: var(--t3); letter-spacing: 0; margin-top: 4px; }
.of-estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--t2); margin-top: 8px; }
.of-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1FA855; }
.of-estado.pocas::before { background: #E8A100; }
.of-estado.pedido::before { background: var(--t3); }
.of-card .btn { padding: 11px 18px; font-size: 14px; }

.of-cierre { padding: 64px 0 88px; }
.of-legal { font-size: 13px; color: var(--t3); margin-top: 22px; }

@media (max-width: 720px) {
  .of-hero { padding: 44px 0 40px; }
  .filtros { top: 64px; }
  .of-rejilla { grid-template-columns: 1fr; }
  .filtros .contenedor { flex-wrap: nowrap; }
}
