/*
Theme Name: Nuova Terra
Theme URI: https://www.nuovaterra.com.mx
Author: Nuova Terra
Description: Tema a medida para Nuova Terra — vinos naturales. Compatible con WooCommerce y con páginas hechas en Elementor.
Version: 1.0.17
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: nuova-terra
WC requires at least: 7.0
*/

/* ---------- Tipografías ---------- */
/* Kleisch LL: versión TRIAL. Comprar licencia web antes de publicar y reemplazar estos archivos. */
@font-face { font-family: "Kleisch"; src: url("assets/fonts/kleisch-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Kleisch"; src: url("assets/fonts/kleisch-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kleisch"; src: url("assets/fonts/kleisch-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Kleisch"; src: url("assets/fonts/kleisch-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Marca ---------- */
:root {
  --cafe: #5f332a;
  --cafe-70: rgba(95, 51, 42, .7);
  --cafe-40: rgba(95, 51, 42, .4);
  --cafe-20: rgba(95, 51, 42, .2);
  --cafe-08: rgba(95, 51, 42, .08);
  --naranja: #fd723c;
  --naranja-texto: #e5603a;
  --olivo: #a9a766;
  --azul: #a7b5da;
  --rosa: #efc3be;
  --marfil: #f9f4eb;
  --serif: "Kleisch", "Iowan Old Style", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --ancho: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--cafe);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--naranja-texto); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.nt-wrap { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nt-mono { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }

/* ---------- Botones y etiquetas ---------- */
.nt-btn, .nt-content .button, .woocommerce .nt-content a.button, .woocommerce .nt-content button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .03em; line-height: 1;
  padding: 7px 12px; border: 1px solid var(--cafe); border-radius: 5px;
  background: transparent; color: var(--cafe); cursor: pointer; transition: background .2s, color .2s;
}
.nt-btn:hover { background: var(--cafe); color: var(--marfil); }
.nt-btn--solid { background: var(--cafe); color: var(--marfil); }
.nt-btn--solid:hover { background: #4a2620; color: var(--marfil); }
.nt-btn--ghost { border-color: transparent; background: var(--cafe-08); }
.nt-btn--ghost:hover, .nt-btn--ghost.is-active { background: var(--cafe-20); color: var(--cafe); }
.nt-btn[disabled], .nt-btn.is-disabled { opacity: .35; pointer-events: none; }

.nt-tag {
  display: inline-block; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  line-height: 1; padding: 4px 6px 3px; border-radius: 3px; background: var(--rosa); color: var(--cafe);
}
.nt-tag--tinto { background: var(--cafe); color: var(--marfil); }
.nt-tag--blanco { background: #e6e3b8; }
.nt-tag--rosado, .nt-tag--rose { background: var(--rosa); }
.nt-tag--naranja, .nt-tag--orange { background: var(--naranja); color: var(--marfil); }
.nt-tag--espumoso, .nt-tag--pet-nat, .nt-tag--petnat { background: var(--azul); }
.nt-tag--vermut, .nt-tag--sidra, .nt-tag--dulce { background: var(--olivo); color: var(--marfil); }

/* ---------- Header ---------- */
.nt-header { position: sticky; top: 0; z-index: 50; background: var(--marfil); }
.admin-bar .nt-header { top: 32px; }
.nt-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nt-logo img { height: 28px; width: auto; }
.nt-nav { display: flex; align-items: center; gap: 6px; }
.nt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nt-nav li { position: relative; }
.nt-nav a { display: block; font-family: var(--mono); font-size: 13px; padding: 8px 13px; border-radius: 6px; }
.nt-nav a:hover { color: var(--cafe); background: var(--cafe-08); }
.nt-nav .current-menu-item > a, .nt-nav .current-menu-ancestor > a, .nt-nav .current_page_item > a, .nt-nav .is-current > a { background: var(--cafe-08); }
.nt-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; max-height: 70vh; overflow: auto; flex-direction: column; gap: 0; padding: 8px; background: var(--marfil); border: 1px solid var(--cafe-20); border-radius: 8px; }
.nt-nav li:hover > .sub-menu, .nt-nav li:focus-within > .sub-menu { display: flex; }
.nt-nav .sub-menu a { font-size: 12px; padding: 6px 10px; }
.nt-cart { position: relative; display: inline-flex; padding: 8px; }
.nt-cart svg { width: 18px; height: 18px; }
.nt-cart__count { position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--naranja); color: var(--marfil); font: 10px/16px var(--mono); text-align: center; padding: 0 3px; }
.nt-cart__count:empty, .nt-cart__count[data-count="0"] { display: none; }
.nt-burger { display: none; background: none; border: 0; padding: 8px; color: var(--cafe); cursor: pointer; }
.nt-burger svg { width: 22px; height: 22px; }

/* Header sobre el hero (inicio) */
.nt-header--overlay { position: absolute; left: 0; right: 0; background: transparent; }
.nt-header--overlay .nt-logo { visibility: hidden; }
.nt-header--overlay .nt-nav a:hover { background: rgba(249, 244, 235, .45); }

/* ---------- Footer ---------- */
.nt-footer { background: var(--naranja); color: var(--cafe); }
.nt-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.nt-footer__seal img { width: 40px; height: auto; }
.nt-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px 40px; flex-wrap: wrap; }
.nt-footer a, .nt-footer__copy { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.nt-footer a:hover { color: var(--marfil); }

/* ---------- Inicio ---------- */
.nt-home { position: relative; }
.nt-hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--marfil);
  padding: calc(var(--header-h) + 24px) var(--gutter) 72px;
}
/* Fondo fijo por defecto. Con "Animar el paisaje" (Personalizar → Nuova Terra) respira en ciclos de 4.8 s como el video; main.js usa WebGL si puede. */
.nt-hero__bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.nt-hero--motion .nt-hero__bg { inset: -6%; background-position: center 70%; filter: blur(clamp(2px, .32vw, 6px)); animation: nt-drift 4.8s ease-in-out infinite; transform-origin: 50% 20%; will-change: transform; }
.nt-hero canvas.nt-hero__wave { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); display: block; filter: blur(clamp(2px, .32vw, 6px)); }
.nt-hero.is-waving .nt-hero__bg { visibility: hidden; animation: none; }
.nt-hero--motion::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nt-hero__content { position: relative; z-index: 1; }
.nt-hero__down { position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%); width: 36px; height: 36px; border: 1px solid var(--cafe); border-radius: 50%; display: grid; place-items: center; animation: nt-bob 2.4s ease-in-out infinite; }
@keyframes nt-drift {
  0%, 100% { transform: scale(1.12) scaleY(1); }
  56% { transform: scale(1.12) scaleY(1.05); }
}
@keyframes nt-rock { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-4deg); } }
@keyframes nt-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* Manifiesto */
.nt-manifesto { padding: clamp(72px, 10vw, 140px) 0; }
.nt-manifesto__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nt-manifesto__aside { position: sticky; top: calc(var(--header-h) + 40px); background: var(--marfil); }
.nt-manifesto__art { mix-blend-mode: multiply; width: 100%; max-width: 420px; margin: 0 auto; }
.nt-manifesto__title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--naranja-texto); margin-bottom: 28px; }
.nt-manifesto__p { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.3; max-width: 24em; margin-bottom: 1.1em; text-wrap: pretty; }
.nt-manifesto__lead { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; color: var(--naranja-texto); max-width: 14em; margin-bottom: .7em; text-wrap: balance; }
.nt-manifesto__sign { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--cafe-20); }
.nt-manifesto__sign img { height: 26px; width: auto; }
.nt-manifesto__sign span { font-size: 22px; font-style: italic; }
.nt-manifesto__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Industria: formularios de mayoristas */
.nt-trade { padding: 48px 0 96px; }
.nt-trade__head { max-width: 760px; margin-bottom: 48px; }
.nt-trade__head h1 { font-size: clamp(40px, 5vw, 64px); color: var(--naranja-texto); }
.nt-trade__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.nt-trade__grid--single { grid-template-columns: minmax(0, 560px); }
.nt-form { border-top: 1px solid var(--cafe-40); padding-top: 24px; }
.nt-form h2 { font-size: 30px; margin-bottom: 16px; }
.nt-form__rules { list-style: none; margin: 0 0 24px; padding: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; color: var(--cafe-70); }
.nt-form__rules li { padding: 6px 0; border-bottom: 1px solid var(--cafe-20); }
.nt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nt-field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.nt-field input, .nt-field textarea { width: 100%; border: 1px solid var(--cafe-40); border-radius: 6px; background: transparent; padding: 11px 12px; font: 300 17px var(--serif); color: var(--cafe); }
.nt-field input:focus, .nt-field textarea:focus { outline: 2px solid var(--naranja); outline-offset: 0; border-color: transparent; }
.nt-field textarea { min-height: 120px; resize: vertical; }
.nt-form .nt-btn--solid { padding: 12px 18px; font-size: 13px; margin-top: 8px; }
.nt-form__hp { position: absolute; left: -9999px; }
.nt-notice { padding: 14px 16px; border-radius: 6px; background: rgba(169, 167, 102, .25); margin-bottom: 32px; font-size: 17px; }
.nt-notice--error { background: rgba(253, 114, 60, .15); }

