/*
Theme Name:  Betik
Theme URI:   https://betik.es
Author:      Sirope
Author URI:  https://sirope.es
Description: Tema WordPress para Betik — vajilla y menaje 85 años
Version:     2.0.0
Text Domain: betik
Tags:        custom-menu, custom-logo, featured-images, full-width-template
*/

/* ════════════════════════════════════════════════════════════════
   ÍNDICE
   1.  Reset & Base
   2.  Design Tokens (:root)
   3.  Grid System — 12 columnas
   4.  Tipografía fluida
   5.  Utilidades generales
   6.  Componentes (botones, tags, tarjetas)
   7.  Header & Nav
   8.  Hero — scatter de producto
   9.  Sección NUBA
  10.  Sección Colecciones (dark)
  11.  Sección 85 Años (brand story)
  12.  Sección Features (iconos)
  13.  Sección Noticias (sage)
  14.  Sección Newsletter
  15.  Footer
  16.  Pages (Acerca, Productos, Contacto, Cliente, Archivo)
  17.  Breakpoints móvil / tablet
  18.  WordPress — clases específicas
   ════════════════════════════════════════════════════════════════ */


/* ─── 1. Reset & Base ─────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  background-color: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.home.page {
  background-color: var(--color-white);
}

::selection {
  background-color: var(--color-dark);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Scrollbar — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-dark) transparent;
}

/* Scrollbar — Chromium */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-dark);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #333;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Saltar al contenido (Skip link para accesibilidad) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-dark, #14100c);
  color: var(--color-white, #ffffff);
  padding: 10px 20px;
  z-index: 99999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

input,
textarea {
  width: 100%;
}

/* --- Anti-flicker (GSAP / reveal) ---
   Usar :where() mantiene especificidad 0, por lo que cualquier otra regla
   puede sobreescribir sin !important.
*/
:where(.nuba__eyebrow, .eyebrow, .news__eyebrow, .newsletter__eyebrow,
  .section-nuba .text-h2, .headline, .newsletter__headline, .aside-title,
  .section-collections h2, .nuba__desc, .desc-text, .text-block,
  .newsletter__desc-text, .catalog-bar, .collection-card, .feature-card,
  .stat-block, .nuba__img-wrap, .image, .news__header, .news__grid,
  .news-grid, .section-archive__header, .collection-stripe__label,
  .collection-stripe__content, .collection-stripe__actions,
  .hero-collections__content) {
  visibility: hidden;
}

/* Las eyebrows son visibles siempre (se reaniman individualmente) */
.eyebrow {
  visibility: visible;
}


/* ─── 2. Design Tokens ────────────────────────────────────────── */

/* — Fuentes — */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-Regular.eot');
  src: local('Archivo Regular'), local('Archivo-Regular'),
    url('fonts/Archivo-Regular.eot?#iefix') format('embedded-opentype'),
    url('fonts/Archivo-Regular.woff2') format('woff2'),
    url('fonts/Archivo-Regular.woff') format('woff'),
    url('fonts/Archivo-Regular.ttf') format('truetype'),
    url('fonts/Archivo-Regular.svg#Archivo-Regular') format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-Bold.eot');
  src: local('Archivo Bold'), local('Archivo-Bold'),
    url('fonts/Archivo-Bold.eot?#iefix') format('embedded-opentype'),
    url('fonts/Archivo-Bold.woff2') format('woff2'),
    url('fonts/Archivo-Bold.woff') format('woff'),
    url('fonts/Archivo-Bold.ttf') format('truetype'),
    url('fonts/Archivo-Bold.svg#Archivo-Bold') format('svg');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter28pt-Thin.eot');
  src: local('Inter 28pt Thin'), local('Inter28pt-Thin'),
    url('fonts/Inter28pt-Thin.eot?#iefix') format('embedded-opentype'),
    url('fonts/Inter28pt-Thin.woff2') format('woff2'),
    url('fonts/Inter28pt-Thin.woff') format('woff'),
    url('fonts/Inter28pt-Thin.ttf') format('truetype'),
    url('fonts/Inter28pt-Thin.svg#Inter28pt-Thin') format('svg');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter28pt-Regular.eot');
  src: local('Inter 28pt Regular'), local('Inter28pt-Regular'),
    url('fonts/Inter28pt-Regular.eot?#iefix') format('embedded-opentype'),
    url('fonts/Inter28pt-Regular.woff2') format('woff2'),
    url('fonts/Inter28pt-Regular.woff') format('woff'),
    url('fonts/Inter28pt-Regular.ttf') format('truetype'),
    url('fonts/Inter28pt-Regular.svg#Inter28pt-Regular') format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter18pt-Bold.eot');
  src: local('Inter 18pt Bold'), local('Inter18pt-Bold'),
    url('fonts/Inter18pt-Bold.eot?#iefix') format('embedded-opentype'),
    url('fonts/Inter18pt-Bold.woff2') format('woff2'),
    url('fonts/Inter18pt-Bold.woff') format('woff'),
    url('fonts/Inter18pt-Bold.ttf') format('truetype'),
    url('fonts/Inter18pt-Bold.svg#Inter18pt-Bold') format('svg');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Regular.eot');
  src: local('Space Grotesk Regular'), local('SpaceGrotesk-Regular'),
    url('fonts/SpaceGrotesk-Regular.eot?#iefix') format('embedded-opentype'),
    url('fonts/SpaceGrotesk-Regular.woff2') format('woff2'),
    url('fonts/SpaceGrotesk-Regular.woff') format('woff'),
    url('fonts/SpaceGrotesk-Regular.ttf') format('truetype'),
    url('fonts/SpaceGrotesk-Regular.svg#SpaceGrotesk-Regular') format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Bold.eot');
  src: local('Space Grotesk Bold'), local('SpaceGrotesk-Bold'),
    url('fonts/SpaceGrotesk-Bold.eot?#iefix') format('embedded-opentype'),
    url('fonts/SpaceGrotesk-Bold.woff2') format('woff2'),
    url('fonts/SpaceGrotesk-Bold.woff') format('woff'),
    url('fonts/SpaceGrotesk-Bold.ttf') format('truetype'),
    url('fonts/SpaceGrotesk-Bold.svg#SpaceGrotesk-Bold') format('svg');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* — Tokens globales — */
:root {
  /* Paleta */
  --color-text-main: #111111;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-collections-bg: #14100C;
  /* antes hardcoded en .section-collections */
  --color-footer-bg: #000000;
  --color-archive-border: #D9D9D9;
  /* antes hardcoded en .section-archive */
  --color-archive-muted: #707070;
  --color-body-copy: #333333;
  --color-newsletter-bg: #DAC6B1;

  /* Fondos semánticos */
  --color-bg-cream: #e8dfd5;
  --color-bg-cream-light: #eadecd;
  --color-bg-sand: #dbccb9;
  --color-bg-kea: #dec5ab;
  --color-bg-kados: #d1d7db;
  --color-bg-kala: #d7d1e0;
  --color-bg-kube: #bdcfdc;
  --color-bg-karola: #cadec3;
  --color-bg-feature-body: #E5DDD1;
  --color-hero-bg: #E9EAE5;

  /* Aliases compatibles */
  --color-cream: var(--color-bg-cream);
  --color-dark: var(--color-text-main);
  --color-dark-alt: var(--color-black);
  --color-blush: var(--color-bg-sand);
  --color-sage: var(--color-bg-karola);
  --color-muted: rgba(17, 17, 17, 0.55);
  --color-border: rgba(17, 17, 17, 0.12);
  --color-border-light: rgba(17, 17, 17, 0.06);

  /* Tipografías */
  --font-inter: 'Inter', sans-serif;
  --font-space: 'Space Grotesk', sans-serif;
  --font-archivo: 'Archivo', sans-serif;
  --font-display: var(--font-space);
  --font-heading: var(--font-inter);
  --font-body: var(--font-archivo);

  /* Escala tipográfica (shorthand font) */
  --ts-nav: 400 0.875rem/1.2em var(--font-inter);
  --ts-indices: 700 clamp(0.875rem, 0.5vw + 0.7rem, 1rem)/1.1em var(--font-space);
  --ts-h2-apuntes: 700 clamp(1rem, 1.2vw + 0.6rem, 1.25rem)/1.2em var(--font-inter);
  --ts-h2: 700 clamp(2rem, 3.5vw + 1rem, 3.75rem)/1.1em var(--font-inter);
  --ts-desc-seccion: 300 clamp(1.125rem, 1vw + 0.8rem, 1.5rem)/1.2em var(--font-inter);
  --ts-h3: 700 clamp(1.125rem, 1.2vw + 0.9rem, 1.5rem)/1.2em var(--font-inter);
  --ts-card-lg: 400 clamp(1rem, 1vw + 0.75rem, 1.25rem)/1.2em var(--font-archivo);
  --ts-card-sm: 400 clamp(0.875rem, 0.4vw + 0.75rem, 1rem)/1.2em var(--font-archivo);
  --ts-cta: 700 1.125rem/1.1em var(--font-space);
  --ts-p: 400 clamp(1rem, 0.8vw + 0.8rem, 1.25rem)/1.2em var(--font-archivo);
  --ts-h4: 400 clamp(1.25rem, 1.2vw + 0.9rem, 1.6875rem)/1.2em var(--font-archivo);
  --ts-cifras: 700 clamp(1.5rem, 2.5vw + 0.8rem, 2.25rem)/1em var(--font-archivo);
  --ts-nav-footer: 700 clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem)/1.1em var(--font-space);
  --ts-p-footer: 400 clamp(1rem, 1vw + 0.75rem, 1.25rem)/1.2em var(--font-inter);
  --ts-legal-footer: 400 clamp(0.875rem, 0.5vw + 0.7rem, 1rem)/1em var(--font-archivo);

  /* Tamaño de headline de sección: evita !important en IDs */
  --fs-section-headline: clamp(2rem, 3.125vw, 4.5rem);

  /* Grid */
  --grid-cols: 12;
  --gutter: clamp(16px, 1.8vw, 40px);
  --container-px: clamp(20px, 4vw, 80px);
  --max-w: 1600px;

  /* Espaciado */
  --section-py: clamp(40px, 6vw, 80px);
  --section-py-s: clamp(32px, 4vw, 72px);
  --sp-xs: clamp(8px, 1vw, 16px);
  --sp-s: clamp(16px, 2vw, 32px);
  --sp-m: clamp(24px, 3vw, 48px);
  --sp-l: clamp(40px, 5vw, 80px);

  /* Radios */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Bordes semánticos */
  --border-thick: 4px;

  /* Z-index */
  --z-base: 1;
  --z-nav: 99;
  --z-megamenu: 1000;
  --z-header: 9999;

  /* Transición */
  --transition: 0.2s ease;
}


