/* page CSS: the strip of details, the tall-small composition and the order card (sections.md section 4) */
.tall-small__tall, .tall-small__small { margin: 0; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
.tall-small__tall > img, .tall-small__small > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tall-small__tall { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--padt) - var(--padb)); }
.tall-small__side { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: var(--s-6); }
.tall-small__small { width: min(100%, 302px); aspect-ratio: 1 / 1; }
@media (max-width: 1023px) {
  .tall-small__side { grid-row: 1; }
  .tall-small__tall { aspect-ratio: 4 / 3; }
}

.order__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.order select { width: 100%; height: 48px; font: 400 16px/1 var(--font-text); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding-inline: var(--s-4); }
.order .btn-row { margin-top: var(--s-5); }
.order__list:empty { display: none; }
.order__list { margin-top: var(--s-5); }
.order__list button { font: 500 14px/1 var(--font-text); color: var(--muted); background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-4); }
.order__sum { font: var(--display-weight) var(--t-h3)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.order__send[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 639px) { .order__fields { grid-template-columns: 1fr; gap: var(--s-4); } }

/* splits: one photograph on span-6 at 4:3 beside the words (the page's split line, x 732) */
.split__pic { margin: 0; overflow: clip; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 4 / 3; }
.split__pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tall-small__tall { aspect-ratio: auto; height: calc(100svh - var(--padt) - var(--padb) - var(--bar, 0px)); max-height: 708px; width: 100%; }
.tall-small__small { width: 100%; aspect-ratio: 3 / 2; }
.order__list { max-height: 200px; overflow: auto; }
@media (min-width: 640px) and (max-width: 1023px) {
  #modelos .tile { --tile-ratio: 3 / 2; }
  #precios, #tallas, #pedido { --h: 2; }
  .tall-small__tall { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 639px) {
  #precios .split__pic { aspect-ratio: 16 / 9; }
  .tall-small__tall { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 639px) {
  .hero--product .btn--secondary { display: none; }   /* the phone hero keeps its one main action so the screen ends on the photograph */
  #modelos .tile { --tile-ratio: 1 / 1; }
  #modelos .tile__facts { display: none; }
}
@media (min-width: 800px) and (max-width: 1023px) { #pedido, #tallas { --h: 1; } }
@media (max-width: 639px) { .lead-wide { display: none; } }

/* personalizados: words and a small photograph on the left, the tall photograph on the right (the split line) */
.custom__side { display: flex; flex-direction: column; gap: var(--s-6); }
.custom__small, .custom__tall, .sizes__wide, .sizes__narrow { margin: 0; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
.custom__small > img, .custom__tall > img, .sizes__wide > img, .sizes__narrow > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.custom__small { height: 300px; }
.custom__tall { height: min(560px, calc(100svh - var(--padt) - var(--padb) - 150px)); }
.sizes__pics { margin-top: var(--s-7); }
.sizes__wide, .sizes__narrow { height: min(300px, 30svh); }
@media (max-width: 1023px) { .custom__tall { height: auto; aspect-ratio: 4 / 3; } .custom__small { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { .sizes__wide, .sizes__narrow { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { #tallas { --hm: 2; } #precios .rows > li > p { display: none; } }
/* the order card stacks its parts in one column; its four fields sit two by two */
.form.order { display: flex; flex-direction: column; gap: 0; max-width: none; }
.order .field, .order .field input, .order .field select { width: 100%; }
.order__fields .field { grid-column: auto; }
@media (min-width: 640px) and (max-width: 1023px) { #pedido { --h: 1; } #pedido .split__pic { aspect-ratio: auto; height: 260px; } }

/* logo de la marca (el del cliente, con PROVEEDOR corregido) en un disco blanco */
.nav__logo .logo-badge { height: 44px; width: 44px; border-radius: 50%; background: #fff; flex: none; }
@media (max-width: 639px) { .nav__logo .logo-badge { height: 40px; width: 40px; } }
/* el cierre crece con su contenido en pantallas bajas: nunca aplasta el botón ni el logo */
.footer.closing { height: auto; min-height: 100svh; }
.footer.closing > .wrap { height: auto; }
.closing__cta, .closing__cta > * { flex-shrink: 0; }
footer.closing > .wrap { grid-template-rows: minmax(min-content, 1fr) auto; }
/* pantallas bajas (laptop con ventana corta): cada sección crece con su contenido en vez de encimarse */
@media (min-width: 640px) and (max-height: 760px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: 100svh; }
  main > :is(section, .section):not(.hero) > :is(.wrap, .container) { height: auto; }
}
@media (min-width: 640px) and (max-height: 760px) {
  main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; }
}

/* catálogo de mayoreo: todos los modelos con foto, precio y su botón (como la web de referencia) */
#modelos.catalogo { height: auto; min-height: 0; }
#modelos.catalogo > .wrap { height: auto; display: block; }
.cat__filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.cat__filters .chip { font: 500 15px/1 var(--font-text); color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 var(--s-5); min-height: 44px; cursor: pointer; transition: background-color .2s, color .2s; }
.cat__filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.prod { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: clip; transition: transform .25s ease; }
.prod:hover { transform: translateY(-2px); }
.prod[hidden] { display: none; }
.prod__media { aspect-ratio: 1 / 1; background: #fff; overflow: clip; }
.prod__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.prod:hover .prod__media img { transform: scale(1.03); }
.prod__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.prod__name { font: 500 18px/1.25 var(--font-text); letter-spacing: 0; margin: 0; }
.prod__color { font: 400 15px/1.3 var(--font-text); color: var(--muted); margin: 0; }
.prod__price { font: var(--display-weight) 26px/1.1 var(--font-display); margin: var(--s-2) 0 0; }
.prod__price span { font: 400 14px/1 var(--font-text); color: var(--muted); }
.prod__actions { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.prod__buy { min-height: 44px; padding-inline: var(--s-6); }
.prod__add { font: 500 14px/1 var(--font-text); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) { .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .prod__body { padding: var(--s-3); }
  .prod__name { font-size: 15px; }
  .prod__price { font-size: 20px; }
  .prod__buy { width: 100%; justify-content: center; padding-inline: 0; }
  .prod__actions { flex-direction: column; align-items: stretch; gap: 0; }
  .prod__add { justify-content: center; }
}
/* fotos del cliente con fondo gris claro: cuadro 4:3 recortado, sin franjas blancas */
.prod__media { aspect-ratio: 4 / 3; background: var(--surface); }
.prod__media img { object-fit: cover; }
.prod__media { position: relative; }
.prod__media img { position: absolute; inset: 0; }

/* armador: foto grande de lo que vas a agregar + fotos chicas para elegir color */
.order__preview { margin: 0; position: relative; overflow: clip; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .order__preview { position: sticky; top: calc(var(--nav-h, 72px) + var(--s-5)); } }
.order__preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.order__label { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: grid; gap: 2px; padding: var(--s-4) var(--s-5); background: rgba(255,255,255,.94); color: #1c1814; border-radius: var(--r-md, 12px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.order__label-k { font: 500 12px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .06em; color: #6b625a; }
.order__label strong { font: 600 18px/1.25 var(--font-text); }
.order__label span:last-child { font: 400 15px/1.3 var(--font-text); }
.order__thumbs-wrap { margin-top: var(--s-5); }
.order__thumbs-k { font: 500 14px/1.3 var(--font-text); color: var(--muted); margin: 0 0 var(--s-3); }
.order__thumbs { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.order__thumb { display: grid; gap: 4px; justify-items: center; padding: 4px; background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font: 500 13px/1.2 var(--font-text); color: var(--ink); min-width: 80px; }
.order__thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.order__thumb[aria-pressed="true"] { border-color: var(--p-action, #c4540c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--p-action, #c4540c) 25%, transparent); }
.order__thumb:hover { border-color: var(--line-strong); }
.order__list li { position: relative; }
.order__row-pic { float: left; width: 56px; height: 42px; object-fit: cover; border-radius: 4px; margin-right: var(--s-3); }
@media (max-width: 1023px) {
  #pedido .grid--top { display: flex; flex-direction: column; gap: var(--s-6); }
  .order__preview { order: -1; width: 100%; max-height: 52svh; }
}
#pedido { height: auto; min-height: 100svh; }
#pedido > .wrap { height: auto; }

.order__list .rows__name { display: inline-flex; align-items: center; gap: var(--s-3); }
.order__row-pic { float: none; margin: 0; flex: none; }
/* celular: la etiqueta va debajo de la foto, no encima del zapato */
@media (max-width: 639px) {
  .order__preview { aspect-ratio: auto; max-height: none; }
  .order__preview > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .order__label { position: static; box-shadow: none; border-radius: 0; background: var(--surface); color: var(--ink); padding: var(--s-3) var(--s-4); }
  .order__label-k { color: var(--muted); }
}
