/*
 * Estilos de los widgets propios de Statement.
 * Los valores salen del relevamiento del Next; los tokens los define el child
 * theme en assets/css/tokens.css, asi que aca solo se consumen las variables.
 */

/* ---------- Botones compartidos ---------- */

/* SaleBanner.tsx:31 — bg-black, 11px, tracking .2em, uppercase */
.stmnt-btn {
  display: inline-block;
  width: fit-content;
  background: var(--stmnt-fg, #000);
  color: var(--stmnt-bg, #fff);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 0;
  transition: background-color var(--stmnt-transition, 300ms);
}

.stmnt-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--stmnt-bg, #fff);
}

/* HeroSlider.tsx:58 — glassmorphism con doble sombra inset */
.stmnt-btn-glass {
  pointer-events: auto;
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--stmnt-transition, 300ms);
}

.stmnt-btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- Hero slider ---------- */

.stmnt-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.stmnt-hero__viewport {
  position: relative;
  width: 100%;
  height: 60vh;
}

@media (min-width: 640px) {
  .stmnt-hero__viewport { height: 70vh; }
}

@media (min-width: 768px) {
  .stmnt-hero__viewport { height: 80vh; }
}

@media (min-width: 1024px) {
  .stmnt-hero__viewport { height: 85vh; }
}

.stmnt-hero__track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform var(--stmnt-slider-transition, 1100ms)
    var(--stmnt-slider-ease, cubic-bezier(0.65, 0, 0.35, 1));
}

.stmnt-hero__slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.stmnt-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stmnt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.1) 50%,
    transparent
  );
}

.stmnt-hero__content {
  padding: 0 var(--stmnt-gutter, 24px) 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .stmnt-hero__content {
    padding: 0 var(--stmnt-gutter-md, 40px) 64px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.stmnt-hero__title {
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
  font-weight: var(--stmnt-weight-bold, 700);
  max-width: 550px;
  margin: 0;
}

@media (min-width: 768px) {
  .stmnt-hero__title { font-size: 40px; }
}

@media (min-width: 1024px) {
  .stmnt-hero__title { font-size: 48px; }
}

.stmnt-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--stmnt-transition, 300ms);
}

.stmnt-hero__arrow:hover { color: #fff; }
.stmnt-hero__arrow--prev { left: 16px; }
.stmnt-hero__arrow--next { right: 16px; }

.stmnt-hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.stmnt-hero__dot {
  height: 6px;
  width: 6px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--stmnt-transition, 300ms);
}

.stmnt-hero__dot:hover { background: rgba(255, 255, 255, 0.8); }

.stmnt-hero__dot.is-active {
  width: 24px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .stmnt-hero__track { transition: none; }
}

/* ---------- Sale banner ---------- */

.stmnt-sale-banner {
  width: 100%;
  background: var(--stmnt-bg, #fff);
}

.stmnt-sale-banner__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stmnt-placeholder-200, #e5e5e5);
}

@media (min-width: 768px) {
  .stmnt-sale-banner__media { aspect-ratio: 2 / 1; }
}

@media (min-width: 1024px) {
  .stmnt-sale-banner__media { aspect-ratio: 21 / 9; }
}

.stmnt-sale-banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.stmnt-sale-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.1) 50%,
    transparent
  );
}

.stmnt-sale-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--stmnt-gutter, 24px);
}

@media (min-width: 768px) {
  .stmnt-sale-banner__content { padding-left: 80px; }
}

@media (min-width: 1024px) {
  .stmnt-sale-banner__content { padding-left: 144px; }
}

.stmnt-sale-banner__line1,
.stmnt-sale-banner__line2 {
  color: #fff;
  font-weight: var(--stmnt-weight-medium, 500);
  text-transform: uppercase;
  margin: 0;
}

.stmnt-sale-banner__line1 {
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.stmnt-sale-banner__line2 {
  font-size: 34px;
  line-height: 1;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .stmnt-sale-banner__line1 { font-size: 80px; }
  .stmnt-sale-banner__line2 { font-size: 52px; margin-top: 8px; }
}

@media (min-width: 1024px) {
  .stmnt-sale-banner__line1 { font-size: 104px; }
  .stmnt-sale-banner__line2 { font-size: 64px; }
}

.stmnt-sale-banner__content .stmnt-btn {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .stmnt-sale-banner__content .stmnt-btn { margin-top: 28px; }
}

.stmnt-sale-banner__caption {
  padding: 16px var(--stmnt-gutter, 24px);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--stmnt-fg-50, rgba(0, 0, 0, 0.5));
  margin: 0;
}

@media (min-width: 768px) {
  .stmnt-sale-banner__caption { padding-left: var(--stmnt-gutter-md, 40px); padding-right: var(--stmnt-gutter-md, 40px); }
}