/* Productor */
.nt-prod__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 40px; padding-bottom: 64px; }
.nt-prod__top--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nt-prod__hero { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.nt-prod__hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nt-prod__where { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cafe-70); margin-bottom: 14px; }
.nt-prod__name { color: var(--naranja-texto); font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 10px; }
.nt-prod__subtitle { font-size: 22px; font-style: italic; margin-bottom: 32px; }
.nt-prod__intro .nt-specs { margin-bottom: 28px; }
.nt-prod__story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: 64px; }
.nt-prod__text p { font-size: 19px; line-height: 1.5; max-width: 34em; }
.nt-prod__text p:first-child { font-size: 26px; line-height: 1.25; }
.nt-prod__map { margin: 0; }
.nt-prod__map img { mix-blend-mode: multiply; width: 100%; }
.nt-prod__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 40px; }
.nt-prod__gallery--1 { grid-template-columns: minmax(0, 1fr); }
.nt-prod__gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nt-prod__gallery figure { margin: 0; }
.nt-prod__gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nt-prod .nt-post-nav { padding-bottom: 64px; margin-top: 24px; }
.nt-hero__brand { position: relative; display: inline-block; width: min(640px, 78vw); }
.nt-hero__wordmark { width: 100%; height: auto; }
.nt-hero__seal { position: absolute; right: -2%; top: 78%; width: 15%; transform: rotate(-8deg); }
.nt-hero--motion .nt-hero__seal { animation: nt-rock 4.8s ease-in-out infinite; }
.nt-hero__tagline { margin: .4em auto 0; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.12; font-weight: 300; max-width: 16em; }

