/* ============================================================
   HARDY — «Vidriera al sol» (rediseño 18/11/2026)
   Gris muy claro, textos chicos en mayúscula, gente al sol
   entre los anteojos. Un solo acento: rojo, sólo en cuotas.
   ============================================================ */

:root {
  --vc-fondo: #f3f3f1;
  --vc-celda: #e9e9e7;
  --vc-tinta: #141414;
  --vc-gris: #6b6b6b;
  --vc-rojo: #d7261e;
  --vc-gap: 6px;
}

body.home { background: var(--vc-fondo); }

.vc-kicker,
.vc-btn,
.vc-franja,
.vc-cab,
.vc-card__txt,
.vc-escena__pie,
.vc-caras figcaption {
  font-family: var(--f-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Portada ---------- */
.vc-hero .hero__velo {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.22) 100%);
}
.vc-hero .hero__img { object-position: center 40%; }
.vc-kicker { display: block; font-size: 12px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.vc-hero h1 { color: #fff; max-width: 14ch; margin-bottom: 26px; }

.vc-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 15px 26px;
  background: #fff;
  color: var(--vc-tinta);
  border: 1px solid #fff;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.vc-btn:hover { background: var(--vc-tinta); border-color: var(--vc-tinta); color: #fff; }
.vc-btn--linea { background: transparent; border-color: var(--vc-tinta); }

/* ---------- Franja ---------- */
.vc-franja {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 34px;
  padding: 14px var(--pad);
  font-size: 11px;
  font-weight: 600;
  color: var(--vc-tinta);
  background: #fff;
  border-bottom: 1px solid #e2e2e0;
}
.vc-rojo { color: var(--vc-rojo); }

/* ---------- Cabeceras ---------- */
.vc-cab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0 18px 14px;
  font-size: 11px;
  color: var(--vc-gris);
}
.vc-cab h2 {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--vc-tinta);
}

/* ---------- La vidriera ---------- */
.vc-vidriera { padding: 44px 0 56px; }
.vc-grilla {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: var(--vc-gap);
  padding: 0 var(--vc-gap);
}

.vc-card { display: flex; flex-direction: column; background: var(--vc-celda); color: var(--vc-tinta); }
.vc-card__foto { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.vc-card__foto img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s var(--t);
}
.vc-card__puesta { opacity: 0; object-position: center 35%; }
.vc-card--puesta:hover .vc-card__puesta,
.vc-card--puesta:focus-visible .vc-card__puesta { opacity: 1; }
.vc-card:hover .vc-card__packshot { transform: scale(1.03); }
.vc-card__mas {
  position: absolute; right: 12px; top: 10px;
  font-family: var(--f-ui); font-size: 20px; font-weight: 300; line-height: 1;
  color: var(--vc-tinta);
  z-index: 2;
}
.vc-card--puesta:hover .vc-card__mas { color: #fff; }

.vc-card__txt { display: grid; gap: 3px; padding: 12px 14px 16px; font-size: 11px; }
.vc-card__nombre { font-weight: 700; font-size: 12px; }
.vc-card__precio { font-weight: 500; color: var(--vc-tinta); }
.vc-card__precio del { color: var(--vc-gris); margin-right: 6px; }
.vc-card__precio ins { text-decoration: none; }
.vc-cuotas { color: var(--vc-rojo); font-weight: 600; letter-spacing: 0.04em; }

.vc-escena {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  min-height: 320px;
  overflow: hidden;
  background: var(--vc-celda);
}
.vc-escena img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.8s var(--t);
}
.vc-escena:hover img { transform: scale(1.03); }
.vc-escena__pie {
  position: absolute; left: 14px; bottom: 14px;
  padding: 9px 13px;
  background: #fff;
  color: var(--vc-tinta);
  font-size: 11px; font-weight: 700;
}

.vc-ver-todo { text-align: center; padding-top: 34px; }

/* Cierra la última fila de la grilla cuando la cantidad de anteojos no la completa. */
.vc-relleno {
  grid-column: span var(--vc-span-d);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 160px;
  padding: 18px 20px;
  background: var(--vc-tinta);
  color: #fff;
  text-decoration: none;
}
.vc-relleno__kicker { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.vc-relleno__txt { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; }
.vc-relleno:hover .vc-relleno__txt { text-decoration: underline; text-underline-offset: 5px; }
.vc-relleno--solo-movil { display: none; }
/* Con el bloque en la grilla, el botón de abajo repite lo mismo. */
.vc-vidriera:has(.vc-relleno:not(.vc-relleno--solo-movil)) .vc-ver-todo { display: none; }
@media (max-width: 900px) {
  .vc-vidriera:has(.vc-relleno:not(.vc-relleno--solo-movil)) .vc-ver-todo { display: block; }
  .vc-vidriera:has(.vc-relleno:not(.vc-relleno--solo-compu)) .vc-ver-todo { display: none; }
}

/* ---------- Los de la casa ---------- */
.vc-casa { padding: 20px 0 64px; }
.vc-caras {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--vc-gap);
  padding: 0 var(--vc-gap);
  margin: 0;
}
.vc-caras figure { margin: 0; background: var(--vc-celda); }
.vc-caras img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.vc-caras figcaption { padding: 10px 12px; font-size: 11px; font-weight: 700; }