/* ─── 3. Grid System — 12 columnas ───────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--full {
  max-width: 100%;
  padding-inline: 0;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.row--nogap {
  gap: 0;
}

.row--halfgap {
  gap: calc(var(--gutter) / 2);
}

.row--start {
  align-items: start;
}

.row--center {
  align-items: center;
}

.row--end {
  align-items: end;
}

.row--stretch {
  align-items: stretch;
}

/* Spans */
.col-1 {
  grid-column: span 1;
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-9 {
  grid-column: span 9;
}

.col-10 {
  grid-column: span 10;
}

.col-11 {
  grid-column: span 11;
}

.col-12 {
  grid-column: span 12;
}

/* Offsets */
.col-offset-1 {
  grid-column-start: 2;
}

.col-offset-2 {
  grid-column-start: 3;
}

.col-offset-3 {
  grid-column-start: 4;
}

.col-offset-4 {
  grid-column-start: 5;
}

.col-offset-6 {
  grid-column-start: 7;
}


/* ─── 4. Tipografía fluida ────────────────────────────────────── */

.text-nav {
  font: var(--ts-nav);
}

.text-indices {
  font: var(--ts-indices);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-h2-apuntes {
  font: var(--ts-h2-apuntes);
}

.text-desc-seccion {
  font: var(--ts-desc-seccion);
}

.text-cifras {
  font: var(--ts-cifras);
}

.text-card-lg {
  font: var(--ts-card-lg);
}

.text-card-sm {
  font: var(--ts-card-sm);
}

.text-nav-footer {
  font: var(--ts-nav-footer);
}

.text-p-footer {
  font: var(--ts-p-footer);
}

.text-legal-footer {
  font: var(--ts-legal-footer);
}

h2,
.text-h2 {
  font: var(--ts-h2);
  letter-spacing: -0.02em;
}

h3,
.text-h3 {
  font: var(--ts-h3);
}

h4,
.text-h4 {
  font: var(--ts-h4);
}

p,
.text-p {
  font: var(--ts-p);
}

.btn-cta,
.text-cta {
  font: var(--ts-cta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Headline de sección (evita !important en IDs específicos) */
.section-headline {
  font-size: var(--fs-section-headline);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Aliases legacy */
.t-logo {
  font-family: var(--font-space);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  letter-spacing: 0.02em;
}

.t-hero,
.t-h1 {
  font: var(--ts-h2);
  letter-spacing: -0.02em;
}

.t-h2 {
  font: var(--ts-h2-apuntes);
}

.t-h3 {
  font: var(--ts-h3);
}

.t-label {
  font: var(--ts-indices);
}

.t-body {
  font: var(--ts-p);
}

.t-body-s {
  font: var(--ts-card-sm);
}

.t-stat {
  font: var(--ts-cifras);
}


/* ─── 5. Utilidades generales ─────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--color-muted);
}

.text-white {
  color: var(--color-white);
}

.text-dark {
  color: var(--color-dark);
}

.bg-cream {
  background-color: var(--color-cream);
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.bg-blush {
  background-color: var(--color-blush);
}

.bg-sage {
  background-color: var(--color-sage);
}

.bg-white {
  background-color: var(--color-white);
}

.mt-s {
  margin-top: var(--sp-s);
}

.mt-m {
  margin-top: var(--sp-m);
}

.mt-l {
  margin-top: var(--section-py-s);
}

.mb-s {
  margin-bottom: var(--sp-s);
}

.mb-m {
  margin-bottom: var(--sp-m);
}

.mb-l {
  margin-bottom: var(--section-py-s);
}

.object-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.max-ch {
  max-width: 52ch;
}

.opacity-9 {
  opacity: 0.9;
}

.font-bold {
  font-weight: 700;
}

.w-full {
  width: 100%;
}

.rotate-90 {
  transform: rotate(90deg);
}

.no-margin {
  margin: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.items-center {
  display: flex;
  align-items: center;
}

.section-border-top {
  border-top: 0.5px solid var(--color-border);
}

.section-border-bottom {
  border-bottom: 0.5px solid var(--color-border);
}


/* ─── 6. Componentes ──────────────────────────────────────────── */

/* — Botones (Incluye botones de Gutenberg) — */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 1vw, 18px) clamp(24px, 2vw, 40px) !important;
  font: var(--ts-cta) !important;
  cursor: pointer;
  border-radius: 0 !important;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition) !important;
}

/* Gutenberg: Botón Sólido (Default) */
.wp-block-button.is-style-solid .wp-block-button__link,
.wp-block-button:not(.is-style-outline):not(.is-style-outline-white) .wp-block-button__link {
  border: 1px solid var(--color-dark) !important;
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}
.wp-block-button.is-style-solid .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-outline-white) .wp-block-button__link:hover {
  background: var(--color-dark-alt) !important;
}

/* Gutenberg: Botón Contorno Oscuro (Outline) */
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--color-dark) !important;
  color: var(--color-dark) !important;
  background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

