/* Dean Tiago: estilos compartidos (colores, letra, menú, botones, pie) */
:root {
  --tinta: #16130f;
  --papel: #ffffff;
  --gris: #f1f0ee;
  --vino: #9b1b30;
  --vino-2: #7e1526;
  --texto: #2b2723;
  --texto-suave: #57514b;
  --r-tarjeta: 14px;
  --r-boton: 8px;
  --margen: 20px;
  --ancho: 1180px;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --cuerpo: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font: 400 1rem/1.6 var(--cuerpo);
  -webkit-font-smoothing: antialiased;
}

/* La página aparece completa cuando ya llegó la letra (máx. 1.5 s) */
.js:not(.listo) body { opacity: 0; }
body { transition: opacity 0.2s; }

::selection { background: var(--vino); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

/* Fotos: el marco tiene el color del sitio y la imagen aparece al terminar de bajar */
.js img.carga { opacity: 0; transition: opacity 0.3s; }
.js img.carga.lista { opacity: 1; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--tinta);
  text-wrap: balance;
}

p { margin: 0; }

a, button { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--vino);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: var(--r-boton);
}
.saltar:focus { top: 12px; }

/* Cabecera */
.cabecera {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--margen);
  background: var(--papel);
}
.logo { display: block; line-height: 0; }
.logo img { width: 159px; height: 44px; }

.menu-btn {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  display: grid; place-content: center; gap: 7px; cursor: pointer; border-radius: var(--r-boton);
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--tinta); }

.menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--papel);
  padding: 8px var(--margen) 20px;
  box-shadow: 0 12px 24px -12px rgba(22, 19, 15, 0.25);
}
.menu.abierto { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex; align-items: center; min-height: 48px;
  font: 500 1.125rem/1.2 var(--cuerpo); color: var(--tinta); text-decoration: none;
}
.menu a[aria-current="page"] { color: var(--vino); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .cabecera { padding: 14px max(var(--margen), calc((100vw - var(--ancho)) / 2)); }
  .logo img { width: 190px; height: 53px; }
  .menu-btn { display: none; }
  .menu { display: block; position: static; padding: 0; box-shadow: none; background: transparent; }
  .menu ul { display: flex; gap: 6px; }
  .menu a { padding: 0 14px; font-size: 1rem; }
  @media (hover: hover) and (pointer: fine) {
    .menu a:hover { color: var(--vino); }
  }
}

/* Botones: píldora solo en la llamada principal */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--tinta); border-radius: var(--r-boton);
  background: transparent; color: var(--tinta);
  font: 600 1rem/1.2 var(--cuerpo); text-decoration: none; text-align: center;
}
.btn-wa {
  padding: 0 30px; border-radius: 999px;
  background: var(--vino); border-color: var(--vino); color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--tinta); color: #fff; }
  .btn-wa:hover { background: var(--vino-2); border-color: var(--vino-2); }
}

.acciones { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .acciones { flex-direction: row; flex-wrap: wrap; } }

/* Corte en V: la solapa del saco del logo */
.v-corte {
  --v: 44px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--v)), 50% 100%, 0 calc(100% - var(--v)));
}

/* Datos que faltan: se buscan con la clase .pendiente y se quitan antes de entregar */
.pendiente {
  border: 1.5px dashed #8a8279; border-radius: var(--r-boton);
  padding: 10px 12px; font-size: 0.875rem; line-height: 1.45; color: var(--texto-suave);
}

/* Páginas interiores */
.pagina { max-width: var(--ancho); margin: 0 auto; padding: 24px var(--margen) 72px; }
.pagina-cabeza h1 { font-size: clamp(2.6rem, 1.9rem + 4vw, 4.5rem); }
.pagina-cabeza p { margin-top: 12px; max-width: 46ch; color: var(--texto-suave); text-wrap: pretty; }

.atajos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.atajos .btn { min-height: 44px; padding: 0 18px; font-weight: 500; }

.bloque { margin-top: 64px; scroll-margin-top: 16px; }
.bloque-cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 20px; }
.bloque-cabeza h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.75rem); }
.bloque-cabeza .pendiente { max-width: 22rem; }

.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }

.prenda { display: block; color: inherit; text-decoration: none; }
.prenda-foto { aspect-ratio: 3 / 4; border-radius: var(--r-tarjeta); overflow: hidden; background: var(--gris); }
.prenda-foto img { width: 100%; height: 100%; object-fit: cover; }
.prenda-foto.pendiente { display: grid; place-items: center; text-align: center; padding: 16px; background: transparent; }
.prenda > span { display: block; margin-top: 10px; font-size: 0.9375rem; line-height: 1.35; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  a.prenda:hover > span { color: var(--vino); text-decoration: underline; text-underline-offset: 3px; }
}