/* ---------- Editorial banner ---------- */

/* Mismas alturas que el hero.
   El Next usa 70vh fijo, pero a ese alto el contenedor recorta apenas un 28%
   de una foto vertical 2:3 y el encuadre cae sobre el fondo. Con las alturas
   del hero la ventana sube al 34% y entra el sujeto. Desvio deliberado:
   ver "Desvios deliberados del Next" en CLAUDE.md. */
.stmnt-editorial {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 450px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .stmnt-editorial { height: 70vh; }
}

@media (min-width: 768px) {
  .stmnt-editorial { height: 80vh; }
}

@media (min-width: 1024px) {
  .stmnt-editorial { height: 85vh; }
}

/* El selector lleva el ancestro a proposito.
   Elementor trae `.elementor img { height: auto }`, especificidad (0,1,1).
   Un `.stmnt-editorial__img` suelto es (0,1,0) y PIERDE: la imagen se
   renderiza a su alto natural escalado (1905x2863 en vez de 1905x819),
   desborda el contenedor y solo se ve la franja superior. Peor: como no hay
   recorte de object-fit, `object-position` deja de tener efecto y cualquier
   ajuste de encuadre parece no hacer nada.
   El hero y el sale banner no tienen el problema porque sus selectores ya
   son descendientes (`.stmnt-hero__slide img`), que empatan en (0,1,1). */
.stmnt-editorial .stmnt-editorial__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stmnt-editorial__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--stmnt-gutter, 24px) 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

@media (min-width: 768px) {
  .stmnt-editorial__content { padding-left: var(--stmnt-gutter-md, 40px); padding-right: var(--stmnt-gutter-md, 40px); }
}

.stmnt-editorial__title {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: var(--stmnt-weight-bold, 700);
  margin: 0;
}

@media (min-width: 768px) {
  .stmnt-editorial__title { font-size: 40px; }
}

.stmnt-editorial__subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--stmnt-on-img-60, rgba(255, 255, 255, 0.6));
}

/* ---------- Product grid ---------- */

.stmnt-grid {
  width: 100%;
  background: var(--stmnt-bg, #fff);
  padding: 48px var(--stmnt-gutter, 24px);
}

@media (min-width: 768px) {
  .stmnt-grid { padding: 64px var(--stmnt-gutter-md, 40px); }
}

.stmnt-grid__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stmnt-fg-40, rgba(0, 0, 0, 0.4));
  font-weight: var(--stmnt-weight-regular, 400);
  margin: 0 0 32px;
}

.stmnt-grid__items {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .stmnt-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .stmnt-grid__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Par de imagenes ---------- */

.stmnt-pair {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 768px) {
  .stmnt-pair { grid-template-columns: 1fr 1fr; }
}

.stmnt-pair__item {
  position: relative;
  overflow: hidden;
  background: var(--stmnt-placeholder, #f5f5f5);
  height: 55vh;
}

@media (min-width: 768px) {
  .stmnt-pair__item { height: 85vh; }
}

/* El descendiente es a proposito: `.elementor img { height: auto }` tiene
   especificidad (0,1,1) y le gana a cualquier selector de una sola clase.
   Sin esto la imagen desborda y object-position deja de tener efecto. */
.stmnt-pair .stmnt-pair__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Bloque de texto de about ---------- */

.stmnt-about__text {
  max-width: 760px;
}

@media (min-width: 1024px) {
  /* Desplazado a la derecha, como la referencia: el texto no arranca en el
     margen sino a un cuarto del ancho. */
  .stmnt-about__text { margin-left: 22%; }
}

.stmnt-about__parrafos p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--stmnt-fg, #000);
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .stmnt-about__parrafos p { font-size: 19px; }
}

.stmnt-about__parrafos p:last-child { margin-bottom: 0; }

/* Boton outline de about.
   Elementor aplica la tipografia global `accent` a TODOS los botones:
   .elementor-widget-button .elementor-button { text-transform: var(--e-global-typography-accent-text-transform) }
   Como definimos accent en uppercase con tracking 0.2em para los labels,
   todo boton lo hereda. Esa regla es (0,2,0) y empata con un
   `.stmnt-btn-outline .elementor-button`, ganando por orden de carga.
   De ahi que el selector lleve tambien la clase del widget: (0,3,0). */
.elementor-widget-button.stmnt-btn-outline .elementor-button,
.elementor-button.stmnt-btn-outline {
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--stmnt-weight-regular, 400);
  border-radius: 0;
  transition: background-color var(--stmnt-transition, 300ms), color var(--stmnt-transition, 300ms);
}

.elementor-widget-button.stmnt-btn-outline .elementor-button:hover,
.elementor-button.stmnt-btn-outline:hover {
  background-color: var(--stmnt-fg, #000);
  color: var(--stmnt-bg, #fff);
}
