/*
 * Plantilla premium "Boutique": para marcas que cuidan la imagen.
 * Diseño del lienzo "BePOS Tienda online — 5 plantillas": portada a pantalla completa en el color
 * oscuro de la tienda (--t-900), titular en serifa itálica, volantas en versalitas espaciadas y
 * piezas numeradas que alternan foto a la izquierda y a la derecha, como una revista.
 * Letras: Cormorant Garamond + Manrope. OFL.
 */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url(../../fuentes/tienda/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../../fuentes/tienda/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(../../fuentes/tienda/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(../../fuentes/tienda/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(../../fuentes/tienda/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(../../fuentes/tienda/manrope-latin-600-normal.woff2) format('woff2'); }

.t-boutique {
    --fondo: #efe9dc;
    --papel: #efe9dc;
    --tinta: #22291c;
    --suave: #4a4f40;
    --linea: #cfc7b3;
    --letra-titulo: 'Cormorant Garamond', Georgia, serif;
    --letra-texto: Manrope, system-ui, sans-serif;
    --letra-precio: 'Cormorant Garamond', Georgia, serif;
    --radio: 0;
    --boton-radio: 0;
    --acento: rgb(var(--t-900));
    --claro: #efe9dc;
}
.t-boutique .t-hoja-titulo { font-size: 28px; font-weight: 500; }
.t-boutique .t-etiqueta { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.t-boutique .t-opcion, .t-boutique .t-entrega, .t-boutique .t-paso, .t-boutique .t-input { border: 1px solid var(--tinta); }
.t-boutique .t-opcion.is-elegida, .t-boutique .t-entrega.is-elegida { background: #e3dccb; border-color: var(--tinta); }
.t-boutique .t-opcion-precio, .t-boutique .t-linea-total, .t-boutique .t-total { font-size: 22px; }
.t-boutique .t-boton { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; color: var(--claro); }
.t-boutique .t-boton-sec { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; border-width: 1px; }
.t-boutique .t-recibido-titulo { font-style: italic; font-weight: 400; font-size: 42px; line-height: .95; }
.t-boutique .t-recibido-caja { background: #e3dccb; border-color: var(--linea); }

/* ---------- Portada a pantalla completa ---------- */
.bo-portada { position: relative; min-height: min(640px, 92svh); background: var(--acento); color: var(--claro); display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 30px; overflow: hidden; }
.bo-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(.88); }
.bo-portada.con-foto::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(var(--t-900) / .45); }
.bo-arriba, .bo-abajo { position: relative; z-index: 2; }
.bo-arriba { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.bo-marca { font-family: var(--letra-texto); font-size: 12px; font-weight: 500; }
.bo-arriba button { min-height: 44px; letter-spacing: 2.5px; text-transform: uppercase; font-size: 12px; color: var(--claro); }
.bo-abajo { display: flex; flex-direction: column; gap: 18px; }
.bo-volanta { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #c9c2ad; }
.bo-titular { font-family: var(--letra-titulo); font-style: italic; font-size: 62px; line-height: .92; }
.bo-titular.es-largo { font-size: 40px; line-height: 1; }
.bo-bajada { font-size: 15px; line-height: 1.5; color: #d9d3c1; max-width: 300px; }
.bo-ver { align-self: flex-start; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--claro); border-bottom: 1px solid var(--claro); padding: 12px 0 4px; }

/* ---------- La colección ---------- */
.bo { max-width: 680px; margin: 0 auto; }
.bo-titulo { padding: 34px 24px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.bo-titulo h2 { font-family: var(--letra-titulo); font-weight: 500; font-size: 30px; }
.bo-titulo span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #5b604f; }
.bo-cats { gap: 20px; padding: 0 24px 6px; white-space: nowrap; }
.bo-cats button { flex: none; font-family: var(--letra-titulo); font-style: italic; font-size: 20px; color: #5b604f; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.bo-cats button.is-activa { color: var(--tinta); border-bottom-color: var(--tinta); }
.bo-buscar { display: block; padding: 6px 24px 8px; }
.bo-buscar input { width: 100%; height: 40px; border: 0; border-bottom: 1px solid var(--linea); background: transparent; font-size: 16px; outline: none; border-radius: 0; }
.bo-buscar input:focus { border-bottom-color: var(--tinta); }

.bo-pieza { display: flex; gap: 16px; padding: 18px 24px; }
.bo-pieza.es-par { flex-direction: row-reverse; }
.bo-foto { width: 48%; max-width: 230px; aspect-ratio: 19 / 24; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #6f7a5a; }
.bo-pieza:nth-of-type(3n+2) .bo-foto { background: #8a6d55; }
.bo-pieza:nth-of-type(3n) .bo-foto { background: #55604a; }
.bo-foto img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.85) brightness(1.03); }
.bo-foto span { font-family: var(--letra-titulo); font-style: italic; font-size: 64px; color: var(--claro); }
.is-agotado .bo-foto img { filter: grayscale(1); opacity: .7; }
.bo-texto { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; min-width: 0; }
.bo-num { font-size: 11px; letter-spacing: 2px; color: #5b604f; }
.bo-nom { font-family: var(--letra-titulo); font-weight: 500; font-size: 25px; line-height: 1.05; overflow-wrap: anywhere; }
.bo-desc { font-size: 13px; line-height: 1.45; color: var(--suave); }
.bo-precio { font-family: var(--letra-precio); font-size: 22px; margin-top: 4px; }
.bo-precio small { font-size: 15px; }
.bo-agregar { align-self: flex-start; min-height: 44px; padding: 0 14px; border: 1px solid var(--tinta); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.bo-agregar:disabled { border-color: var(--linea); color: #8a8a7a; }
.bo-vacio { padding: 24px; text-align: center; color: var(--suave); }
.bo-contacto { padding: 30px 24px 0; text-align: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.bo-contacto a { color: var(--tinta); }

/* ---------- Pedido ---------- */
.bo-pie-pedido { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--fondo); border-top: 1px solid var(--linea); }
.bo-pie-pedido button { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; max-width: 632px; margin: 0 auto; height: 52px; background: var(--acento); color: var(--claro); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.bo-abajo .t-estado { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500; color: var(--claro); }
.bo-abajo .t-estado.is-abierto::before { background: #9bd18a; }
.bo-abajo .t-estado.is-cerrado::before { background: #e8a091; }

/* Página del producto */
.bo-nom a { color: inherit; text-decoration: none; }
.t-boutique .t-ficha-barra { background: var(--acento); color: var(--claro); border-bottom: 0; }
.t-boutique .t-ficha-volver { color: var(--claro); font-family: var(--letra-texto); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.t-boutique .t-ficha-carrito { color: var(--claro); border-color: rgb(239 233 220 / .4); }
.t-boutique .t-ficha-foto, .t-boutique .t-mini-foto { aspect-ratio: 4 / 5; background: #6f7a5a; }
.t-boutique .t-ficha-foto span, .t-boutique .t-mini-foto span { color: var(--claro); font-style: italic; }
.t-boutique .t-ficha-nombre { font-style: italic; font-weight: 400; font-size: clamp(32px, 8vw, 48px); line-height: .98; }
.t-boutique .t-ficha-precio { font-weight: 500; }
.t-boutique .t-ficha-categoria { font-size: 11px; letter-spacing: 2.5px; font-weight: 500; }
.t-boutique .t-ficha-mas h2 { font-weight: 500; }

/* ---------- Computadora: portada a pantalla completa y las piezas en dos columnas ---------- */
@media (min-width: 960px) {
    .bo { max-width: none; }
    .bo-portada { min-height: min(760px, 88vh); padding: 34px max(48px, calc((100vw - 1240px) / 2)) 64px; }
    .bo-arriba, .bo-arriba button { font-size: 13px; }
    .bo-abajo { gap: 24px; max-width: 820px; }
    .bo-titular { font-size: 112px; }
    .bo-titular.es-largo { font-size: 68px; }
    .bo-bajada { font-size: 17px; max-width: 460px; }
    .bo-titulo, .bo-cats, .bo-buscar, .bo main, .bo-contacto, .bo-vacio { max-width: 1240px; margin-left: auto; margin-right: auto; }
    .bo-titulo { padding: 70px 48px 16px; }
    .bo-titulo h2 { font-size: 48px; }
    .bo-cats { padding: 0 48px 10px; gap: 30px; flex-wrap: wrap; }
    .bo-cats button { font-size: 24px; }
    .bo-buscar { padding: 10px 48px 20px; }
    .bo-buscar input { max-width: 420px; }
    .bo main { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 28px; padding: 10px 48px 40px; }
    .bo main > p { grid-column: 1 / -1; }
    .bo-pieza { padding: 18px 0; gap: 28px; align-items: center; }
    /* En dos columnas se alterna por fila (foto a la izquierda, después a la derecha), no por pieza */
    .bo-pieza.es-par { flex-direction: row; }
    .bo-pieza:nth-of-type(4n+3), .bo-pieza:nth-of-type(4n) { flex-direction: row-reverse; }
    .bo-foto { width: 52%; max-width: 320px; }
    .bo-foto img { transition: transform .6s ease; }
    .bo-pieza:hover .bo-foto img { transform: scale(1.04); }
    .bo-nom { font-size: 34px; }
    .bo-desc { font-size: 15px; }
    .bo-precio { font-size: 26px; }
    .bo-agregar { padding: 0 22px; font-size: 13px; }
    .bo-contacto { padding-top: 50px; font-size: 13px; }
    .bo-pie-pedido { left: auto; right: 32px; bottom: 32px; width: 400px; padding: 0; border: 0; background: transparent; box-shadow: 0 18px 44px rgb(0 0 0 / .28); }
    .bo-pie-pedido button { max-width: none; height: 60px; }
}