.dos-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .dos-col { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; } }
.foto-grande { aspect-ratio: 4 / 5; border-radius: var(--r-tarjeta); overflow: hidden; background: var(--gris); }
.foto-grande img { width: 100%; height: 100%; object-fit: cover; }
.foto-grande.pendiente { display: grid; place-items: center; background: transparent; text-align: center; }
.texto > * + * { margin-top: 16px; }
.texto p { max-width: 48ch; text-wrap: pretty; }

.cierre { background: var(--gris); padding: 56px var(--margen); text-align: center; }
.cierre h2 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); }
.cierre p { margin: 10px auto 24px; max-width: 40ch; color: var(--texto-suave); text-wrap: pretty; }

[hidden] { display: none !important; }

/* Filtro: el botón elegido queda relleno */
.filtros .btn[aria-pressed="true"] { background: var(--tinta); color: #fff; }

/* Visor de fotos */
.sin-scroll, .sin-scroll body { overflow: hidden; }
.visor {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--tinta); color: #fff;
  overscroll-behavior: contain;
}
.visor::backdrop { background: var(--tinta); }
.visor :focus-visible { outline-color: #fff; }
.visor-int {
  height: 100%; display: flex; flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.visor-cerrar, .visor-ant, .visor-sig {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 1.5px solid #8a8279; border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
}
.visor-cerrar { align-self: flex-end; flex: none; border-color: transparent; }
.visor-wa { padding: 0 20px; white-space: nowrap; font-size: 0.9375rem; }
.visor figure { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.visor-foto img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 210px); border-radius: var(--r-boton); }
.visor figcaption { text-align: center; color: #e9e4de; font-size: 1rem; }
.visor-acciones { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 16px; }
@media (hover: hover) and (pointer: fine) {
  .visor-ant:hover, .visor-sig:hover { border-color: #fff; }
}

/* Sucursales */
.sucursales { display: grid; gap: 40px; }
@media (min-width: 900px) { .sucursales { grid-template-columns: 1fr 1fr; gap: 40px; } }
.sucursal h3 { font-size: 1.75rem; }
.sucursal > p { margin-top: 6px; color: var(--texto-suave); }
.sucursal .pendiente { margin-top: 12px; }
.mapa { margin-top: 18px; aspect-ratio: 4 / 3; border-radius: var(--r-tarjeta); overflow: hidden; background: var(--gris); }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.sucursal .btn { margin-top: 16px; }

/* Formulario */
.form { display: grid; gap: 18px; margin-top: 8px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 600; color: var(--tinta); }
.campo label small { font-weight: 400; color: var(--texto-suave); font-size: 0.875rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #8a8279; border-radius: var(--r-boton);
  background: #fff; color: var(--tinta); font: 400 1rem/1.4 var(--cuerpo);
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline-offset: 1px; border-color: var(--vino); }
.form .btn-enviar { justify-self: start; background: var(--vino); border-color: var(--vino); color: #fff; padding: 0 28px; }
@media (hover: hover) and (pointer: fine) { .form .btn-enviar:hover { background: var(--vino-2); border-color: var(--vino-2); } }
.datos { display: grid; gap: 14px; }
.datos a { color: var(--tinta); text-underline-offset: 3px; }
.datos .btn-wa { color: #fff; justify-self: start; }

/* Pie */
.pie { background: var(--tinta); color: #e9e4de; padding: 56px var(--margen) 28px; }
.pie-int { max-width: var(--ancho); margin: 0 auto; display: grid; gap: 36px; }
.pie h2 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.pie h3 { font: 600 1rem/1.3 var(--cuerpo); color: #fff; margin: 0 0 4px; }
.pie a { color: #fff; text-underline-offset: 3px; }
.pie .pendiente { border-color: #a39a90; color: #d6cfc7; margin-top: 10px; }
.pie .suc + .suc { margin-top: 22px; }
.pie-marca { width: 56px; height: auto; filter: invert(1); margin-bottom: 18px; opacity: 0.92; }
.pie-contacto p + p { margin-top: 10px; }
.credito { max-width: var(--ancho); margin: 40px auto 0; font-size: 0.875rem; color: #cfc8c0; }

@media (min-width: 900px) {
  .pie { padding: 72px max(var(--margen), calc((100vw - var(--ancho)) / 2)) 32px; }
  .pie-int { grid-template-columns: 1.1fr 1fr 1fr; gap: 56px; max-width: none; }
  .credito { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .js img.carga { transition: none; }
}