/* ---------- Vino natural ---------- */
.nt-vn-hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px var(--gutter); background: var(--marfil) center / cover no-repeat;
}
.nt-vn-hero h1 { font-size: clamp(40px, 5.4vw, 64px); max-width: 8em; margin-bottom: .55em; }
.nt-vn-hero__intro { max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; }
.nt-vn-hero__seal { width: 46px; margin: 24px auto 40px; }
.nt-vn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 64px 0; }
.nt-vn-group__media { position: sticky; top: calc(var(--header-h) + 40px); background: var(--marfil); }
.nt-vn-group__media img { mix-blend-mode: multiply; width: 100%; max-width: 520px; margin: 0 auto; }
.nt-vn-group--reverse .nt-vn-group__media { order: -1; }
.nt-vn-principle { max-width: 340px; margin: 0 auto 96px; text-align: center; font-size: 15px; }
.nt-vn-principle:last-child { margin-bottom: 0; }
.nt-vn-principle h2 { color: var(--naranja-texto); font-size: 26px; margin-bottom: .6em; }

.nt-section-title { font-size: clamp(28px, 3vw, 36px); margin-bottom: 24px; }
.nt-bestsellers { padding: 40px 0 80px; }
.nt-bestsellers__more { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ---------- Tarjeta de producto ---------- */
.nt-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 24px; }
.nt-card { position: relative; text-align: center; }
.nt-card__tag { position: absolute; top: 0; left: 12%; z-index: 2; }
.nt-card__media { position: relative; display: block; height: 260px; background: var(--marfil); }
/* Hojas detrás de la botella (como en el Figma). Solo aparecen cuando main.js ya
   recortó el fondo blanco de la foto (.is-cut), así nunca alteran la etiqueta. */
