/*
Theme Name: Neiro Dark
Theme URI: https://neiro.com.ar
Author: Neiro
Author URI: https://neiro.com.ar
Description: Tema oscuro moderno y premium para la tienda Neiro (productos de audio y MIDI). Diseñado para WooCommerce: catálogo, ficha de producto, carrito, checkout y mi cuenta en modo oscuro. Acento volt sobre negro, tipografías Space Grotesk + Inter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neiro-dark
Tags: e-commerce, dark, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  --bg0:      #050506;
  --bg1:      #0b0c0e;
  --surface:  #131417;
  --surface2: #1a1c20;
  --line:     #26282e;
  --line2:    #34373f;

  --text:     #f2f3f5;
  --text2:    #c2c6cd;
  --muted:    #8b919c;

  --accent:      #ccff00;   /* VOLT GREEN — cambiá acá el color de marca */
  --accent-soft: #e5ff7a;
  --accent-dim:  rgba(204, 255, 0, 0.12);
  --accent-glow: rgba(204, 255, 0, 0.38);
  --danger:   #ff5470;

  --radius:     16px;
  --radius-sm:  10px;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-disp: 'Space Grotesk', 'Inter', sans-serif;
  --maxw: 1200px;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-disp);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
p { color: var(--text2); }
strong { color: #fff; }
ul { padding-left: 1.2em; }
::selection { background: var(--accent); color: #0a0a00; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #2a2d33; border-radius: 8px; border: 3px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* Contenedor */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Placeholder cuando no hay imagen */
.hero__visual--empty, .product-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(260px 200px at 50% 30%, var(--accent-dim), transparent 70%),
    var(--surface);
  font-family: var(--font-disp); font-weight: 700; letter-spacing: .3em;
  color: var(--accent-soft);
}
.hero__visual--empty { width: min(430px, 100%); aspect-ratio: 1/1; border-radius: 28px; border: 1px solid var(--line); font-size: 34px; }
.product-card__placeholder { position: absolute; inset: 0; font-size: 18px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--accent); color: #0b0c00;
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-soft); color: #0b0c00; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }
.btn--dark { background: var(--surface2); color: var(--text); }
.btn--dark:hover { background: #23262d; color: #fff; }
a.btn { text-decoration: none; }

/* Etiquetas / badges */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge--sale { background: var(--accent); color: #0b0c00; }

/* Títulos de sección */
.section-head { margin: 0 0 28px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   3. BARRA DE ANUNCIO (theme) + NOTIBAR (plugin compatible)
   ========================================================================== */
.announcement {
  background: linear-gradient(90deg, #0e0f04, #14150a, #0e0f04);
  border-bottom: 1px solid var(--line);
  color: var(--accent-soft);
  text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .05em;
  padding: 10px 16px;
}

/* Si usás el plugin Notibar, lo forzamos al estilo del theme */
.njt-nofi-notification-bar {
  --njt-bar-bg: #101204 !important;
  --njt-bar-color: #e5ff7a !important;
  background: var(--njt-bar-bg, #101204) !important;
  color: var(--njt-bar-color, #e5ff7a) !important;
  border-bottom: 1px solid rgba(204, 255, 0, .3);
  font-family: var(--font-body); font-weight: 600; letter-spacing: .04em;
}
.njt-nofi-button-text {
  --njt-btn-bg: #ccff00 !important;
  background: var(--njt-btn-bg, #ccff00) !important;
  color: #0b0c00 !important;
  font-weight: 700 !important; border-radius: 8px !important;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 6, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(5,5,6,.95); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px;
}
.site-header__logo a {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-weight: 700; font-size: 26px;
  letter-spacing: .01em; color: #fff; text-transform: lowercase;
}
.site-header__logo img { max-height: 46px; width: auto; }
.site-header__logo .mark { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--text2); font-size: 14px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { color: var(--accent-soft); background: var(--accent-dim); }

/* carrito */
.header-cart { position: relative; display: inline-flex; }
.header-cart .cart-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #0b0c00;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.header-cart svg { display: block; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.no-js .reveal { opacity: 1; transform: none; }

/* breadcrumb */
.woocommerce-breadcrumb { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.woocommerce-breadcrumb a { color: var(--text2); }
.woocommerce-breadcrumb a:hover { color: var(--accent-soft); }

/* hamburguesa */
.nav-toggle {
  display: none;
  background: var(--surface2); border: 1px solid var(--line2); color: var(--text);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: background .3s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
body.menu-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ==========================================================================
   5. HERO (portada)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 110px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 82% -12%, var(--accent-dim), transparent 62%),
    radial-gradient(700px 400px at -8% 110%, rgba(120, 160, 255, .10), transparent 60%),
    linear-gradient(180deg, #0a0b08, var(--bg0) 70%);
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 12.5px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px;
}
.hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(92deg, #fff 20%, var(--accent-soft) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__text { font-size: 18px; max-width: 54ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* spec chips */
.hero__specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2); background: var(--surface);
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--text2);
}
.spec-chip i { font-style: normal; color: var(--accent); }

/* visual del producto */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual .glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(28px); z-index: 0;
}
.hero__visual img {
  position: relative; z-index: 1;
  width: min(430px, 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -35px rgba(0, 0, 0, .9), 0 0 0 1px rgba(204, 255, 0, .06);
}
.hero__visual .float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  background: rgba(19, 20, 23, .92); border: 1px solid var(--line2);
  border-radius: 14px; padding: 10px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  animation: float 5s ease-in-out infinite;
}
.hero__visual .float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.hero__visual .float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.float-chip--1 { top: 8%; left: -2%; animation-delay: .4s; }
.float-chip--2 { bottom: 12%; right: -2%; animation-delay: 1.6s; }
@media (max-width: 1100px) { .float-chip--1 { left: 2%; } .float-chip--2 { right: 2%; } }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   6. SECCIONES GENÉRICAS
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(204, 255, 0, .4);
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .9), 0 0 30px -14px var(--accent-glow);
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-dim); border: 1px solid rgba(204, 255, 0, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; margin: 0; }

/* CTA banner */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(600px 300px at 85% 0%, var(--accent-dim), transparent 60%),
    linear-gradient(120deg, #101204, #0b0c0e);
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; }

/* ==========================================================================
   7. CATÁLOGO (grilla de productos)
   ========================================================================== */
.shop-hero {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 340px at 70% -20%, var(--accent-dim), transparent 60%),
    linear-gradient(180deg, #0a0b08, var(--bg0));
}
.shop-hero__title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 8px; }
.shop-hero__desc { max-width: 62ch; color: var(--text2); }
.shop-hero__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 26px;
}
/* toolbar del catálogo */
.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 26px 0 0;
}
.woocommerce .page-title { display: none; }
.woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0; }
.woocommerce-ordering select, .orderby {
  background: var(--surface2); color: var(--text2);
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px;
}

ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none; margin: 46px 0 0; padding: 0;
}
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { ul.products { grid-template-columns: 1fr; } }