/* ---------- Cierre ---------- */
.vc-cierre {
  text-align: center;
  padding: 72px var(--pad) 88px;
  background: #fff;
  border-top: 1px solid #e2e2e0;
}
.vc-cierre h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 42px);
  margin-bottom: 28px;
  color: var(--vc-tinta);
}
.vc-cierre .vc-btn { background: var(--vc-tinta); border-color: var(--vc-tinta); color: #fff; }
.vc-cierre .vc-btn:hover { background: #fff; color: var(--vc-tinta); }

/* ---------- Tienda (archivo de WooCommerce): foto puesta al pasar ---------- */
.woocommerce ul.products li.product .hardy-puesto {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.woocommerce ul.products li.product:hover .hardy-puesto { opacity: 1; transform: none; }
.woocommerce ul.products li.product .vc-cuotas { display: block; padding: 2px 18px 0; font-size: 12px; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .vc-grilla { grid-template-columns: repeat(2, 1fr); }
  .vc-caras { grid-template-columns: repeat(3, 1fr); }
  .vc-relleno { grid-column: span var(--vc-span-m); }
  .vc-relleno--solo-movil { display: flex; }
  .vc-relleno--solo-compu { display: none; }
}
@media (max-width: 560px) {
  .vc-franja { gap: 6px 18px; font-size: 10px; }
  .vc-card__txt { padding: 10px 10px 14px; font-size: 10px; }
  .vc-card__nombre { font-size: 11px; }
  .vc-escena { min-height: 420px; }
  .vc-cab { padding-inline: 12px; }
}

/* En pantallas táctiles no hay mouse: la pista sobra. */
@media (hover: none) { .vc-pista { display: none; } }

/* ---------- Tienda y relacionados con el mismo lenguaje de la vidriera ---------- */
body.woocommerce-shop,
body.post-type-archive-product,
body.tax-product_cat,
body.single-product { background: var(--vc-fondo); }

.woocommerce ul.products,
.woocommerce-page ul.products {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--vc-gap);
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--vc-celda);
  border-radius: 0;
}
.woocommerce ul.products li.product:hover { transform: none; box-shadow: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px 2px;
}
.woocommerce ul.products li.product .price {
  padding: 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.woocommerce ul.products li.product .vc-cuotas {
  padding: 2px 14px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.woocommerce ul.products li.product .button {
  margin: 12px 14px 16px;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: 0;
}
@media (max-width: 900px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* Ficha: las cuotas también en rojo, el único acento. */
.single-product .summary .hardy-cuotas { color: var(--vc-rojo); }

/* =========================================================
   Ajustes de la QA de 20 personas (19/11/2026)
   ========================================================= */

/* Los «Ver la colección» del final de páginas y notas, y «Escribinos por WhatsApp»
   de Contacto, eran links sin estilo: se leían como texto. Mismo botón que la home. */
a.boton {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  background: var(--vc-tinta, #141414);
  color: #fff !important;
  border: 1px solid var(--vc-tinta, #141414);
  border-radius: 0;
  text-decoration: none !important;
  transition: background 0.2s;
}
a.boton:hover { background: #000; color: #fff !important; }

/* WhatsApp flotante: más chico en el celular y el pie con lugar para que no tape
   lo último. En la ficha del celular se esconde: ahí ya está «Consultar por WhatsApp»
   y la barra fija de compra. */
@media (max-width: 992px) {
  .wsp { width: 46px; height: 46px; right: 12px; }
  .wsp svg { width: 23px; height: 23px; }
  body.single-product .wsp { display: none; }
  .footer { padding-bottom: 72px; }
}

/* Los anclas (#calce de la FAQ y otros) quedaban debajo del header fijo. */
[id] { scroll-margin-top: 96px; }

/* En pantallas angostas la frase del pie caía de a una palabra por línea. */
@media (max-width: 420px) { .footer__frase { max-width: none; } }

/* =========================================================
   Avisos de WooCommerce con la estética del recorrido nuevo (19/11/2026):
   gris claro plano, barrita a la izquierda, tipografía de interfaz, sin la caja
   crema con borde marrón ni el contorno azul que dejaba el foco automático.
   Éxito e info en tinta; error en rojo.
   ========================================================= */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative;
  margin: 0 0 20px;
  padding: 15px 18px 15px 50px;
  border: 0;
  border-left: 3px solid var(--vc-tinta, #141414);
  border-radius: 0;
  background: #f4f4f3;
  color: var(--vc-tinta, #141414);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
  box-shadow: none;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--vc-tinta, #141414);
}
.woocommerce-error,
.woocommerce .woocommerce-error { border-left-color: #b01e17; background: #fbf1f0; }
.woocommerce-error::before { color: #b01e17; }
.woocommerce-error li { margin: 0; }

/* El foco lo pone WooCommerce para el lector de pantalla; no hace falta el contorno azul. */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notices-wrapper :focus { outline: none; }

/* «¿Deshacer?» y otros links del aviso */
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* «Ver carrito», «Seguir comprando»: botón chico cuadrado, a la derecha */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right;
  margin: -6px 0 -6px 16px;
  padding: 9px 16px !important;
  border-radius: 0 !important;
  background: var(--vc-tinta, #141414) !important;
  color: #fff !important;
  font-family: var(--f-ui);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .woocommerce-message .button,
  .woocommerce-info .button { float: none; display: inline-block; margin: 10px 0 0; }
}

/* Avisos del checkout de bloques, iguales */
.wc-block-components-notice-banner {
  border: 0 !important;
  border-left: 3px solid var(--vc-tinta, #141414) !important;
  border-radius: 0 !important;
  background: #f4f4f3 !important;
  color: var(--vc-tinta, #141414);
}
.wc-block-components-notice-banner > svg { fill: var(--vc-tinta, #141414) !important; background: transparent !important; }
.wc-block-components-notice-banner.is-error { border-left-color: #b01e17 !important; background: #fbf1f0 !important; }
.wc-block-components-notice-banner.is-error > svg { fill: #b01e17 !important; }

/* ============================================================
   Portada en slider (23/11/2026): foto con gente + anteojo real.
   Compu: mitad y mitad. Celular: foto arriba, anteojo abajo.
   ============================================================ */
.vc-slider { background: var(--vc-celda); }
.vc-slider__pista { position: absolute; inset: 0; }
.vc-lamina {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  color: var(--vc-tinta);
}
.vc-lamina.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; z-index: 1; }
.vc-lamina__foto { position: relative; overflow: hidden; }
.vc-lamina__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.vc-lamina__producto {
  position: relative;
  background: var(--vc-celda);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vc-lamina__pack { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s ease; }
.vc-lamina:hover .vc-lamina__pack { transform: scale(1.03); }
.vc-lamina__pie {
  position: absolute;
  left: clamp(24px, 4vw, 60px);
  bottom: clamp(48px, 8vh, 96px);
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.vc-lamina__precio { font-weight: 500; }
.vc-lamina__precio del { opacity: 0.5; margin-right: 6px; }

/* El velo oscurece sólo la foto, para que se lea el título. */
.vc-slider .hero__velo { right: 50%; z-index: 2; pointer-events: none; }
.vc-slider .hero__txt { z-index: 3; pointer-events: none; }
.vc-slider .hero__txt a { pointer-events: auto; }
@media (min-width: 721px) {
  .vc-slider .hero__txt { max-width: 50%; margin-left: 0; padding-left: clamp(24px, 4vw, 60px); }
  /* El carrito y el menú de la derecha caen sobre el lado gris: van oscuros mientras el header es transparente. */
  .home .header:not(.solid) .header__acciones .icon-btn,
  .home .header:not(.solid) .nav a { color: var(--vc-tinta); }
  .vc-slider .hero__txt h1 { font-size: clamp(34px, 4vw, 60px); max-width: 15ch; }
}

.vc-slider__nav {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 60px);
  bottom: clamp(44px, 8vh, 92px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.vc-slider__puntos { display: flex; gap: 8px; }
.vc-slider__punto {
  width: 22px; height: 3px; padding: 0; border: 0;
  background: rgba(20, 20, 20, 0.22);
  cursor: pointer;
  transition: background 0.3s;
}
.vc-slider__punto.is-on { background: var(--vc-tinta); }
.vc-slider__flecha {
  width: 36px; height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: transparent;
  color: var(--vc-tinta);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.vc-slider__flecha:hover { background: var(--vc-tinta); color: #fff; }

@media (max-width: 720px) {
  .vc-lamina { grid-template-columns: 1fr; grid-template-rows: 1fr 30%; }
  .vc-slider .hero__velo { right: 0; bottom: 30%; }
  .vc-slider .hero__txt { position: absolute; left: 0; right: 0; bottom: 30svh; padding-bottom: 22px; }
  /* Celular (24/11, Juan: «queda raro la ubicación del precio»): el anteojo centrado y, debajo,
     nombre y precio en una sola línea, como una tarjeta de producto. Los puntos arriba, oscuros. */
  .vc-lamina__producto { flex-direction: column; justify-content: center; gap: 8px; padding: 26px 16px 18px; }
  .vc-lamina__pack { flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: contain; }
  .vc-lamina__pie { position: static; transform: none; flex-direction: row; justify-content: center; gap: 12px; font-size: 13px; }
  .vc-slider__flecha { display: none; }
  .vc-slider__nav { left: 0; right: 0; bottom: calc(30% - 16px); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-lamina, .vc-lamina.is-on { transition: none; }
}
