/*
 * Plantilla "Ropa" (gratis): limpia, foto grande, mucho aire.
 * Diseño del lienzo "BePOS Tienda online — 5 plantillas": hueso y negro, nombre en serifa itálica,
 * portada alta con el titular grande, pastillas de categorías, fotos 3:4 sin bordes y, sin foto,
 * un fondo arena con las dos primeras letras. Letras: Instrument Serif + Inter Tight. OFL.
 */
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-display: swap; src: url(../../fuentes/tienda/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../../fuentes/tienda/instrument-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(../../fuentes/tienda/inter-tight-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(../../fuentes/tienda/inter-tight-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(../../fuentes/tienda/inter-tight-latin-600-normal.woff2) format('woff2'); }

.t-ropa {
    --fondo: #f7f5f2;
    --papel: #f7f5f2;
    --tinta: #161616;
    --suave: #5a534c;
    --linea: #ddd6cd;
    --letra-titulo: 'Instrument Serif', Georgia, serif;
    --letra-texto: 'Inter Tight', system-ui, sans-serif;
    --letra-precio: 'Inter Tight', system-ui, sans-serif;
    --radio: 0;
    --boton-radio: 0;
    --acento: #161616;
}
.t-ropa .t-hoja-titulo { font-size: 28px; font-weight: 400; }
.t-ropa .t-opcion.is-elegida, .t-ropa .t-entrega.is-elegida { background: #ece7e0; border-color: var(--tinta); }
.t-ropa .t-opcion-precio, .t-ropa .t-linea-total, .t-ropa .t-total { font-weight: 600; }
.t-ropa .t-boton { font-weight: 500; }
.t-ropa .t-recibido-titulo { font-size: 38px; font-weight: 400; }
.t-ropa .t-recibido-caja { background: #ece7e0; border-color: var(--linea); }

/* ---------- Encabezado ---------- */
.ro { max-width: 760px; margin: 0 auto; }
.ro-cab { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; background: var(--fondo); }
.t-previa ~ div .ro-cab { top: 34px; }
.ro-icono { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--tinta); }
.ro-bolsa-cant { position: absolute; top: 6px; right: 4px; font-size: 11px; font-weight: 600; }
.ro-nombre { font-family: var(--letra-titulo); font-style: italic; font-size: 34px; line-height: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 110px); }
.ro-logo { height: 40px; max-width: 160px; object-fit: contain; }

.ro-portada { position: relative; margin: 6px 12px 0; height: 400px; background: #d8cfc4; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ro-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ro-portada-texto { position: relative; padding: 20px; display: flex; flex-direction: column; }
.ro-portada.con-foto .ro-portada-texto { color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .45)); padding-top: 60px; }
.ro-titular { font-family: var(--letra-titulo); font-size: 46px; line-height: .95; }
.ro-titular.es-largo { font-size: 32px; line-height: 1.05; }
.ro-vertodo { margin-top: 14px; align-self: flex-start; font-size: 14px; font-weight: 500; color: inherit; text-underline-offset: 4px; }

/* ---------- Categorías ---------- */
.ro-cats { gap: 8px; padding: 18px 12px 6px; white-space: nowrap; }
.ro-cats button { flex: none; font-size: 14px; padding: 9px 14px; border: 1px solid #b9b2a9; border-radius: 20px; }
.ro-cats button.is-activa { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); }
.ro-cuenta { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px; color: var(--suave); }
.ro-cuenta button { font-size: 13px; color: var(--suave); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.ro-cuenta button.is-activo { color: var(--tinta); text-decoration-color: currentColor; }
.ro-buscar { display: block; margin: 0 12px 10px; }
.ro-buscar input { width: 100%; height: 40px; border: 0; border-bottom: 1px solid #b9b2a9; background: transparent; font-size: 16px; outline: none; border-radius: 0; }
.ro-buscar input:focus { border-bottom-color: var(--tinta); }

/* ---------- Productos ---------- */
.ro-grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 22px; padding: 6px 12px 20px; }
@media (min-width: 640px) { .ro-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ro-prod { display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--tinta); }
.ro-foto { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; background: #e4ddd3; overflow: hidden; }
.ro-prod:nth-child(6n+2) .ro-foto { background: #cfd6d0; }
.ro-prod:nth-child(6n+3) .ro-foto { background: #d6cabb; }
.ro-prod:nth-child(6n+4) .ro-foto { background: #e8e2d6; }
.ro-prod:nth-child(6n+5) .ro-foto { background: #ddd2c2; }
.ro-prod:nth-child(6n) .ro-foto { background: #e6dfd9; }
/* Fotos del celular: un poco más de luz y menos color, así todas se ven de la misma tienda */
.ro-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.05) contrast(1.02) saturate(.9); }
.ro-ini { position: absolute; bottom: 10px; left: 10px; font-family: var(--letra-titulo); font-size: 30px; color: #4a4038; }
.ro-marca { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--fondo); padding: 3px 6px; }
.ro-encarrito { position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; background: var(--tinta); color: var(--fondo); font-size: 12px; font-weight: 600; }
.is-agotado .ro-foto img { opacity: .5; }
.ro-nom { font-size: 14px; line-height: 1.3; }
.ro-talles { font-size: 12px; line-height: 1.3; color: var(--suave); letter-spacing: .02em; }
.ro-precio { font-size: 14px; font-weight: 600; }
.ro-abajo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ro-agregar { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--tinta); color: var(--tinta); font-size: 13px; font-weight: 500; flex: none; transition: background .15s ease, color .15s ease; }
.ro-agregar:hover, .ro-agregar:active { background: var(--tinta); color: var(--fondo); }
@media (max-width: 380px) { .ro-agregar span { display: none; } .ro-agregar { width: 40px; justify-content: center; padding: 0; } }
.ro-precio small { font-weight: 400; color: var(--suave); }
.ro-vacio { padding: 24px 12px; text-align: center; color: var(--suave); }

/* ---------- Bolsa ---------- */
.ro-pie-pedido { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(18px + env(safe-area-inset-bottom)); background: var(--fondo); border-top: 1px solid var(--linea); }
.ro-pie-pedido button { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 736px; margin: 0 auto; height: 52px; padding: 0 18px; background: var(--tinta); color: var(--fondo); font-size: 15px; font-weight: 500; }

/* ---------- Menú ---------- */
.ro-menu-fondo { justify-content: flex-start; align-items: stretch; padding: 0 !important; }
.ro-menu { position: relative; width: min(84vw, 340px); height: 100%; overflow-y: auto; background: var(--fondo); padding: 20px 24px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.ro-menu .t-cerrar { position: absolute; top: 10px; right: 14px; }
.ro-menu-nombre { font-family: var(--letra-titulo); font-style: italic; font-size: 30px; margin-bottom: 18px; padding-right: 40px; }
.ro-menu > button { padding: 8px 0; font-family: var(--letra-titulo); font-size: 24px; text-align: left; }
.ro-menu dl { margin: 26px 0 0; display: grid; gap: 4px; font-size: 14px; }
.ro-menu dt { margin-top: 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--suave); }
.ro-menu dd { margin: 0; }
.ro-estado { padding: 0 12px 6px; text-align: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ro-estado .t-estado { font-weight: 500; color: var(--suave); }
.ro-estado .t-estado.is-abierto::before { background: #15803d; }
.ro-estado .t-estado.is-cerrado::before { background: #b91c1c; }

/* Página del producto */
.ro-prod .ro-foto { cursor: pointer; }
a.ro-nom { color: var(--tinta); text-decoration: none; }
.t-ropa .t-ficha-foto, .t-ropa .t-mini-foto { aspect-ratio: 3 / 4; background: #e4ddd3; }
.t-ropa .t-ficha-foto span, .t-ropa .t-mini-foto span { color: #4a4038; }
.t-ropa .t-ficha-volver { font-style: italic; font-size: 22px; }
.t-ropa .t-ficha-nombre { font-weight: 400; }
.t-ropa .t-ficha-precio { font-size: 22px; font-weight: 600; }
.t-ropa .t-ficha-categoria { letter-spacing: .12em; font-weight: 500; }
.t-ropa .t-ficha-carrito, .t-ropa .t-mini-abajo button { border-width: 1px; }

/* ---------- Computadora (el lienzo solo traía el celular: misma estética, a lo ancho) ---------- */
@media (min-width: 960px) {
    .ro { max-width: 1280px; padding: 0 28px; }
    .ro-cab { padding: 22px 0 14px; }
    .ro-nombre { font-size: 48px; }
    .ro-logo { height: 56px; max-width: 240px; }
    .ro-portada { margin: 8px 0 0; height: min(560px, 62vh); }
    .ro-portada-texto { padding: 44px; max-width: 760px; }
    .ro-portada.con-foto .ro-portada-texto { max-width: none; padding-top: 140px; }
    .ro-titular { font-size: 84px; }
    .ro-titular.es-largo { font-size: 52px; }
    .ro-vertodo { font-size: 16px; margin-top: 20px; }
    .ro-cats { justify-content: center; flex-wrap: wrap; padding: 34px 0 10px; }
    .ro-cats button { font-size: 15px; padding: 10px 18px; }
    .ro-cuenta { padding: 10px 0; font-size: 14px; }
    .ro-buscar { margin: 0 auto 22px; max-width: 420px; }
    .ro-buscar input { text-align: center; }
    .ro-grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 44px; padding: 6px 0 60px; }
    .ro-nom, .ro-precio { font-size: 16px; }
    .ro-talles { font-size: 13px; }
    .ro-foto img { transition: transform .5s ease; }
    .ro-prod:hover .ro-foto img { transform: scale(1.04); }
    /* La bolsa: un botón flotante abajo a la derecha, no una barra de lado a lado */
    .ro-pie-pedido { left: auto; right: 28px; bottom: 28px; width: 380px; padding: 0; border: 0; background: transparent; box-shadow: 0 18px 40px rgb(0 0 0 / .22); }
    .ro-pie-pedido button { height: 60px; }
}