/* Landing: tarjetas más grandes y centradas */
ul.products.landing-products {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 420px));
  justify-content: center;
}
@media (max-width: 820px) { ul.products.landing-products { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 480px)); justify-content: center; } }
@media (max-width: 560px) { ul.products.landing-products { grid-template-columns: 1fr; } }
section#catalogo { scroll-margin-top: 96px; }

/* Blindaje: el CSS de layout de WooCommerce (ancho 22%, floats, clearfix)
   no debe aplastar ni desplazar las tarjetas dentro de nuestros grids. */
ul.products::before, ul.products::after { content: none !important; display: none !important; }
ul.products > li.product {
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}
/* La foto debe cubrir el cuadrado (pisa el height:auto de Woo). */
body ul.products li.product a.product-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block; margin: 0;
}

.product-card {
  display: flex; flex-direction: column;
  width: 100%; max-width: 100%; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(204, 255, 0, .5);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95), 0 0 44px -16px var(--accent-glow);
}
.product-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #17181c; }
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
.product-card__title { font-size: 17px; margin: 0; }
.product-card__title a { color: #fff; }
.product-card__title a:hover { color: var(--accent-soft); }
.product-card__price { font-family: var(--font-disp); font-size: 20px; font-weight: 700; color: var(--accent-soft); overflow-wrap: anywhere; }
.product-card__price del { color: var(--muted); font-size: 14px; font-weight: 500; margin-right: 8px; }
.product-card__price ins { text-decoration: none; }
.product-card__actions { margin-top: auto; padding-top: 6px; }
.product-card__actions .button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 16px; border: 1px solid var(--line2); border-radius: 999px;
  background: transparent; color: var(--accent-soft);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product-card__actions .button:hover {
  background: var(--accent); color: #0b0c00; border-color: var(--accent);
  box-shadow: 0 10px 26px -10px var(--accent-glow);
}
.product-card__actions a.btn--ghost { width: 100%; padding: 12px 16px; font-size: 13px; border-radius: 999px; }

/* calificación */
.star-rating { color: var(--accent); font-size: 14px; overflow: hidden; position: relative; height: 1.1em; line-height: 1.1em; width: 5.6em; }
.star-rating::before { content: "★★★★★"; color: #3a3d44; position: absolute; top: 0; left: 0; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.star-rating span::before { content: "★★★★★"; color: var(--accent); }

/* paginación */
.woocommerce-pagination, nav.woocommerce-pagination { margin: 48px 0 0; }
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text2);
}
.woocommerce-pagination ul li a:hover, .woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li .current {
  border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim);
}