.nt-card__media::before {
  content: ""; position: absolute; inset: 0 -6%; background: url("assets/img/hojas.webp") center / contain no-repeat;
  mix-blend-mode: multiply; opacity: 0; transition: opacity .35s; pointer-events: none;
}
.nt-card__media img { mix-blend-mode: multiply; position: relative; height: 100%; width: auto; margin: 0 auto; object-fit: contain; }
.nt-card__name { display: block; font-size: 21px; margin-top: 10px; }
.nt-card__desc { display: none; }
.nt-card__meta, .nt-card__price { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--cafe-70); }
.nt-card__price { font-size: 11px; color: var(--cafe); }
.nt-card__hover { opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.nt-card__hover .nt-btn { margin-top: 6px; font-size: 11px; padding: 5px 9px; }
.nt-card:hover .nt-card__media.is-cut::before, .nt-card:focus-within .nt-card__media.is-cut::before { opacity: 1; }
.nt-card:hover .nt-card__hover, .nt-card:focus-within .nt-card__hover { opacity: 1; transform: none; }
@media (hover: none) { .nt-card__hover { opacity: 1; transform: none; } }

/* Vista lista */
.nt-products.is-list { display: block; }
.is-list .nt-card { display: grid; grid-template-columns: 84px minmax(0, 1.6fr) minmax(0, 1.1fr) 120px 110px; align-items: baseline; gap: 16px; text-align: left; padding: 20px 0; border-bottom: 1px solid var(--cafe-40); }
.is-list .nt-card__tag { position: static; background: none !important; color: var(--cafe) !important; padding: 0; grid-column: 1; grid-row: 1; }
.is-list .nt-card__media { display: none; }
.is-list .nt-card__name { margin: 0; font-size: 24px; grid-column: 2; grid-row: 1; }
.is-list .nt-card__desc { grid-column: 2; grid-row: 2; font-size: 14px; max-width: 26em; display: block; max-height: 0; overflow: hidden; transition: max-height .3s; }
.is-list .nt-card:hover .nt-card__desc { max-height: 8em; }
.is-list .nt-card__hover { display: contents; opacity: 1; transform: none; }
.is-list .nt-card__meta { grid-column: 3; grid-row: 1; }
.is-list .nt-card__price { grid-column: 4; grid-row: 1; font-size: 15px; }
.is-list .nt-card__buy { grid-column: 5; grid-row: 1; justify-self: start; }
.is-list .nt-card__buy .nt-btn { margin: 0; }

/* ---------- Tienda ---------- */
.nt-toolbar { border-top: 1px solid var(--cafe-20); border-bottom: 1px solid var(--cafe-20); }
.nt-toolbar .nt-wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.nt-toolbar__left, .nt-toolbar__right { display: flex; align-items: center; height: 100%; gap: 6px; }
.nt-toolbar__left { border-right: 1px solid var(--cafe-20); padding-right: 12px; }
.nt-toolbar__right { border-left: 1px solid var(--cafe-20); padding-left: 12px; }
.nt-toolbar__count { font-family: var(--mono); font-size: 11px; color: var(--cafe-70); margin-left: 12px; }
.nt-view-btn { background: none; border: 0; padding: 6px; border-radius: 5px; color: var(--cafe-70); cursor: pointer; line-height: 0; }
.nt-view-btn svg { width: 14px; height: 14px; }
.nt-view-btn.is-active { background: var(--cafe-08); color: var(--cafe); }
.nt-shop { padding: 48px 0 96px; }
.nt-shop__title { font-size: clamp(36px, 4vw, 52px); margin-bottom: 32px; }
.nt-empty { padding: 64px 0; text-align: center; }

/* Panel de filtros */
.nt-filters { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.nt-filters.is-open { visibility: visible; }
.nt-filters__backdrop { position: absolute; inset: 0; background: rgba(95, 51, 42, .18); opacity: 0; transition: opacity .25s; }
.nt-filters__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(400px, 92vw); background: var(--marfil); padding: 28px 28px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease; }
.nt-filters.is-open .nt-filters__backdrop { opacity: 1; }
.nt-filters.is-open .nt-filters__panel { transform: none; }
.nt-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.nt-filters__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--cafe); cursor: pointer; }
.nt-search { position: relative; }
.nt-search input { width: 100%; border: 0; border-radius: 22px; background: var(--cafe-08); padding: 12px 44px 12px 20px; font: 300 17px var(--serif); color: var(--cafe); }
.nt-search input::placeholder { color: var(--cafe-70); }
.nt-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--cafe); cursor: pointer; line-height: 0; }
.nt-filter { border-top: 1px solid var(--cafe-20); padding: 16px 0; }
.nt-filter:last-of-type { border-bottom: 1px solid var(--cafe-20); }
.nt-filter summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.nt-filter summary::-webkit-details-marker { display: none; }
.nt-filter summary span:first-child { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--cafe); border-radius: 12px; padding: 4px 10px; }
.nt-filter summary .nt-filter__arrow { width: 24px; height: 24px; border: 1px solid var(--cafe); border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.nt-filter[open] summary .nt-filter__arrow { transform: rotate(180deg); }
.nt-filter__body { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.nt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.nt-chip span { display: inline-block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 5px 7px 4px; border-radius: 3px; background: var(--naranja); color: var(--cafe); cursor: pointer; }
.nt-chip input:checked + span { background: var(--cafe); color: var(--marfil); }
.nt-chip input:focus-visible + span { outline: 2px solid var(--cafe); outline-offset: 2px; }
.nt-chip--light span { background: transparent; border: 1px solid var(--cafe-40); }
.nt-price-range { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; }
.nt-price-range input { width: 100px; border: 1px solid var(--cafe-40); border-radius: 5px; background: transparent; padding: 6px 8px; font: 13px var(--mono); color: var(--cafe); }
.nt-filters__actions { display: flex; gap: 8px; margin-top: 24px; }

/* Paginación */
.nt-pagination { margin-top: 64px; display: flex; justify-content: center; }
.nt-pagination ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; border: 0 !important; }
.nt-pagination li { border: 0 !important; }
.nt-pagination a, .nt-pagination span { display: block; font: 12px var(--mono); padding: 7px 11px; border-radius: 5px; border: 1px solid var(--cafe-40); }
.nt-pagination .current { background: var(--cafe); color: var(--marfil); border-color: var(--cafe); }

/* ---------- Producto ---------- */
.nt-product { padding: 48px 0 40px; }
.nt-product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.nt-product__media { position: relative; isolation: isolate; background: var(--marfil); display: flex; justify-content: center; padding: 20px 0; }
.nt-product__media::before { content: ""; position: absolute; inset: 4% 8%; background: url("assets/img/hojas.webp") center / contain no-repeat; mix-blend-mode: multiply; pointer-events: none; opacity: 0; transition: opacity .4s; }
.nt-product__media.is-cut::before { opacity: 1; }
.nt-product__media img { mix-blend-mode: multiply; position: relative; max-height: 620px; width: auto; object-fit: contain; }
.nt-product__title { color: var(--naranja-texto); font-size: clamp(44px, 5vw, 64px); margin-bottom: 8px; }
.nt-product__tags { display: flex; gap: 6px; margin-bottom: 28px; }
.nt-product__tags .nt-tag { font-size: 10px; text-transform: none; }
.nt-product__summary { font-size: 20px; line-height: 1.3; margin-bottom: 28px; }
.nt-product__price { font-size: 24px; margin-bottom: 14px; }
.nt-product__price del { opacity: .5; margin-right: 8px; }
.nt-product__price ins { text-decoration: none; }
.nt-product .stock { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--naranja-texto); }
.nt-product form.cart { margin: 0 0 32px; }
.nt-product form.cart .quantity { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 24px; }
.nt-qty-btn { width: 26px; height: 26px; border: 1px solid var(--cafe-40); border-radius: 5px; background: transparent; color: var(--cafe); cursor: pointer; font: 14px/1 var(--mono); }
.nt-product form.cart .qty { width: 34px; height: 26px; border: 0; border-radius: 5px; background: var(--cafe-08); text-align: center; font: 12px var(--mono); color: var(--cafe); -moz-appearance: textfield; }
.nt-product form.cart .qty::-webkit-inner-spin-button, .nt-product form.cart .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nt-product form.cart .single_add_to_cart_button, .nt-product .single_add_to_cart_button.button.alt {
  display: block; width: 100%; padding: 12px; border: 0; border-radius: 6px; background: var(--cafe) !important; color: var(--marfil) !important;
  font: 13px var(--mono) !important; letter-spacing: .04em; cursor: pointer;
}
.nt-product form.cart .single_add_to_cart_button:hover { background: #4a2620 !important; }
.nt-specs { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.nt-specs th, .nt-specs td { text-align: left; vertical-align: top; padding: 5px 0; border-top: 1px solid var(--cafe-40); font-weight: 400; }
.nt-specs tr:last-child th, .nt-specs tr:last-child td { border-bottom: 1px solid var(--cafe-40); }
.nt-specs th { width: 42%; font-weight: 700; }
.nt-specs td { color: var(--cafe-70); }
.nt-specs a { text-decoration: underline; text-underline-offset: 2px; }
.nt-product__desc { margin-top: 32px; font-size: 16px; }
.nt-more { padding: 56px 0 96px; }
.nt-more .nt-products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding-bottom: 12px; }
.nt-more .nt-card { flex: 0 0 calc(25% - 18px); scroll-snap-align: start; }

/* ---------- Productores ---------- */
.nt-producers { list-style: none; margin: 0; padding: 32px 0 96px; }
.nt-producer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--cafe-40); }
.nt-producer:first-child { border-top: 1px solid var(--cafe-40); }
.nt-producer__name { font-size: 26px; margin: 0; }
.nt-producer__where { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--cafe-70); }
.nt-producer__desc { grid-column: 1 / 2; font-size: 14px; max-height: 0; overflow: hidden; transition: max-height .3s; margin: 0; }
.nt-producer:hover .nt-producer__desc, .nt-producer:focus-within .nt-producer__desc { max-height: 8em; }