/* Gutenberg: Botón Contorno Blanco */
.wp-block-button.is-style-outline-white .wp-block-button__link {
  border: 1px solid var(--color-white) !important;
  color: var(--color-white) !important;
  background: transparent !important;
}
.wp-block-button.is-style-outline-white .wp-block-button__link:hover {
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
}

/* — Botones — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 1vw, 18px) clamp(24px, 2vw, 40px);
  font: var(--ts-cta);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn--zona-clientes {
  padding: 4px 12px;
  font-size: 10px;
}

.btn--outline {
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--outline-white {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--solid {
  border: 1px solid var(--color-dark);
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--solid:hover {
  background: var(--color-dark-alt);
  border-color: var(--color-dark-alt);
}

.btn--sand {
  border: 1px solid var(--color-dark);
  background: var(--color-bg-sand);
  color: var(--color-dark);
}

.btn--sand:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* — Etiqueta de sección — */
.section-label {
  display: inline-block;
  margin-bottom: var(--sp-s);
  color: var(--color-muted);
}

/* — Divider — */
.divider {
  width: 100%;
  height: 0.5px;
  background: var(--color-border);
}

/* — Card básica — */
.card {
  background: var(--color-white);
  overflow: hidden;
}

.card__image {
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: clamp(16px, 1.5vw, 28px);
}

/* — Stat block — */
.stat-block__value {
  display: block;
}

.stat-block__label {
  display: block;
  font-size: 0.65rem;
  color: var(--color-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* — Tag / badge — */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* — Feature icon — */
.feature-icon {
  width: clamp(36px, 3.5vw, 52px);
  height: clamp(36px, 3.5vw, 52px);
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(14px, 1.5vw, 24px);
}

/* — Form inputs — */
.form-field {
  width: 100%;
  padding: clamp(10px, 1vw, 16px) 0;
  border: none;
  border-bottom: 0.5px solid var(--color-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.7vw + 0.4rem, 1rem);
  color: var(--color-dark);
  border-radius: 0;
  transition: border-color var(--transition);
}

.form-field::placeholder {
  color: var(--color-muted);
}

.form-field:focus {
  border-bottom-color: var(--color-dark);
}

/* — Botón icono circular — */
.btn-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.btn-icon-circle--dark {
  border-color: var(--color-dark);
  color: var(--color-dark);
  width: 32px;
  height: 32px;
}

.btn-icon-circle--dark svg {
  width: 12px;
  height: 12px;
}


/* ─── 7. Header & Nav ─────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-header);
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: transform;
  /* Garantiza que la barra de idiomas nunca desaparezca por overflow */
  overflow: visible;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.admin-bar .site-header {
  top: 32px;
  margin-top: 0;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
    margin-top: 0;
  }
}

.site-header__top {
  padding: 8px 32px;
}

.site-header__utils .btn--zona-clientes {
  display: flex;
}

@media (max-width: 1024px) {
  .site-header__utils .btn--zona-clientes {
    display: none;
  }
}

.site-header__top-inner {
  display: flex;
  justify-content: flex-end;
}

.site-header__langs {
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-size: 0.7rem;
}

.site-header__lang-active {
  color: var(--color-dark);
  font-weight: 700;
}

.site-header__main {
  padding: 16px 32px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding-inline: var(--container-px);
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 1;
}

.site-logo a {
  display: block;
}

/* Nav principal */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 48px);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  font: var(--ts-nav);
  letter-spacing: 0.03em;
  color: var(--color-dark);
  transition: color var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 20px;
}

.site-nav__link::before {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--color-dark);
  transition: width var(--transition);
}

.site-nav__link:hover::before,
.site-nav__link.current-menu-item::before {
  width: 100%;
}

.site-nav__link.current-menu-item {
  font-weight: 700;
}

/* Dropdown (WP Compatible) */
.site-nav__dropdown,
.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  border: 0.5px solid var(--color-border);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  padding: 10px 0;
  z-index: var(--z-nav);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.site-nav__dropdown a,
.menu-item-has-children > .sub-menu a {
  display: block;
  text-align: center;
  margin: 0 10px;
  padding: 10px 0;
  white-space: nowrap;
}

.site-nav__dropdown li a,
.menu-item-has-children > .sub-menu > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--color-dark);
  transition: background var(--transition);
  text-decoration: none;
}

.site-nav__dropdown li a:hover,
.menu-item-has-children > .sub-menu > li > a:hover {
  background: var(--color-cream);
}

.site-nav__item.has-dropdown:hover .site-nav__dropdown,
.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Megamenu (WP Compatible) */
.has-megamenu {
  position: static;
}

.has-megamenu .site-nav__megamenu,
.has-megamenu > .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: min(94vw, var(--max-w));

  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--color-dark);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 40px;
  z-index: var(--z-megamenu);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  list-style: none;
  margin: 0;
}

/* Invisible bridge to prevent hover loss */
.has-megamenu > .sub-menu::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 25px;
}

.has-megamenu:hover .site-nav__megamenu,
.has-megamenu:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Make inner li act as grid cells */
.has-megamenu > .sub-menu > li {
  display: flex;
}

.megamenu-link,
.has-megamenu > .sub-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--color-dark);
  background-color: var(--color-bg-cream);
  padding: 12px 10px;
  font-family: var(--font-space);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  transition: background-color var(--transition), color var(--transition);
  height: 100%;
  min-height: 44px;
  width: 100%;
  margin: 0;
}

.megamenu-link:hover,
.megamenu-link.is-active,
.has-megamenu > .sub-menu > li > a:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.dropdown-icon {
  width: 10px;
  height: 6px;
  transition: transform var(--transition);
}

.site-nav__item.has-dropdown:hover .dropdown-icon,
.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}


/* Header utilities */
.site-header__utils {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  flex-shrink: 0;
}

