/* ================= RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --fg: #f5f5f5;
  --fg-muted: #a3a3a3;
  --border: #2a2a2a;
  --accent: #ffffff;

  --font-nav: "Oswald", "Arial Narrow", sans-serif;
  --font-name: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-price: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-name);
  min-height: 100%;
}

body {
  animation: pageFadeIn 0.5s ease both;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================= ANIMACIONES ================= */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoIntro {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cartCountBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

@keyframes navLinkIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  animation: revealUp 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================= VIDEO HERO ================= */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.video-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero-logo-corner {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
}
.video-hero-logo-corner img {
  height: 42px;
  width: auto;
}

@keyframes videoHeroCenterIntro {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.video-hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(90vw, 520px);
  animation: videoHeroCenterIntro 0.9s ease both;
}
.video-hero-logo-main {
  width: 100%;
  height: auto;
}
.video-hero-shop-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 13px 40px;
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.video-hero-shop-btn:hover {
  background: #fff;
  color: #000;
}

.video-hero-season {
  position: absolute;
  bottom: 30px;
  right: 28px;
  z-index: 2;
  font-family: var(--font-nav);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
}

@media (max-width: 640px) {
  .video-hero-logo-corner img { height: 30px; }
  .video-hero-season { right: 20px; font-size: 11px; }
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
  color: var(--fg);
}

.cart-icon {
  height: 30px;
  width: auto;
}

.burger {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  position: relative;
}
.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--fg);
}
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.header-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .header-logo img { height: 56px; }
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
}
.cart-count.is-bumping {
  animation: cartCountBump 0.4s ease;
}

