/* =============================================
   CIERVO NEGRO – main.css
   Dark mode, minimalista, premium
   ============================================= */
:root {
  --black: #0e0e0e;
  --black-soft: #121212;
  --white: #FFFFFF;
  --grey: #6B6B6B;
  --grey-light: #2a2a2a;
  --oxford: #3C3C3C;
  --accent: #c8c8c8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Italiana', serif;
  --font-body: 'DM Sans', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}
/* ── CURSOR ── */
.cn-cursor {
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}
.cn-cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
}
/* ── NAVBAR ── */
.cn-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s;
}
.cn-nav.scrolled {
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cn-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cn-logo img { height: 36px; width: auto; }
.cn-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}
.cn-menu a {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.cn-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}
.cn-menu a:hover { color: var(--white); }
.cn-menu a:hover::after { width: 100%; }
.cn-nav-right { display: flex; align-items: center; gap: 16px; }
.cn-cart-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.cn-cart-btn:hover { background: var(--white); color: var(--black); }
.cn-cart-count {
  background: var(--white);
  color: var(--black);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
}
.cn-hamburger span {
  width: 24px; height: 1px;
  background: var(--white);
  transition: all 0.3s;
  display: block;
}
/* ── HERO ── */
.cn-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.cn-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.2) 0%, rgba(14,14,14,0.85) 100%),
              linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #151515 100%);
  z-index: 0;
}
.cn-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.cn-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 48px 80px;
  max-width: 900px;
}
.cn-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
  opacity: 0;
  animation: cnFadeUp 0.8s ease 0.3s forwards;
}
.cn-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 160px);
  line-height: 0.9;
  letter-spacing: 2px;
  color: var(--white);
  opacity: 0;
  animation: cnFadeUp 0.9s ease 0.5s forwards;
}
.cn-hero-title .outline {
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
}
.cn-hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--accent);
  margin-top: 24px;
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0;
  animation: cnFadeUp 0.9s ease 0.7s forwards;
}
.cn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  animation: cnFadeUp 0.9s ease 0.9s forwards;
}
.cn-btn-primary {
  background: var(--white);
  color: var(--black);
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.cn-btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.cn-btn-primary:hover::before { transform: translateX(0); }
.cn-btn-primary:hover { color: var(--white); }
.cn-btn-primary span { position: relative; z-index: 1; }
.cn-hero-scroll {
  position: absolute;
  bottom: 40px; right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: cnFadeIn 1s ease 1.2s forwards;
}
.cn-hero-scroll span {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}
.cn-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: cnScrollPulse 2s ease infinite;
}
/* ── MARQUEE ── */
.cn-marquee {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  background: var(--black-soft);
}
.cn-marquee-track {
  display: flex;
  animation: cnMarquee 20s linear infinite;
  white-space: nowrap;
}
.cn-marquee-track.reverse { animation-direction: reverse; }
.cn-marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
}
.cn-marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--oxford);
}
/* ── VENTAJAS ── */
.cn-ventajas {
  padding: 100px 48px;
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cn-ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  max-width: 1200px;
  margin: 0 auto;
}
.cn-ventaja-item {
  background: var(--black-soft);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.cn-ventaja-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cn-ventaja-item:hover::before { opacity: 1; }
.cn-ventaja-icon { width: 48px; height: 48px; opacity: 0.7; }
.cn-ventaja-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--white);
}
.cn-ventaja-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
}
.cn-ventaja-num {
  font-family: var(--font-display);
  font-size: 80px;
  color: rgba(255,255,255,0.03);
  position: absolute;
  bottom: 20px; right: 30px;
  line-height: 1;
}
/* ── SECTION HEADER ── */
.cn-section-header {
  padding: 100px 48px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.cn-section-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
.cn-section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 2px;
  line-height: 0.9;
  color: var(--white);
}
.cn-section-link {
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  margin-bottom: 8px;
}
.cn-section-link:hover { color: var(--white); border-color: var(--white); }
/* ── BANNER DTF ── */
.cn-banner {
  padding: 100px 48px;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cn-banner::before {
  content: 'CIERVO NEGRO';
  position: absolute;
  font-family: var(--font-display);
  font-size: 200px;
  color: rgba(0,0,0,0.04);
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: 10px;
}
.cn-banner-text { position: relative; z-index: 1; }
.cn-banner-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--oxford);
  margin-bottom: 16px;
}
.cn-banner-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--black);
}
.cn-banner-desc {
  margin-top: 20px;
  font-size: 14px;
  color: var(--oxford);
  max-width: 400px;
  line-height: 1.8;
}
.cn-banner-cta { position: relative; z-index: 1; }
.cn-btn-dark {
  background: var(--black);
  color: var(--white);
  padding: 18px 48px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  display: inline-block;
  transition: all 0.3s;
}
.cn-btn-dark:hover { background: var(--oxford); color: var(--white); }
/* ── FOOTER ── */
.cn-footer {
  background: #080808;
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cn-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.cn-footer-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
  max-width: 280px;
  margin: 16px 0 28px;
}
.cn-footer-social { display: flex; gap: 16px; }
.cn-social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  transition: all 0.3s;
  cursor: none;
}
.cn-social-link:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.cn-footer-col-title {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.cn-footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cn-footer-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
  cursor: none;
}
.cn-footer-links a:hover { color: var(--white); }
.cn-footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cn-footer-legal { font-size: 11px; color: var(--grey); letter-spacing: 0.5px; }
.cn-pagos { display: flex; align-items: center; gap: 12px; }
.cn-pago-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}
/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce #coleccion ul.products,
body .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 48px !important;
  list-style: none !important;
}
.woocommerce #coleccion ul.products li.product,
body .woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .price {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--white);
  padding: 0;
}
.woocommerce ul.products li.product { background: transparent; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--white);
  color: var(--black);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 24px;
  transition: all 0.3s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--oxford);
  color: var(--white);
}
.woocommerce-page .woocommerce { color: var(--white); }
.woocommerce-message, .woocommerce-info {
  background: var(--grey-light);
  border-top-color: var(--white);
  color: var(--white);
}
/* ── STOREFRONT HEADER OCULTO ── */
#masthead,
.site-header,
.storefront-primary-navigation {
  display: none !important;
}
/* ── ANIMATIONS ── */
@keyframes cnFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cnFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cnScrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}
@keyframes cnMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cn-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.cn-reveal.visible { opacity: 1; transform: translateY(0); }
.cn-reveal-d1 { transition-delay: 0.1s; }
.cn-reveal-d2 { transition-delay: 0.2s; }
.cn-reveal-d3 { transition-delay: 0.3s; }
/* ── MOBILE NAV ── */
.cn-mobile-nav {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cn-mobile-nav.open { opacity: 1; pointer-events: all; }
.cn-mobile-nav a {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}
.cn-mobile-nav.open a { opacity: 1; transform: translateY(0); }
.cn-mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.cn-mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.cn-mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.cn-mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.cn-mobile-nav a:hover { color: var(--grey); }
.cn-mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cn-ventajas-grid { grid-template-columns: 1fr; }
  .cn-footer-top { grid-template-columns: 1fr 1fr; }
  .cn-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .cn-nav { padding: 20px 24px; }
  .cn-nav.scrolled { padding: 14px 24px; }
  .cn-menu { display: none; }
  .cn-hamburger { display: flex; }
  .cn-hero-content { padding: 100px 24px 60px; }
  .cn-hero-scroll { display: none; }
  .cn-section-header { padding: 60px 24px 40px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .cn-ventajas { padding: 60px 24px; }
  .cn-ventaja-item { padding: 40px 24px; }
  .cn-banner { padding: 60px 24px; }
  .cn-footer { padding: 60px 24px 32px; }
  .cn-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .cn-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  body { cursor: auto; }
  .cn-cursor, .cn-cursor-ring { display: none; }
}
ul.products.woocommerce {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 48px !important;
  list-style: none !important;
}

ul.products.woocommerce li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
body.home ul.products,
body.page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 48px !important;
  list-style: none !important;
  width: 100% !important;
}

body.home ul.products li.product,
body.page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
ul.products.woocommerce,
.woocommerce ul.products {
  clear: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 48px !important;
  margin: 0 !important;
}

ul.products.woocommerce li.product,
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