.site-header__lang {
  color: var(--color-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay — Global Definition */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: none; /* Oculto en escritorio */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-active {
  display: flex;
  pointer-events: auto;
}

.mobile-menu__content {
  text-align: center;
  width: 100%;
}

.hi-close-panel {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
  padding: 10px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.hi-close-panel:hover {
  transform: scale(1.1);
}

.hi-close-svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-menu__nav {
  margin-bottom: 60px;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__link {
  font-family: var(--font-inter);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.mobile-menu__utils {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 280px;
}

.mobile-menu__lang {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.mobile-menu__lang span {
  margin: 0 10px;
  color: var(--color-dark);
  font-weight: 700;
}


/* ─── 8. Hero — scatter de productos ─────────────────────────── */

.hero-scatter {
  min-height: calc(100vh - 84px);
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-scatter__inner {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform;
  transform: translate(var(--hi-px, 0), var(--hi-py, 0));
}

.hero-scatter__item {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  width: var(--w, clamp(80px, 10vw, 180px));
  transition: transform 0.3s ease;
}

.hero-scatter__item:hover {
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.06);
  z-index: 10;
}

.hero-scatter__controls {
  position: absolute;
  bottom: clamp(24px, 3vw, 48px);
  right: clamp(24px, 3vw, 48px);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.hero-scatter__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-space);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-dark);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.hero-scatter__btn:hover {
  background: var(--color-dark);
  color: var(--color-white);
}


/* ─── 9. Sección NUBA ─────────────────────────────────────────── */

.section-nuba {
  position: relative;
  background-image: url('images/nuba-bg.jpg');
  background-size: cover;
  background-position: center;
  padding-block: 80px;
  overflow: hidden;
}

.nuba-container {
  position: relative;
  z-index: 20;
}

/* Eyebrow — patrón compartido: .eyebrow, .news__eyebrow, .newsletter__eyebrow */
.eyebrow,
.news__eyebrow,
.newsletter__eyebrow,
.nuba__eyebrow {
  position: absolute;
  right: 100%;
  top: 8px;
  display: inline-flex;
  align-items: center;
  border-top: 2px solid var(--color-dark);
  border-bottom: 2px solid var(--color-dark);
  padding: 8px 12px 8px 50vw;
  margin-left: -50vw;
  white-space: nowrap;
}

.section-nuba .nuba__header .text-h2 {
  margin-top: 80px;
}

.nuba__highlight {
  background: var(--color-white);
  padding: 0 8px;
  display: inline-block;
  line-height: 1.1;
  margin-top: 4px;
}

.nuba__desc {
  max-width: 48ch;
  margin-top: clamp(20px, 3vw, 40px);
}

.nuba__cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-white);
  color: var(--color-dark);
  font: var(--ts-cta);
  border: 1px solid var(--color-dark);
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.nuba__cta-btn:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.nuba__medusa {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: clamp(500px, 80vh, 860px);
  width: auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0.95;
}

/* Galería NUBA */
.nuba__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
  gap: 40px;
  margin-top: clamp(-120px, -15vw, -240px);
  align-items: end;
  z-index: 5;
}

.nuba__cta-container {
  grid-column: 8 / 12;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.nuba__img-left {
  grid-column: span 4;
  grid-row: 1;
  z-index: 2;
  height: clamp(250px, 35vh, 400px);
}

.nuba__img-center {
  grid-column: span 3;
  grid-row: 1;
  z-index: 3;
  height: clamp(350px, 50vh, 550px);
}

.nuba__img-right {
  grid-column: span 5;
  grid-row: 1;
  z-index: 10;
  position: relative;
  height: clamp(450px, 70vh, 850px);
  overflow: visible;
}

.nuba__img-wrap {
  overflow: hidden;
}

.nuba__img-wrap img,
.nuba__img-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nuba__header {
  position: relative;
  z-index: 4;
}

.nuba__cta-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* ─── 10. Sección Colecciones ────────────────────────────────── */

.section-collections {
  background: var(--color-collections-bg);
  color: var(--color-white);
  padding-block: 80px;
}

.collection-cards-wrap {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.collection-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(32px, 4vw, 56px);
  padding-inline: clamp(24px, 3.5vw, 48px);
  border-right: 1px dashed rgba(255, 255, 255, 0.6);
}

.collection-card:last-child {
  border-right: none;
}

.collection-card__title {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  line-height: 1.3;
  margin-bottom: clamp(16px, 1.5vw, 24px);
  color: var(--color-white);
}

.collection-card__body {
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--color-white);
  max-width: 32ch;
}

.collection-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-sand);
  color: var(--color-text-main);
  font: var(--ts-cta);
  padding: 12px 32px;
  margin-top: auto;
  text-transform: uppercase;
  transition: background-color var(--transition);
}

.collection-card__btn:hover {
  background-color: var(--color-white);
}

/* Listado Vertical de Franjas */
.section-collections-list {
  position: relative;
  border-top: var(--border-thick) solid var(--color-dark);
  border-bottom: var(--border-thick) solid var(--color-dark);
}


/* ─── 11. Sección 85 Años ─────────────────────────────────────── */

.section-brand {
  padding-block: var(--section-py);
  background: var(--color-white);
  overflow-x: hidden;
}

.description {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  height: 100%;
}

.top-row {
  margin-bottom: clamp(40px, 5vw, 80px);
}

.eyebrow-col {
  position: relative;
}

.header {
  position: relative;
  z-index: 4;
}

.headline {
  text-transform: uppercase;
}

.desc-col {
  padding-top: clamp(16px, 1vw, 24px);
}

.desc-text {
  font-weight: 700;
  display: flex;
}

/* Titulares de sección — sin !important */
.section-headline,
#brand-headline,
#nuba-headline,
#news-headline-real,
#newsletter-headline {
  font-size: var(--fs-section-headline);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}

.image {
  overflow: hidden;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-inline: clamp(16px, 2.5vw, 40px);
  padding-top: 12px;
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-block p {
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 1.4;
}

.aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
  background: var(--color-bg-sand);
  border: 1px solid var(--color-dark);
  width: 100%;
}

.aside-title {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: clamp(16px, 2vw, 32px);
  max-width: 12ch;
  margin-inline: auto;
}