/* ==========================================================================
   8. FICHA DE PRODUCTO
   ========================================================================== */
.product-detail { margin: 44px 0 20px; }
.product-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .product-detail__grid { grid-template-columns: 1fr; gap: 32px; } }

/* galería */
.woocommerce-product-gallery {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px;
}
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__wrapper img { border-radius: calc(var(--radius) - 6px); width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.woocommerce-product-gallery .flex-control-thumbs li { flex: 1 1 0; }
.woocommerce-product-gallery .flex-control-thumbs img {
  border: 1px solid var(--line2); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease; opacity: .6; width: 100%;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { border-color: var(--accent); opacity: 1; }
.onsale, .badge--sale {
  background: var(--accent); color: #0b0c00;
}
.woocommerce-product-gallery .onsale, .onsale { border-radius: 999px; padding: 5px 12px; font-weight: 700; }

/* resumen */
.product_title { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 12px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.woocommerce-review-link { color: var(--muted); font-size: 13.5px; }
.price, .product_price {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--accent-soft);
  margin: 18px 0 22px;
}
.price del { color: var(--muted); font-size: 20px; font-weight: 500; }
.price ins { text-decoration: none; }
.product-detail__summary .woocommerce-product-details__short-description p { margin: 0 0 22px; }
.woocommerce-product-details__short-description { margin-bottom: 20px; }

/* cantidad */
.quantity { display: inline-flex; align-items: center; }
.quantity .qty {
  width: 92px; padding: 13px 12px; text-align: center;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
}
.product-detail__summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }

/* botón comprar */
.product-detail__summary .single_add_to_cart_button {
  padding: 14px 34px; border-radius: 999px;
  background: var(--accent); color: #0b0c00;
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--accent-glow);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.product-detail__summary .single_add_to_cart_button:hover {
  background: var(--accent-soft); transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px var(--accent-glow);
}

/* meta */
.product_meta { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 14px; }
.product_meta > span { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 5px; }
.product_meta a { color: var(--accent-soft); }

/* tabs */
.product-detail__below { margin-top: 56px; }
.woocommerce-tabs .tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs .tabs li a {
  display: inline-block; padding: 14px 22px; color: var(--muted);
  font-weight: 600; font-size: 14.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.woocommerce-tabs .tabs li.active a { color: var(--accent-soft); border-bottom-color: var(--accent); }
.woocommerce-Tabs-panel { background: var(--surface); border: 1px solid var(--line); border-top: none; padding: 30px; border-radius: 0 0 var(--radius) var(--radius); }
.woocommerce-Tabs-panel h2 { font-size: 24px; }

/* reseñas */
#reviews .commentlist { list-style: none; margin: 0; padding: 0; }
#reviews .commentlist li { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 14px; }
#reviews .commentlist .comment-text { border: none; padding: 0 0 0 14px; }
#reviews img.avatar { border-radius: 50%; border: 2px solid var(--line2); }
#reviews .meta { color: var(--muted); }
#reviews .woocommerce-review__author { color: #fff; font-weight: 700; }
.comment-reply-title { color: #fff; }
.woocommerce-Reviews-title { font-size: 22px; }

/* relacionado */
.related.products, .upsells.products { margin-top: 64px; }
.related.products > h2, .upsells.products > h2 { font-size: 26px; margin-bottom: 24px; }

/* ==========================================================================
   9. WOOCOMMERCE GENERAL (mensajes, tablas, formularios)
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--accent);
  color: var(--text); border-radius: var(--radius-sm); padding: 16px 20px 16px 46px !important;
}
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }
.woocommerce-error::before { color: var(--danger) !important; }
.woocommerce-message .button, .woocommerce-info .button { color: var(--accent-soft); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select, .woocommerce form .form-row .input-text, .wc-block-components-text-input input {
  background: var(--surface2) !important;
  border: 1px solid var(--line2) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 15px !important;
  font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus, .woocommerce form .form-row .input-text:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none !important;
}
label { color: var(--text2); font-size: 14px; }

/* tablas */
.woocommerce table.shop_table {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%;
}
.woocommerce table.shop_table th { background: var(--surface2); color: var(--text2); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); padding: 14px 16px; color: var(--text2); }
.woocommerce table.shop_table a { color: var(--accent-soft); }

/* paneles carrito/checkout (shortcodes clásicos).
   Los bloques (Cart/Checkout blocks) NO llevan marco exterior: ya tienen
   sus propios paneles internos y el marco extra les robaba ancho. */
.cart_totals, .woocommerce-cart-form, .woocommerce-checkout-review-order, #payment,
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  padding: 24px;
}
.cart_totals h2, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3,
#order_review_heading { color: #fff; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
#payment div.payment_box { background: var(--surface2) !important; color: var(--text2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
#payment div.payment_box::before { border-bottom-color: var(--surface2); }
#payment ul.payment_methods { border-color: var(--line); }

/* botones wc */
.checkout-button, .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order, .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button {
  background: var(--accent) !important; color: #0b0c00 !important;
  font-weight: 700 !important; border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px -12px var(--accent-glow);
  transition: transform .2s ease, filter .2s ease;
}
.checkout-button:hover, .wc-block-components-button:hover {
  transform: translateY(-2px); filter: brightness(1.05);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--surface2); color: var(--text2);
  border: 1px solid var(--line2); border-radius: 999px; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  color: var(--accent-soft); border-color: var(--accent);
}
.wc-block-components-button--outlined {
  background: transparent !important; color: var(--text2) !important; border: 1px solid var(--line2) !important;
}