/* ================= FLOATING NAV PANEL ================= */
.mobile-nav {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: min(70vw, 300px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: transparent;
  z-index: 55;
  padding: 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.close-btn {
  align-self: flex-start;
  font-size: 18px;
  margin-bottom: 16px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-links a {
  font-family: var(--font-nav);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-links a:hover { opacity: 0.6; transform: translateX(4px); }

.mobile-nav.is-open .nav-links li {
  animation: navLinkIn 0.4s ease both;
}
.mobile-nav.is-open .nav-links li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.is-open .nav-links li:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav.is-open .nav-links li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.is-open .nav-links li:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav.is-open .nav-links li:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav.is-open .nav-links li:nth-child(6) { animation-delay: 0.3s; }

.nav-reopen-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.97);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-reopen-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* nav-overlay: used by the cart drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ================= HERO STRIP ================= */
.hero-strip {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  padding: 8px 12px;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================= BRAND HERO ================= */
.brand-hero {
  display: flex;
  justify-content: center;
  padding: 48px 20px 20px;
}
.brand-hero-logo {
  width: min(100%, 480px);
  height: auto;
  animation: logoIntro 0.8s ease both;
}

/* ================= SHOP ================= */
.shop-section {
  padding: 32px 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 120vh;
}

.shop-title {
  font-family: var(--font-nav);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  border-color: #444;
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image-placeholder {
  font-family: var(--font-nav);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: #3a3a3a;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image-placeholder {
  transform: scale(1.12);
}
.product-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.35s ease;
}
.product-card:hover .product-image-photo {
  transform: scale(1.06);
}
.product-card:hover .product-image-photo:not(.product-image-photo-hover) {
  opacity: 0;
}
.product-image-photo-hover {
  opacity: 0;
}
.product-card:hover .product-image-photo-hover {
  opacity: 1;
}
.is-sold-out .product-image { opacity: 0.45; }
.is-sold-out:hover.product-card { transform: none; box-shadow: none; }

.empty-shop-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
  font-size: 14px;
}

.sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

.product-info {
  padding: 10px 12px 4px;
  flex: 1;
}
.product-name {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}
.product-price {
  font-family: var(--font-price);
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-muted);
}

.add-btn {
  display: block;
  margin: 10px 12px 12px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.product-card:hover .add-btn {
  background: var(--fg);
  color: var(--bg);
}
.is-sold-out .add-btn {
  color: #555;
}
.is-sold-out:hover .add-btn {
  background: none;
  color: #555;
}

/* ================= CART DRAWER ================= */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(90vw, 400px);
  background: #0d0d0d;
  border-left: 1px solid var(--border);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-empty {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-image {
  width: 56px;
  height: 70px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-size: 8px;
  font-weight: 700;
  color: #3a3a3a;
  overflow: hidden;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-name {
  font-family: var(--font-name);
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cart-item-size {
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.cart-item-price {
  font-family: var(--font-price);
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.remove-btn {
  color: var(--fg-muted);
  font-size: 14px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-price);
  font-size: 15px;
  margin-bottom: 14px;
}
.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================= ENVÍO / SKYDROPX ================= */
.shipping-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 14px;
}
.shipping-label {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.shipping-grid input {
  grid-column: span 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 10px;
  font-family: var(--font-name);
  font-size: 12px;
}
.shipping-grid input.full-width { grid-column: 1 / -1; }

.quote-btn {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quote-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.shipping-error {
  display: none;
  color: #e07a7a;
  font-size: 11px;
  margin-bottom: 8px;
}
.shipping-error.is-visible { display: block; }

.shipping-options { display: flex; flex-direction: column; gap: 6px; }
.shipping-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.shipping-option:hover { border-color: #666; }
.shipping-option.is-selected { border-color: var(--fg); background: var(--bg-card); }
.shipping-option .carrier { font-family: var(--font-nav); text-transform: uppercase; font-size: 12px; }
.shipping-option .service { color: var(--fg-muted); font-size: 11px; }
.shipping-option .price { font-family: var(--font-price); }

.cart-grand-total {
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ================= COOKIE BANNER ================= */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 70;
  background: #111;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: bottom 0.35s ease;
}
.cookie-banner.is-visible { bottom: 0; }
.cookie-banner p {
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 640px;
}
.cookie-banner a { text-decoration: underline; color: var(--fg); }

.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 18px;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cookie-btn--ghost { border: 1px solid var(--border); }
.cookie-btn--solid { background: var(--fg); color: var(--bg); }

/* ================= PRODUCT DETAIL ================= */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .product-detail { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 40px; }
}

.detail-back {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
  display: inline-block;
}
.detail-back:hover { color: var(--fg); }

.detail-gallery {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}
@media (min-width: 640px) {
  .detail-gallery { flex-direction: row; }
}

.detail-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
}
@media (min-width: 640px) {
  .detail-thumbs { flex-direction: column; overflow-x: visible; overflow-y: auto; }
}
.detail-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 80px;
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb:hover { opacity: 0.85; }
.detail-thumb.is-active { opacity: 1; border-color: var(--fg); }

.detail-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.detail-image-placeholder {
  font-family: var(--font-nav);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 26px;
  color: #3a3a3a;
}
.detail-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-name {
  font-family: var(--font-name);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.detail-description {
  list-style: disc;
  padding-left: 18px;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.detail-note {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.detail-price {
  font-family: var(--font-price);
  font-size: 22px;
  margin-bottom: 24px;
}

.detail-label {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.detail-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #555;
  margin-bottom: 24px;
}

.detail-size-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.detail-size-guide-link {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--fg);
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.size-option {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.size-option:hover:not(.is-unavailable) { border-color: #777; transform: translateY(-2px); }
.size-option.is-selected {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  animation: cartCountBump 0.3s ease;
}
.size-option.is-unavailable {
  color: #444;
  border-color: #222;
  cursor: not-allowed;
  text-decoration: line-through;
}

.detail-availability {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.detail-availability.is-available { color: #7bd88f; }
.detail-availability.is-unavailable { color: #e07a7a; }

.detail-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  transition: transform 0.15s ease;
}
.detail-add-btn:not(:disabled):active { transform: scale(0.97); }
.detail-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.detail-not-found {
  padding: 80px 20px;
  text-align: center;
  color: var(--fg-muted);
}