.aside-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stats {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.text-block--second {
  margin-top: clamp(32px, 4vw, 56px);
}

.top-row .desc-text {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  width: 100%;
  flex: 1;
}


/* ─── 12. Sección Features ────────────────────────────────────── */

.section-features {
  padding-top: 0;
  padding-bottom: 80px;
  background: var(--color-white);
}

.feature-card {
  height: 100%;
  border: 1px solid var(--color-dark);
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.feature-card__header {
  background-color: var(--color-bg-sand);
  padding: clamp(16px, 1.8vw, 24px);
  border-bottom: 1px solid var(--color-dark);
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  flex-shrink: 0;
}

.feature-card__body {
  background-color: var(--color-bg-feature-body);
  padding: clamp(24px, 2.5vw, 40px) clamp(16px, 1.8vw, 24px);
  flex-grow: 1;
  border-top: 1px solid var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feature-card__body p {
  margin: 0;
  line-height: 1.6;
}

/* Variante en sección Experience */
.section-experience .feature-card__header {
  justify-content: flex-start;
  background-color: var(--color-white);
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section-experience .feature-card__header h3 {
  font-family: var(--font-inter);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin: 0;
}

.section-experience .feature-card__icon {
  transform: rotate(-45deg);
}

.section-experience .feature-card__icon svg {
  width: 40px;
  height: 40px;
}

/* Barra catálogo */
.catalog-bar {
  margin-top: 40px;
  border: 2px solid var(--color-dark);
  background: var(--color-bg-sand);
}

.catalog-bar__link {
  display: block;
  padding: 16px;
  text-align: center;
  text-decoration: underline;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.05em;
  transition: background-color var(--transition);
}

.catalog-bar__link:hover {
  background: rgba(0, 0, 0, 0.05);
}


/* ─── 13. Sección Noticias ────────────────────────────────────── */

.section-home-news {
  background-color: var(--color-sage);
  background-image: url('images/blog-bg.jpg');
  background-size: cover;
  background-position: center;
  padding-block: 80px;
  position: relative;
  overflow-x: hidden;
  border-top: var(--border-thick) solid var(--color-dark);
  border-bottom: var(--border-thick) solid var(--color-dark);
}

.news__header {
  margin-bottom: 40px;
  align-items: flex-end;
}

.news__subtitle-col {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 8px;
}

.news__eyebrow-col,
.newsletter__eyebrow-col {
  position: relative;
}

.section-home-news .news__subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  margin: 0;
  color: var(--color-dark);
  padding-inline: 12px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* News card — home */
.section-home-news .news-card {
  border: 2px solid var(--color-dark);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  height: 100%;
  transition: transform var(--transition);
  text-decoration: none;
  color: var(--color-dark);
  position: relative;
}

.section-home-news .news-card:hover {
  transform: translateY(-4px);
}

.section-home-news .news-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.section-home-news .news-card__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  margin: 0;
}

.section-home-news .news-card__desc {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.section-home-news .news-card__btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-home-news .news-card__image {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-home-news .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout asimétrico */
.section-home-news .news-card--1 {
  grid-column: span 4;
  grid-row: 1;
}

.section-home-news .news-card--2 {
  grid-column: span 4;
  grid-row: 1;
}

.section-home-news .news-card--3 {
  grid-column: span 4;
  grid-row: 1 / 3;
}

.section-home-news .news-card--4 {
  grid-column: span 8;
  grid-row: 2 / 4;
}

.section-home-news .news-card--1 .news-card__image,
.section-home-news .news-card--2 .news-card__image {
  aspect-ratio: 16 / 10;
}

.section-home-news .news-card--3 .news-card__image,
.section-home-news .news-card--4 .news-card__image {
  aspect-ratio: auto;
  flex-grow: 1;
}

.section-home-news .news-card--4 .news-card__image {
  max-height: 520px;
}

/* Barra CTA */
.news__cta-bar {
  grid-column: 9 / 13;
  grid-row: 3;
  align-self: end;
  border: 1px solid var(--color-dark);
  background: var(--color-bg-sand);
}

.news__cta-link {
  display: block;
  padding: 14px;
  text-align: center;
  font: var(--ts-cta);
  color: var(--color-dark);
}

.news__cta-link:hover {
  background: rgba(0, 0, 0, 0.03);
}


/* ─── 14. Sección Newsletter ──────────────────────────────────── */

.section-newsletter {
  padding-block: var(--section-py);
  border-top: 1px solid var(--color-dark);
  position: relative;
  overflow-x: hidden;
  background-color: var(--color-newsletter-bg);
}

.newsletter__form-row {
  margin-top: clamp(48px, 6vw, 84px);
}

.newsletter__input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-dark);
}

.newsletter__input-group input {
  border: none;
  background: transparent;
  padding: 32px 24px; /* Añadido padding lateral */
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
}

.newsletter__input-group input::placeholder {
  font-size: 20px;
  color: rgba(30, 30, 30, 0.4);
}

.newsletter__input {
  border-top: 1px solid var(--color-dark);
  padding-inline: 40px;
}

.newsletter__input:first-child {
  border-right: 1px solid var(--color-dark);
}

.newsletter__submit-wrap {
  grid-column: span 2;
  border-top: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
  padding: 24px 0;
  display: flex;
  justify-content: flex-end;
}

.newsletter__submit {
  background: var(--color-bg-sand);
  border: 1px solid var(--color-dark);
  padding: 12px 32px;
  font: var(--ts-cta);
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter__submit:hover {
  opacity: 0.8;
}

.newsletter__desc-col {
  padding-top: clamp(16px, 1vw, 24px);
}

.newsletter__desc-text {
  font-weight: 700;
  max-width: 25ch;
}


/* ─── 15. Footer ──────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer__main {
  margin-bottom: 80px;
}

.footer__tagline {
  font-family: var(--font-inter);
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 40px;
  color: var(--color-white);
}

.footer__link {
  font: var(--ts-cta);
  color: var(--color-bg-sand);
  font-size: 24px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer__knife {
  width: 60px;
  max-width: none;
  height: auto;
  margin-bottom: 32px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer__social-link img,
.footer__social-link svg {
  width: 16px;
  max-height: 16px;
  object-fit: contain;
}

.footer__logo-wrap {
  margin-bottom: 80px;
  max-width: 220px;
}

.footer__contact-info {
  font-family: var(--font-archivo);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-white);
}

.footer__contact-info p {
  margin-bottom: 10px;
}

.footer__contact-info p:last-child {
  margin-bottom: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-archivo);
  font-size: 15px;
  color: var(--color-white);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* wp_nav_menu genera un <ul> — lo convertimos en flex horizontal */
.footer__legal-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__legal-item {
  display: flex;
}

.footer__legal a,
.footer__legal-list a {
  color: var(--color-white);
  font-family: var(--font-archivo);
  font-size: 15px;
  transition: opacity 0.3s;
}

.footer__legal a:hover,
.footer__legal-list a:hover {
  opacity: 0.7;
}


/* ─── 16. Pages ───────────────────────────────────────────────── */

/* — Hero Acerca — */
.hero-acerca {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-hero-bg);
  overflow: hidden;
}

.hero-acerca__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(233, 234, 229, 0.95) 0%,
      rgba(233, 234, 229, 0.40) 50%,
      transparent 100%);
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 1; /* Restaurado */
}

.hero-acerca__bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/acerca-hero-bg.png');
  background-size: cover;
  background-position: center;
  z-index: var(--z-base);
  will-change: transform;
  opacity: 0; /* Prevenir parpadeo */
  --hi-scale: 1.1; /* Coincidir con inicio de GSAP */
  transform: scale(var(--hi-scale, 1.1)) translate(var(--hi-px, 0), var(--hi-py, 0));
}

.hero-acerca__container {
  position: relative;
  z-index: 2;
  text-align: left;
  margin-left: 5vw; /* Margen lateral para no pegar al borde */
  max-width: 800px;  /* Limitamos el ancho para que el texto no cruce toda la pantalla */
  opacity: 0;
  visibility: hidden;
}

.hero-acerca__title {
  font-family: var(--font-inter);
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* — Hero Productos — */
.hero-productos {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--color-hero-bg);
  overflow: hidden;
}

.hero-productos__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(233, 234, 229, 0.95) 0%,
      rgba(233, 234, 229, 0.60) 40%,
      transparent 100%);
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 0;
}

.hero-productos__bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/hero-productos-bg.png');
  background-size: cover;
  background-position: center;
  z-index: var(--z-base);
  will-change: transform;
  opacity: 0;
  --hi-scale: 1.1;
  transform: scale(var(--hi-scale, 1.1)) translate(var(--hi-px, 0), var(--hi-py, 0));
}

.hero-productos__container {
  position: relative;
  z-index: 2;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(100px, 20vh, 250px);
  padding-bottom: clamp(40px, 8vh, 100px);
}

.hero-productos__top {
  display: grid;
  grid-template-columns: 6fr 4fr;
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
}

.hero-productos__title-wrap {
  /* grid item */
}

.hero-productos__desc-wrap {
  /* grid item */
}

.hero-productos__title {
  font-family: var(--font-inter);
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-productos__title-box {
  background-color: var(--color-white);
  padding: 0 0.15em;
  display: inline-block;
  margin-top: 0.05em;
}

.hero-productos__desc {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw + 10px, 20px);
  line-height: 1.5;
  color: var(--color-dark);
  max-width: 45ch;
}

.hero-productos__cta {
  display: block;
  width: 100%;
  background: var(--color-bg-sand);
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  text-align: center;
  padding: clamp(14px, 2vh, 22px);
  font: var(--ts-cta);
  font-size: clamp(14px, 1vw + 10px, 18px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-productos__cta:hover {
  opacity: 0.8;
}

/* — Secciones Acerca (Experience, Sustainability, EUDR) — */
.section-experience,
.section-sustainability,
.section-eudr {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-block: var(--section-py);
}

.section-experience {
  background-image: url('images/acerca-soluciones-bg.png');
}

.section-sustainability {
  background-image: url('images/acerca-sostenibilidad-bg.png');
}

.section-eudr {
  background-image: url('images/acerca-eudr-bg.png');
}

.sustainability__highlight-box {
  background-color: var(--color-white);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); /* Reducido arriba/abajo para hacerlo más esbelto */
  border: 1px solid var(--color-dark);
  height: 100%;
  display: flex;
  align-items: center;
}

@media (max-width: 896px) {
  .section-sustainability .row > div:first-child {
    margin-bottom: 3.5rem; /* Margen aplicado a la columna para empujar físicamente la lista en móvil */
  }
}

.sustainability__highlight-box .text-h2 {
  font-family: var(--font-archivo);
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2.8rem); /* Reducido para que sea más equilibrado y fluido */
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
}

.sustainability__highlight-box .text-h2 strong {
  font-weight: 700;
}