/* select2 */
.select2-container .select2-selection--single { background: var(--surface2); border-color: var(--line2); border-radius: var(--radius-sm); min-height: 44px; }
.select2-container .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 44px; }
.select2-dropdown { background: var(--surface2); border-color: var(--line2); }
.select2-results__option { color: var(--text2); }
.select2-results__option--highlighted { background: var(--accent-dim); color: var(--accent-soft); }

/* mi cuenta */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 13px 18px; color: var(--text2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px;
  background: var(--surface); transition: color .2s ease, border-color .2s ease;
}
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--accent-soft); border-color: var(--accent); }

/* ==========================================================================
   10. PÁGINAS Y POSTS
   ========================================================================== */
.page-hero { padding: clamp(52px, 8vw, 90px) 0 30px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); }
.entry-content { max-width: 780px; margin: 30px auto 60px; }
/* Carrito y checkout por bloques: ancho completo o las columnas se montan. */
.entry-content--wide { max-width: var(--maxw); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.alignwide { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.post-thumb img { border-radius: var(--radius); }
.entry-header .entry-title { font-size: clamp(28px, 4vw, 42px); margin: 40px 0 14px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* 404 */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 .code { font-family: var(--font-disp); font-size: 120px; font-weight: 700; color: var(--accent); line-height: 1; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { background: var(--bg1); border-top: 1px solid var(--line); margin-top: 80px; }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 0 40px;
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__brand .logo { font-family: var(--font-disp); font-size: 22px; font-weight: 700; color: #fff; }
.site-footer__brand .logo .mark { color: var(--accent); }
.site-footer__brand img { max-height: 40px; width: auto; display: block; margin-bottom: 14px; }
.site-footer__brand p { font-size: 14px; margin-top: 12px; }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.site-footer__top ul { list-style: none; margin: 0; padding: 0; }
.site-footer__top ul li { margin-bottom: 9px; }
.site-footer__top ul a { color: var(--text2); font-size: 14px; }
.site-footer__top ul a:hover { color: var(--accent-soft); }
.site-footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.footer-widget { margin-bottom: 24px; }
.footer-widget li { list-style: none; margin-bottom: 9px; }
.footer-widget a { color: var(--text2); font-size: 14px; }

/* ==========================================================================
   12. RESPONSIVE (header + misc)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch;
    background: rgba(8, 9, 10, .98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 16px 22px 26px; gap: 4px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  body.menu-open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a { display: block; padding: 13px 16px; border-radius: var(--radius-sm); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. CARRITO (WooCommerce Blocks) — tema oscuro
   ========================================================================== */
.wp-block-woocommerce-cart, .wc-block-cart { color: var(--text1); }
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-totals-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}

.wc-block-cart .wc-block-components-product-name { color: #fff; font-size: 16px; font-weight: 600; }
.wc-block-cart .wc-block-components-product-price { color: var(--text2); font-weight: 500; }
/* El precio unitario bajo el nombre duplica al total de la línea: se oculta el bloque.
   El total se sigue viendo en su columna y en el resumen (también con cantidad > 1). */
.wc-block-cart .wc-block-cart-item__prices { display: none; }
.wc-block-cart .wc-block-components-product-metadata { color: var(--muted); font-size: 13px; }
.wc-block-cart .wc-block-components-quantity-selector {
  background: var(--surface2); border-color: var(--line2); border-radius: 999px;
}
.wc-block-cart .wc-block-components-quantity-selector button { color: var(--text1); border-color: transparent; }
.wc-block-cart .wc-block-components-quantity-selector button:hover { color: var(--accent-soft); }
.wc-block-cart .wc-block-cart-item__remove-link { color: var(--muted); font-size: 13px; }
.wc-block-cart .wc-block-cart-item__remove-link:hover { color: var(--accent); }

.wc-block-cart .wc-block-components-totals-wrapper { border-top-color: var(--line); }
.wc-block-cart .wc-block-components-totals-item__description { color: var(--muted); font-size: 12px; }
.wc-block-cart .wc-block-components-totals-item__value { color: var(--text1); }
.wc-block-cart .wc-block-components-totals-subtotal .wc-block-components-totals-item__value,
.wc-block-cart .wc-block-components-totals-grand-total .wc-block-components-totals-item__value {
  color: var(--accent-soft); font-weight: 700;
}
.wc-block-cart .wc-block-components-totals-grand-total .wc-block-components-totals-item__value { font-size: 22px; }

.wc-block-cart .wc-block-components-coupon-form input[type="text"],
.wc-block-cart .wc-block-components-coupon-form input[type="email"] {
  background: var(--surface2); border-color: var(--line2); border-radius: var(--radius-sm); color: var(--text1);
}
.wc-block-cart .wc-block-components-coupon-form input::placeholder { color: var(--muted); }
.wc-block-cart .wc-block-components-express-payment {
  background: var(--surface); border-color: var(--line); border-radius: var(--radius);
}
.wc-block-cart .wc-block-components-express-payment-continue-rule::before,
.wc-block-cart .wc-block-components-express-payment-continue-rule::after { border-color: var(--line); }
.wc-block-cart .wc-block-components-express-payment-continue-rule > span { background: var(--surface); color: var(--muted); }
.wc-block-cart .wc-block-components-promo-banner { background: var(--surface); border-color: var(--line); }

/* tarjetas de "Nuevo en la tienda" (carrito vacío) */
.wc-block-grid .wc-block-grid__product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.wc-block-grid .wc-block-grid__product-title { color: #fff; }
.wc-block-grid__product .wp-block-button__link {
  background: var(--accent) !important; color: #0b0c00 !important; font-weight: 700 !important;
  border-radius: 999px !important;
}
.wc-block-grid__product .wp-block-button__link:hover { filter: brightness(1.05); }
.wc-block-grid__product-price .woocommerce-Price-amount { color: var(--accent-soft); font-weight: 700; }