/* ---------- Páginas genéricas / Elementor ---------- */
.nt-page { padding: 48px 0 96px; }
.nt-page__title { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 32px; }
.nt-content { font-size: 18px; }
.nt-content > *:not(.alignfull):not(.elementor) { max-width: 760px; }
.nt-content h2 { font-size: 32px; margin-top: 1.5em; }
.nt-content h3 { font-size: 24px; margin-top: 1.4em; }
.nt-content a:not(.button):not(.nt-btn) { text-decoration: underline; text-underline-offset: 3px; }
.nt-content input[type="text"], .nt-content input[type="email"], .nt-content input[type="tel"], .nt-content input[type="number"], .nt-content input[type="password"], .nt-content textarea, .nt-content select {
  border: 1px solid var(--cafe-40); border-radius: 6px; background: transparent; padding: 10px 12px; font: 300 16px var(--serif); color: var(--cafe);
}
.nt-elementor-full .nt-content > * { max-width: none; }
.nt-post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; font-family: var(--mono); font-size: 12px; }

/* WooCommerce: carrito, checkout, avisos */
.woocommerce .nt-content .woocommerce-message, .woocommerce .nt-content .woocommerce-info, .woocommerce .nt-content .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message, .woocommerce-notices-wrapper .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-info {
  border-top-color: var(--naranja); background: rgba(253, 114, 60, .08); color: var(--cafe); font-size: 15px;
}
.woocommerce .nt-content a.button.alt, .woocommerce .nt-content button.button.alt, .woocommerce .nt-content #place_order, .woocommerce .nt-content .checkout-button {
  background: var(--cafe); color: var(--marfil); border-color: var(--cafe); padding: 12px 18px; font-size: 13px;
}
.woocommerce .nt-content table.shop_table { border-color: var(--cafe-20); border-radius: 0; }
.woocommerce .nt-content table.shop_table th, .woocommerce .nt-content table.shop_table td { border-color: var(--cafe-20); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nt-products { grid-template-columns: repeat(3, 1fr); }
  .nt-more .nt-card { flex-basis: calc(33.33% - 16px); }
}
@media (max-width: 800px) {
  :root { --header-h: 64px; }
  .nt-burger { display: inline-flex; }
  .nt-logo img { height: 22px; }
  .nt-nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; background: var(--marfil); border-bottom: 1px solid var(--cafe-20); }
  .nt-nav.is-open ul { display: flex; }
  .nt-nav a { font-size: 15px; padding: 12px 0; }
  .nt-nav .sub-menu { display: none !important; }
  .nt-header--overlay .nt-logo { visibility: visible; }
  .nt-header--overlay .nt-logo img { opacity: 0; }
  .nt-hero__seal { top: 62%; right: -3%; width: 13%; }
  .nt-hero__tagline { max-width: 11em; }
  .nt-card__name { font-size: 18px; }
  .nt-products { grid-template-columns: repeat(2, 1fr); gap: 40px 12px; }
  .nt-card__media { height: 200px; }
  .nt-vn-group { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .nt-vn-group__media { position: static; order: -1; }
  .nt-vn-group__media img { max-width: 280px; }
  .nt-vn-principle { margin-bottom: 56px; }
  .nt-product__grid { grid-template-columns: 1fr; gap: 24px; }
  .nt-product__media img { max-height: 420px; }
  .nt-more .nt-card { flex-basis: 45%; }
  .is-list .nt-card { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .is-list .nt-card__tag { grid-column: 1; grid-row: 1; }
  .is-list .nt-card__name { grid-column: 1; grid-row: 2; font-size: 21px; }
  .is-list .nt-card__meta { grid-column: 1; grid-row: 3; }
  .is-list .nt-card__desc { display: none; }
  .is-list .nt-card__price { grid-column: 2; grid-row: 2; text-align: right; }
  .is-list .nt-card__buy { grid-column: 2; grid-row: 3; justify-self: end; }
  .nt-producer { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .nt-producer__name { font-size: 22px; }
  .nt-producer__where { grid-column: 1; grid-row: 2; }
  .nt-producer .nt-btn { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .nt-producer__desc { display: none; }
  .nt-manifesto__inner { grid-template-columns: 1fr; }
  .nt-manifesto__aside { position: static; }
  .nt-manifesto__art { max-width: 220px; }
  .nt-trade__grid { grid-template-columns: 1fr; }
  .nt-prod__top, .nt-prod__story { grid-template-columns: 1fr; }
  .nt-prod__hero { position: static; }
  .nt-prod__gallery { grid-template-columns: 1fr 1fr; }
  .nt-footer__inner { flex-direction: column; align-items: flex-start; }
  .nt-footer ul { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.nt-vn-group--reverse .nt-vn-group__media img { max-width: 400px; }

/* ---------- Botones del tema por encima de estilos globales (Elementor Kit, plugins) ---------- */
body button.nt-btn, body input.nt-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .03em; line-height: 1; text-transform: none;
  padding: 7px 12px; border: 1px solid var(--cafe); border-radius: 5px; box-shadow: none;
  background: transparent; color: var(--cafe);
}
body button.nt-btn:hover, body button.nt-btn:focus { background: var(--cafe); color: var(--marfil); }
body button.nt-btn--solid { background: var(--cafe); color: var(--marfil); }
body button.nt-btn--solid:hover, body button.nt-btn--solid:focus { background: #4a2620; color: var(--marfil); }
body button.nt-btn--ghost { border-color: transparent; background: var(--cafe-08); color: var(--cafe); }
body button.nt-btn--ghost:hover, body button.nt-btn--ghost:focus, body button.nt-btn--ghost.is-active { background: var(--cafe-20); color: var(--cafe); }
body button.nt-view-btn { background: none; border: 0; padding: 6px; border-radius: 5px; color: var(--cafe-70); box-shadow: none; line-height: 0; }
body button.nt-view-btn:hover, body button.nt-view-btn:focus, body button.nt-view-btn.is-active { background: var(--cafe-08); color: var(--cafe); }
body button.nt-burger, body button.nt-filters__close { background: none; border: 0; box-shadow: none; color: var(--cafe); }
body button.nt-qty-btn { width: 26px; height: 26px; padding: 0; border: 1px solid var(--cafe-40); border-radius: 5px; background: transparent; color: var(--cafe); box-shadow: none; font: 14px/1 var(--mono); }

/* Vinos agotados (solo en la página del productor): se ven, pero apagados. */
.nt-tag--agotado { background: transparent; border: 1px solid var(--cafe-40); color: var(--cafe-70); }
.nt-card.outofstock .nt-card__media img { opacity: .5; }

/* Foto de botella ya recortada (fondo transparente): se ve tal cual, encima de las hojas. */
.nt-card__media img.nt-cut, .nt-product__media img.nt-cut { mix-blend-mode: normal; }

/* Avisos de WooCommerce ("se ha añadido a tu carrito"): una línea discreta, sin barra de color. */
body .woocommerce-notices-wrapper:not(:empty) { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
body .woocommerce-notices-wrapper .woocommerce-message, body .woocommerce-notices-wrapper .woocommerce-info, body .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce .woocommerce-message, body.woocommerce .woocommerce-info, body.woocommerce .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
  margin: 0; padding: 14px 0; list-style: none; background: transparent; border: 0; border-bottom: 1px solid var(--cafe-20); border-radius: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--cafe-70); box-shadow: none;
}
body .woocommerce-notices-wrapper .woocommerce-error, body.woocommerce .woocommerce-error { color: var(--naranja-texto); }
body .woocommerce-notices-wrapper .woocommerce-message::before, body .woocommerce-notices-wrapper .woocommerce-info::before, body .woocommerce-notices-wrapper .woocommerce-error::before,
body.woocommerce .woocommerce-message::before, body.woocommerce .woocommerce-info::before, body.woocommerce .woocommerce-error::before { content: none; display: none; }
body .woocommerce-notices-wrapper .woocommerce-message .button, body .woocommerce-notices-wrapper .woocommerce-info .button,
body.woocommerce .woocommerce-message .button, body.woocommerce .woocommerce-info .button {
  order: 2; float: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--cafe); text-decoration: underline; text-underline-offset: 3px;
}
body .woocommerce-notices-wrapper .woocommerce-message .button:hover, body.woocommerce .woocommerce-message .button:hover { background: none; color: var(--naranja-texto); }

/* Carrito: botones de WooCommerce con los colores de la marca (no el morado por defecto). */
body .woocommerce a.button.alt, body .woocommerce button.button.alt, body .woocommerce input.button.alt {
  background: var(--cafe); color: var(--marfil); border-radius: 6px; font-family: var(--mono); font-weight: 400;
}
body .woocommerce a.button.alt:hover, body .woocommerce button.button.alt:hover { background: #4a2620; color: var(--marfil); }
body .woocommerce .wc-proceed-to-checkout a.checkout-button, body .woocommerce a.checkout-button.button.alt {
  display: block; background: var(--naranja); color: var(--marfil); border: 0; border-radius: 6px; padding: 16px 20px;
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  transition: background .2s;
}
body .woocommerce .wc-proceed-to-checkout a.checkout-button:hover, body .woocommerce a.checkout-button.button.alt:hover { background: var(--naranja-texto); color: var(--marfil); }
body .woocommerce .cart_totals h2 { font-weight: 400; }
body .woocommerce .cart_totals table.shop_table { border: 0; border-top: 1px solid var(--cafe-20); border-radius: 0; }
body .woocommerce .cart_totals table.shop_table th, body .woocommerce .cart_totals table.shop_table td { border-color: var(--cafe-20); padding: 14px 0; background: transparent; }
body .woocommerce .cart_totals table.shop_table th { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cafe-70); }
body .woocommerce .cart_totals .order-total td { font-size: 22px; }

/* Buscador en la barra de la tienda */
.nt-toolbar__search { flex: 1; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; min-width: 0; color: var(--cafe-70); }
.nt-toolbar__search svg { flex: none; width: 15px; height: 15px; }
.nt-toolbar__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; font-family: var(--mono); font-size: 12px; color: var(--cafe); outline: none; }
.nt-toolbar__search input::placeholder { color: var(--cafe-70); }
.nt-toolbar__search:focus-within { color: var(--cafe); background: var(--cafe-08); }
[data-nt-products].is-loading, .nt-pagination.is-loading { opacity: .4; transition: opacity .2s; }
@media (max-width: 600px) { .nt-toolbar__count { display: none; } .nt-toolbar__search { padding: 0 10px; } }

/* Aviso "se ha añadido a tu carrito": tarjeta flotante abajo a la derecha que no
   empuja ni tapa la cuadrícula; se desvanece sola (main.js). */
body .woocommerce-notices-wrapper:not(:empty) {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px;
  transition: opacity .4s, transform .4s;
}
body .woocommerce-notices-wrapper.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
body .woocommerce-notices-wrapper .woocommerce-message, body .woocommerce-notices-wrapper .woocommerce-info, body .woocommerce-notices-wrapper .woocommerce-error,
body .woocommerce-notices-wrapper .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0; padding: 16px 18px; background: var(--marfil); border: 1px solid var(--cafe-20); border-radius: 8px; outline: 0;
  box-shadow: 0 10px 30px rgba(95, 51, 42, .12); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--cafe);
}
body .woocommerce-notices-wrapper .wc-block-components-notice-banner > svg { display: none; }
body .woocommerce-notices-wrapper .wc-block-components-notice-banner__content { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
body .woocommerce-notices-wrapper .wc-block-components-notice-banner .wc-forward, body .woocommerce-notices-wrapper .woocommerce-message .button {
  order: 2; float: none; margin: 0; padding: 7px 12px; background: var(--naranja); color: var(--marfil); border: 0; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; opacity: 1;
}
body .woocommerce-notices-wrapper .wc-block-components-notice-banner .wc-forward:hover, body .woocommerce-notices-wrapper .woocommerce-message .button:hover { background: var(--naranja-texto); color: var(--marfil); }
body .woocommerce-notices-wrapper .woocommerce-error, body .woocommerce-notices-wrapper .wc-block-components-notice-banner.is-error { color: var(--naranja-texto); }