.materials__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.materials__header img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.materials__header h3 {
  font-family: var(--font-archivo);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); /* Reducido de 40px fijo a clamp fluido */
  line-height: 1.1;
  font-weight: 700;
}

.materials__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-archivo);
}

.materials__list li {
  border: 1px solid var(--color-dark);
  padding: 0.75rem 1.5rem;
  font-size: clamp(1.25rem, 1.5vw + 1rem, 2rem); /* Reducido de 40px fijo a clamp fluido */
  line-height: 1.1;
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.materials__list li span {
  display: flex;
  align-items: center;
}

.materials__list li span span {
  margin-right: 20px;
  flex-shrink: 0;
}

.materials__list li span b {
  margin-right: 0.5rem;
  font-weight: 700;
}

.eudr-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.eudr-content>div>p {
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3rem 1rem 1.5rem; /* Ajustado el padding para equilibrar el espacio vertical */
  text-align: center;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Cambiado a flex-start para que todos los títulos se alineen al mismo nivel superior */
  align-items: center;
}

.stat-box .text-h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 1.5vw + 1.2rem, 2.25rem); /* Aumentado de 1.5rem a un clamp de 28px-36px */
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-box p,
.stat-box .t-body-s {
  opacity: 0.9;
  margin: 0;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem); /* Un poco más grande para mejorar la legibilidad */
  line-height: 1.3;
  max-width: 18ch; /* Suficiente para albergar "desde el origen" en su línea sin saltos accidentales */
}

.stats-white-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-dark);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-white-box__item {
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.stats-white-box__item:not(:last-child) {
  border-right: 1px dashed var(--color-dark);
}

.stats-white-box__item .text-h2 {
  margin-bottom: 0.5rem;
  line-height: 1;
  font-weight: 400;
}

@media (min-width: 897px) {
  .section-service .col-8 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.section-service,
.section-team,
.section-partner {
  padding-block: var(--section-py);
}

.section-team {
  border-top: var(--border-thick) solid var(--color-dark);
}

.section-partner {
  border-bottom: var(--border-thick) solid var(--color-dark);
}

.section-partner h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  word-break: break-word;
  hyphens: auto;
  margin-top: 80px;
}

.partner__black-box {
  background-color: var(--color-black);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.partner__black-box img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.partner__black-box p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.partner__black-box p:last-child {
  margin-bottom: 0;
}

/* — Contact — */
.page-template-contact {
  background-color: var(--color-white);
}

.section-contact {
  padding-top: 120px;
  padding-bottom: var(--section-py);
}

.contact-form {
  margin-top: 40px;
}

.highlight-sand {
  background-color: var(--color-bg-sand);
  padding: 0 0.5rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--color-dark);
  padding: 0.75rem 1rem;
  font-family: var(--font-archivo);
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--color-dark);
  opacity: 0.7;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.contact-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-dark);
  appearance: auto;
}

.link-underlined {
  text-decoration: underline;
}

.contact__headline {
  text-transform: uppercase;
  line-height: 1.1;
}

.contact-form__privacy {
  display: flex;
}

/* — Client Zone — */
.section-client-zone {
  padding-top: 120px;
  padding-bottom: var(--section-py);
}

.client-zone__list {
  padding-left: 0;
}

.client-zone__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.client-zone__list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--color-dark);
}

.login-form {
  padding-top: 1rem;
}

/* — Archive noticias — */
.section-archive {
  padding-top: 120px;
  padding-bottom: 80px;
}

.section-archive__header {
  margin-bottom: 40px;
}

.section-archive .news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 2rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-archive .news-card {
  border: 2px solid var(--color-dark);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  height: 100%;
  transition: transform var(--transition);
  text-decoration: none;
  color: var(--color-dark);
  position: relative;
  box-shadow: none;
}

.section-archive .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-dark);
  box-shadow: none;
}

.section-archive .news-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-archive .news-card__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  margin: 0;
}

.section-archive .news-card__desc {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--color-dark);
  text-transform: uppercase;
}

.section-archive .news-card__btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-dark);
}

.section-archive .news-card__image {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.section-archive .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid layout archive */
.section-archive .news-card--featured {
  grid-column: 1 / 13;
  grid-row: 1;
}

.section-archive .news-card--featured .news-card__img-wrap {
  aspect-ratio: 16 / 6;
}

.section-archive .news-grid__sidebar {
  grid-column: 9 / 13;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
}

.news-grid__sidebar .news-card--3 {
  flex-grow: 1;
}

.section-archive .news-card--1 {
  grid-column: span 4;
  grid-row: 2;
}

.section-archive .news-card--2 {
  grid-column: span 4;
  grid-row: 2;
}

.section-archive .news-card--4 {
  grid-column: span 8;
  grid-row: 3;
}

.section-archive .news-card--4 .news-card__img-wrap {
  aspect-ratio: 16 / 5;
}

.news-card--1 .news-card__img-wrap,
.news-card--2 .news-card__img-wrap {
  aspect-ratio: 1 / 1;
}

.news-card--3 {
  height: 100%;
}

.news-card--3 .news-card__img-wrap {
  height: 100%;
}

.news-footer {
  margin-top: 2rem;
}

.news-footer button {
  width: 100%;
  display: block;
  text-decoration: underline;
  font-weight: 700;
  padding: 1.25rem;
}

/* ── Single Post: Hero 2 columnas (texto | imagen) ── */

/*
 * La sección es ahora <header class="section-single-post">
 * (ya no hereda de .section-archive, se gestiona aquí)
 */
.section-single-post {
  padding-top: clamp(100px, 12vh, 150px); /* espacio de separación seguro para el nav fijo */
  padding-bottom: 0;
  overflow: hidden; /* contiene el margin-right negativo de la imagen */
}

/* Fila hero — flex a 2 columnas */
.post-hero {
  display: flex;
  align-items: stretch;
  min-height: clamp(500px, 65vh, 750px); /* altura mínima responsiva y fluida aumentada para laptop */
  border-bottom: 1px solid var(--color-border);
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* Columna texto: anchura fija (50%), crece en altura con el contenido */
.post-hero__text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
  padding-top: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(16px, 2vw, 24px); /* igualado al padding-top de post-meta para simetría vertical */
  padding-right: clamp(24px, 4vw, 64px);
}

/* Columna imagen: anchura fija (50%), imagen cubriéndola completa */
.post-hero__image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-cream);
  margin-right: calc(-1 * var(--container-px)); /* sangría al borde */
}

.post-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Responsive: apila en móvil */
@media (max-width: 768px) {
  .post-hero {
    flex-direction: column;
    min-height: auto;
  }

  .post-hero__text {
    flex: none;
    padding-right: 0;
  }

  .post-hero__image {
    position: relative;
    flex: none;
    margin-right: calc(-1 * var(--container-px));
    margin-left:  calc(-1 * var(--container-px));
    aspect-ratio: 16 / 9;
  }

  .post-hero__image img {
    position: absolute;
  }
}

/* Categoría */
.post-category {
  margin: 0;
  color: var(--color-archive-muted);
}

.section-archive__header .text-indices,
.post-header .text-indices {
  color: #DBCCB9;
}

/* H1 del artículo — clamp de 3 paradas */
.single-post .t-h1,
.single-article .t-h1 {
  font-size: clamp(1.5rem, 0.8rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #242424;
  margin: 0;
}

/* Meta (tiempo de lectura + compartir) */
.post-hero__text .post-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  width: 100%;
}

.post-hero__text .post-meta time,
.post-hero__text .post-meta span {
  font-size: clamp(0.7rem, 0.5vw + 0.6rem, 0.85rem);
  color: var(--color-muted);
}

.post-hero__text .post-meta .post-share a {
  color: #000000;
  font-weight: 600;
}

@media (max-width: 768px) {
  .post-hero__text .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Cuerpo del artículo */
.section-post-body {
  padding-block: clamp(40px, 5vw, 80px);
}

.single-post .post-content {
  max-width: 680px;
  margin-inline: auto;
  font-family: var(--font-body), sans-serif;
}

.single-post .post-content p,
.page-content p,
.editor-styles-wrapper p {
  font-size: 1.25rem; /* 20px */
  line-height: 1.65;
  margin-bottom: 2rem;
  color: #242424;
  word-wrap: break-word;
}

.single-post .post-content .is-lead,
.page-content .is-lead {
  font-size: clamp(1.375rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
  color: #6b6b6b;
  margin-bottom: 3.5rem;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6,
.single-post .wp-block-heading,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content .wp-block-heading,
.editor-styles-wrapper .wp-block-heading {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #242424;
}

.single-post .post-content h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
}

.single-post .post-content h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
}

.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
}

.single-post .wp-block-quote {
  margin: 3.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid #242424;
}

.single-post .wp-block-quote p {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 1.5rem;
  color: #242424;
}

.single-post .post-content ul,
.page-content ul,
.editor-styles-wrapper ul {
  font-size: 1.25rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: #242424;
  list-style-type: disc;
}

.single-post .post-content ol,
.page-content ol,
.editor-styles-wrapper ol {
  font-size: 1.25rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: #242424;
  list-style-type: decimal;
}

.single-post .post-content li,
.page-content li,
.editor-styles-wrapper li {
  margin-bottom: 0.5rem;
}

.single-post .wp-block-quote cite {
  display: block;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  color: #6b6b6b;
}

.single-post .wp-block-image {
  margin: 3.5rem -10%; /* Makes image slightly wider than text column */
  max-width: 120%;
}

.single-post .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.single-post .wp-block-image figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-top: 1rem;
}

.single-post .post-footer {
  max-width: 680px;
  margin-inline: auto;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5rem;
}


/* ════════════════════════════════════════════════════════════════
   17. BREAKPOINTS MÃ“VIL / TABLET
   ════════════════════════════════════════════════════════════════ */

/* â‰¤ 1200px */
@media (max-width: 1200px) {
  .site-nav__megamenu {
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
  }

  .hero-productos__title-wrap {
    flex: 0 0 55%;
  }

  .hero-productos__desc-wrap {
    flex: 0 0 45%;
  }
}

/* â‰¤ 1023px */
@media (max-width: 1023px) {

  .image,
  .main {
    grid-column: span 12;
  }

  .aside-col {
    margin-top: 40px;
  }

  .newsletter__form {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter__form .btn {
    grid-column: span 2;
    justify-self: start;
  }

  .newsletter__desc {
    border-left: none;
    border-top: 0.5px solid var(--color-border);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* â‰¤ 992px */
@media (max-width: 992px) {
  .hero-productos__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-productos__title-wrap,
  .hero-productos__desc-wrap {
    width: 100%;
  }

  .hero-productos__container {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .section-archive .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-archive .news-grid__sidebar,
  .section-archive .news-card--featured,
  .section-archive .news-card--1,
  .section-archive .news-card--2,
  .section-archive .news-card--3,
  .section-archive .news-card--4,
  .section-archive .news-footer {
    grid-column: span 2;
    grid-row: auto;
  }
}

/* â‰¤ 896px (breakpoint principal) */
@media (max-width: 896px) {

  /* Grid: todo a full-width salvo excepciones */
  .row>* {
    grid-column: span 12;
  }

  .stats.row>* {
    grid-column: span 6;
  }

  /* Header & Nav Mobile Refinement */
  .site-header__top {
    display: none; /* Ocultamos barra superior en mobile */
  }

  .site-header__main {
    padding: 16px 20px; /* Padding consistente */
  }

  .site-header__inner {
    padding-inline: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 10001; /* Por encima del overlay */
  }

  .site-nav {
    display: none; /* El nav original se oculta en mobile */
  }

  /* Colecciones */
  .collection-card {
    padding-inline: clamp(20px, 3.5vw, 40px);
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
  }

  /* Newsletter */
  .newsletter__input-group {
    grid-template-columns: 1fr;
  }

  .newsletter__input:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-dark);
  }

  .newsletter__submit-wrap {
    grid-column: span 1;
    justify-content: flex-start;
  }

  /* Footer */
  .footer__center,
  .footer__right {
    align-items: flex-start;
    text-align: left;
    margin-top: 48px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  /* NUBA */
  .nuba__gallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
    padding-bottom: 40px;
  }

  .nuba__img-left,
  .nuba__img-center,
  .nuba__img-right {
    margin-bottom: 0;
    aspect-ratio: auto;
  }

  .nuba__img-right .nuba__cta-container {
    position: static;
    margin-bottom: 16px;
  }

  .nuba__cta-container {
    justify-content: flex-start;
  }

  .nuba__medusa {
    width: 80%;
    height: auto;
    top: 5%;
    opacity: 0.25;
  }

  .nuba__header {
    margin-bottom: 40px;
  }

  /* Brand */
  .headline,
  #brand-headline {
    padding-top: 40px;
  }

  /* News (sección home) */
  .section-home-news .news__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .section-home-news .news-card--3 .news-card__image {
    aspect-ratio: 16 / 9;
  }


  /* Single news */
  .single-news .post-header,
  .single-news .post-content,
  .single-news .post-footer {
    max-width: 100%;
  }

  .single-news .post-featured-image-wrap {
    aspect-ratio: 4 / 3;
    margin-inline: calc(var(--container-px) * -1);
    width: calc(100% + var(--container-px) * 2);
    max-width: none;
  }

  /* Archive */
  .section-archive .news-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-archive .news-card {
    padding: 1.5rem;
  }

  .section-archive .news-card__img-wrap {
    aspect-ratio: auto;
  }

  .section-archive .news-footer {
    justify-content: center;
  }

  /* Login */
  .login-form {
    padding-left: 0;
  }
}

/* â‰¤ 768px */
@media (max-width: 768px) {
  .col-12-mobile {
    grid-column: span 12;
  }
  
  .hero-acerca {
    height: 80vh;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-acerca__title {
    margin-inline: auto;
    max-width: 100%;
  }

  .hero-productos {
    height: auto;
    min-height: 100vh;
  }

  .hero-productos__container {
    height: auto;
    min-height: calc(100vh - 140px);
    justify-content: flex-start;
    gap: 60px;
  }

  .hero-productos__bottom {
    margin-top: auto;
  }

  .hero-productos__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-productos__desc {
    font-size: 16px;
  }

  #news-headline-real,
  #newsletter-headline,
  #nuba-headline {
    padding-top: 40px;
  }
}

/* â‰¤ 1700px — ajustes de titulares */
@media (max-width: 1700px) {
  .eyebrow-col {
    grid-column: span 12;
    margin-bottom: 1.5rem; /* Separación un poco más amplia para que quede encima del título */
  }

  /* Eyebrows — colapsan a posición relativa */
  .eyebrow,
  .news__eyebrow,
  .newsletter__eyebrow,
  .nuba__eyebrow {
    position: relative;
    right: auto;
    top: auto;
    margin-right: 0;
    margin-bottom: 0;
  }

  .top-row .header {
    grid-column: span 8;
  }

  .hero-acerca {
    min-height: 600px;
  }

  .section-home-news .row.mb-l {
    margin-bottom: 0;
  }

  .news__header {
    margin-top: 50px;
  }

  /* Reorganización Section Brand Bottom Row (1700px a 1024px) */
  .section-brand .row--stretch > .image,
  .section-brand .row--stretch > .main {
    grid-column: span 6;
  }
  
  .section-brand .row--stretch > .aside-col {
    grid-column: span 12;
  }
  
  .section-brand .aside {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--gutter);
  }
  
  .section-brand .aside-title {
    margin-bottom: 0;
    margin-inline: 0;
    max-width: none;
    flex: 0 0 calc(50% - (var(--gutter) / 2));
  }
  
  .section-brand .stats {
    flex: 0 0 calc(50% - (var(--gutter) / 2));
  }
}

/* â‰¤ 1400px — NUBA eyebrow & Section Brand Layout */
@media (max-width: 1400px) {
  .nuba__eyebrow {
    position: relative;
    right: auto;
    top: auto;
    margin-bottom: 0;
  }


}

/* â‰¤ 1024px */
@media (max-width: 1024px) {
  .hero-acerca {
    min-height: 500px;
    background-position: 40% center;
  }

  /* Section Brand - 1024px a una columna */
  .section-brand .row--stretch > .image,
  .section-brand .row--stretch > .main,
  .section-brand .row--stretch > .aside-col {
    grid-column: span 12;
  }

  .section-brand .aside {
    flex-direction: column;
    text-align: center;
  }

  .section-brand .aside-title {
    width: 100%;
    margin-bottom: clamp(16px, 2vw, 32px);
    margin-inline: auto;
  }

  .section-brand .stats {
    width: 100%;
  }
}

/* min-width: 768px */
@media (min-width: 768px) {
  .login-form {
    padding-left: 2rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   18. WordPress — clases específicas
   ════════════════════════════════════════════════════════════════ */

body.page-template-colecciones {
  background-color: var(--color-white);
}

.col-hidden-mobile {
  @media (max-width: 896px) {
    display: none;
  }
}

/* — Global Newsletter Styles — */
.newsletter__input {
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-size: 20px !important;
}

.newsletter__input::placeholder {
  font-size: 20px !important;
}

/* — Header Archive Indices Color — */
.section-archive__header .text-indices,
.post-header .text-indices {
  color: #DBCCB9 !important;
}


/* — Post Single Footer & Share — */
.post-footer {
  margin-top: 5rem;
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 24px;
}

.post-share .text-muted {
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-right: 8px;
}

.post-share a {
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.post-share a:hover {
  opacity: 0.6;
}


/* --- News Archive Grid (Irregular + max 3 cols) --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: 60px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white, #fff);
  border: 1px solid var(--color-border, #d1d3d4);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--color-dark, #2b2b2b);
}

.news-card__link-overlay, .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 24px);
  gap: 16px;
}

.news-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__eyebrow, .news-card__desc {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-dark-gray, #666);
}

.news-card__title {
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.news-card__action, .news-card__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card__action .btn-icon-circle, .news-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__img-wrap, .news-card__image {
  flex: 1;
  display: flex;
  padding: clamp(16px, 2vw, 24px);
  align-items: stretch;
  justify-content: center;
}

.news-card__img-wrap img, .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

/* Featured (Full width) */
.news-card--featured {
  grid-column: 1 / -1;
}
.news-card--featured .news-card__img-wrap img {
  max-height: 450px;
}

/* Col 1 & 2 standard cards */
.news-card--1 {
  grid-column: 1;
}
.news-card--2 {
  grid-column: 2;
}

/* Wide card taking col 1 & 2 */
.news-card--4 {
  grid-column: 1 / span 2;
}
.news-card--4 .news-card__img-wrap img {
  max-height: 280px;
}

/* Sidebar occupying col 3, rows 2 & 3 */
.news-grid__sidebar {
  grid-column: 3;
  grid-row: 2 / span 2;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.news-grid__sidebar .news-card--3 {
  flex: 1;
}
.news-grid__sidebar .news-card--3 .news-card__img-wrap {
  
}
.news-grid__sidebar .news-card--3 .news-card__img-wrap img {
  height: 100%;
  object-fit: cover;
}

.news-footer {
  margin-top: auto;
}
.news-footer .btn {
  width: 100%;
  text-align: center;
}

/* For infinite load fallback items */
.news-card:not([class*="news-card--"]) {
  grid-column: span 1;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid__sidebar {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card--featured, .news-card--1, .news-card--2, .news-card--4, .news-grid__sidebar {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .news-card__img-wrap img, .news-card__image img {
    min-height: 200px;
  }
}

.news-grid .news-footer { order: 999; }

.news-card--appended {
  grid-column: span 1;
}


.news-grid__appended-wrapper {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
}
@media (max-width: 1024px) {
  .news-grid__appended-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .news-grid__appended-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --- Skeleton Loader --- */
.skeleton {
    border-color: var(--color-border, #e5e5e5);
    pointer-events: none;
}
.skeleton .product-card__image-wrap,
.skeleton .news-card__img-wrap {
    padding: 0;
}

/* Base shapes for skeleton items */
.skeleton-img, .skeleton-text {
    position: relative;
    overflow: hidden;
    background: #DBCCB9;
    border-radius: 4px;
}
.skeleton-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
}
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}
.skeleton-text.short {
    width: 60%;
}

/* User's Shimmer Effect */
.skeleton-img::after, .skeleton-text::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ─── 10. Estilos de Bloques (API) ───────────────────────────── */

/* Imagen: Bordes Suaves */
.wp-block-image.is-style-betik-rounded img {
    border-radius: 12px;
}

/* Imagen: Sombra Elegante */
.wp-block-image.is-style-betik-shadow img {
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-image.is-style-betik-shadow img:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.16);
}


/* ─── 19. Artículos Relacionados (Single Post) ───────────────── */

.section-related-posts {
  padding-block: var(--section-py);
  border-top: var(--border-thick) solid var(--color-dark);
  background-color: var(--color-white);
}

.related-posts__eyebrow {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

/* Tarjeta relacionada */
.related-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color-dark);
  text-decoration: none;
  color: var(--color-dark);
  background: var(--color-white);
  transition: transform var(--transition);
  overflow: hidden;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-cream);
  flex-shrink: 0;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.related-card:hover .related-card__image img {
  transform: scale(1.04);
}

.related-card__image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-cream);
}

.related-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--color-dark);
  position: relative;
}

.related-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.related-card__cat {
  font-size: clamp(0.7rem, 0.5vw + 0.6rem, 0.8rem);
  color: var(--color-dark);
}

.related-card__date {
  font-size: clamp(0.65rem, 0.4vw + 0.55rem, 0.75rem);
  white-space: nowrap;
}

.related-card__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 clamp(8px, 1vw, 14px);
  flex-grow: 1;
}

.related-card__excerpt {
  font-size: clamp(0.8rem, 0.6vw + 0.65rem, 0.9rem);
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

.related-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  margin-top: clamp(12px, 1.5vw, 20px);
  align-self: flex-end;
  flex-shrink: 0;
  transition: background-color var(--transition), color var(--transition);
}

.related-card:hover .related-card__arrow {
  background-color: var(--color-dark);
  color: var(--color-white);
}

@media (max-width: 896px) {
  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-posts__grid .related-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .related-posts__grid .related-card:last-child {
    grid-column: span 1;
  }
}

/* --- Ajustes específicos para páginas (page.php) --- */
.section-page {
  padding-bottom: 40px !important;
}

/* Espaciado para secciones y bloques del contenido */
.page-content > h2,
.page-content > h3,
.page-content > section,
.page-content > .wp-block-group,
.page-content > .wp-block-columns,
.page-content > .wp-block-cover {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Reducir tamaño de h1, h2, h3 en páginas usando clamp */
.page-header-sand h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 1rem;
}

/* Espaciado responsivo y ancho entre columnas en páginas */
.page-content .wp-block-columns,
.post-content .wp-block-columns {
  gap: clamp(32px, 6vw, 80px) !important;
}
