/* ==========================================================================
   LGDRY ATHLETIC CLUB — PREMIUM EDITORIAL DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Poppins:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Color Palette - HSL Tailored for High-End Minimalist Aesthetics */
  --bg-white: #ffffff;
  --bg-gray-light: #f5f5f7;
  --bg-gray-mid: #eeeeee;
  --bg-black-pure: #000000;
  --bg-black-soft: #0a0a0a;
  
  --border-ultra-light: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.12);
  --border-dark: rgba(0, 0, 0, 0.85);
  
  --border-white-light: rgba(255, 255, 255, 0.15);
  --border-white-mid: rgba(255, 255, 255, 0.3);
  
  --text-primary: #000000;
  --text-secondary: #2c2c2e;
  --text-muted: #6e6e73;
  --text-white: #ffffff;
  --text-white-muted: #aeaeb2;
  
  --accent-red: #d9383a;
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Layout Dimensions */
  --header-height: 80px;
  --header-height-scrolled: 65px;
  --container-max-width: 1440px;
  
  /* Easing and Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-drawer: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & RESILIENCY SETUP
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
  width: 100%;
  color: var(--text-primary);
  position: relative;
}

body.overflow-hidden {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-white);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Helper Layout Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HEADER NAVIGATION (DYNAMIC GLASSMORPHISM)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-ultra-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

/* Force header text to black and restore solid white background without the line */
.main-header.header-solid {
  background-color: var(--bg-white) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Links & Dropdowns */
.nav-links-left {
  display: flex;
  gap: 28px;
  align-items: center;
  animation: slideInLeft 2s ease backwards;
}

@media (max-width: 1024px) {
  .nav-links-left {
    display: none; /* Hide on tablet/mobile */
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  position: relative;
}

.main-header.scrolled .nav-link,
.main-header.header-solid .nav-link {
  color: var(--text-muted);
}

.main-header.scrolled .nav-link:hover,
.main-header.header-solid .nav-link:hover,
.nav-link:hover {
  color: var(--text-primary);
}

.chevron-svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s;
}

.nav-link:hover .chevron-svg {
  transform: translateY(2px);
}

/* Dropdown styling */
.nav-dropdown-trigger {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  border: 1px solid var(--border-ultra-light);
  min-width: 220px;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 105;
}

.nav-dropdown-trigger:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 24px;
  transition: var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background-color: var(--bg-gray-light);
  color: var(--text-primary);
  padding-left: 28px;
}

/* Center Logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInTop 2s ease backwards;
}

@media (max-width: 1024px) {
  .logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideInTopCenter 2s ease backwards;
  }
}
@keyframes slideInTopCenter {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 100px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==========================================================================
   MOBILE MENU & HAMBURGER
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  padding: 4px;
  z-index: 1000;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
    animation: slideInLeft 2s ease backwards;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.main-header.scrolled .mobile-menu-toggle span,
.main-header.header-solid .mobile-menu-toggle span {
  background-color: var(--text-primary);
}

.header-solid .mobile-menu-toggle span {
  background-color: var(--text-black);
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--text-white) !important;
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--text-white) !important;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.85);
  z-index: 999;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Header & Close Button */
.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  display: flex;
  justify-content: flex-end;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-close svg {
  width: 32px;
  height: 32px;
  fill: var(--text-white);
  transition: transform 0.3s ease;
}
.mobile-menu-close:hover svg {
  transform: rotate(90deg);
}

/* Menu Content & Links */
.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 120px;
  padding-left: 40px;
}

.mobile-nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  display: flex;
  align-items: center;
  /* Base state: hidden to the left */
  opacity: 0;
  transform: translateX(-50px);
  /* Closing transition (top to bottom cascade) */
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.mobile-nav-link:nth-child(1) { transition-delay: 0s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.3s; }

.mobile-nav-text {
  transition: transform 0.3s ease;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: var(--text-white);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--text-white);
}

.mobile-nav-link:hover::before,
.mobile-nav-link:active::before {
  width: 40px;
  opacity: 0.5;
}

/* Menu Opening Animation */
.mobile-menu-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

/* Opening delay (bottom to top cascade - slower and more noticeable gaps) */
.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.30s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 0s; }

/* Footer Section */
.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.mobile-socials {
  display: flex;
  gap: 25px;
}

.mobile-social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--text-white);
  transition: opacity 0.3s ease;
}

.mobile-social-link:hover svg {
  opacity: 0.7;
}

.mobile-brand-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-white-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.logo-link {
  display: block;
  position: relative;
}

.logo-img {
  height: 170px; /* Doble del tamaño original (85px * 2) */
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .logo-img {
    height: 100px;
  }
}

/* Initially (Dark background): show white logo, hide black logo */
.logo-white {
  display: block;
}
.logo-black {
  display: none;
}

/* On scroll (White background): hide white logo, show black logo */
.main-header.scrolled .logo-white,
.main-header.header-solid .logo-white {
  display: none;
}
.main-header.scrolled .logo-black,
.main-header.header-solid .logo-black {
  display: block;
}

/* Right Actions */
.header-actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  animation: slideInRight 2s ease backwards;
}

.header-utility-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white-muted);
}

.main-header.scrolled .header-utility-link,
.main-header.header-solid .header-utility-link {
  color: var(--text-muted);
}

.main-header.scrolled .header-utility-link:hover,
.main-header.header-solid .header-utility-link:hover,
.header-utility-link:hover {
  color: var(--text-primary);
}

.country-picker {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-header.scrolled .country-picker,
.main-header.header-solid .country-picker {
  color: var(--text-muted);
}

.cart-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-white);
  border: 1px solid var(--border-white-light);
}

.main-header.scrolled .cart-toggle-btn,
.main-header.header-solid .cart-toggle-btn {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.main-header.scrolled .cart-toggle-btn:hover,
.main-header.header-solid .cart-toggle-btn:hover {
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
  border-color: var(--bg-black-pure);
}

.cart-toggle-btn:hover {
  background-color: var(--text-white);
  color: var(--bg-black-pure);
  border-color: var(--text-white);
}

.cart-icon-svg {
  width: 16px;
  height: 16px;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background-color: var(--accent-red);
  color: var(--text-white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .header-utility-link, .country-picker {
    display: none;
  }
}

/* ==========================================================================
   HERO COVER VIDEO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-black-pure);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 2;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Escalado ligero para recortar los bordes negros quemados en el archivo original */
  transform: scale(1.06);
}

.hero-content-container {
  position: relative;
  z-index: 3;
  animation: slideInBottomCenter 2s ease 0.2s backwards;
  text-align: center;
  padding: 0 20px;
}

.hero-sub-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-white-muted);
  margin-bottom: 24px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.5vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--text-white);
  margin-bottom: 45px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;
}

.hero-actions {
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s;
}

.btn-primary-invert {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background-color: transparent;
  color: var(--text-white);
  padding: 18px 48px;
  border: 1px solid var(--text-white);
  transition: var(--transition-fast);
}

.btn-primary-invert:hover {
  background-color: var(--text-white);
  color: var(--bg-black-pure);
}

/* Hero Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: slideInBottomCenter 2s ease 0.4s backwards;
  color: var(--text-white-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--text-white);
  animation: scrollProgress 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollProgress {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ==========================================================================
   PRODUCT CATALOG (GRID SECTION)
   ========================================================================== */
.catalog-section.section-padding {
  padding: 120px 0;
  background-color: var(--bg-white);
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.catalog-header {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Section specific spacing (formerly inline styles) */
.tienda-header { padding-top: 80px; margin-bottom: 10px; }
.proximamente-header, .galeria-header { padding-top: 140px; margin-bottom: 10px; }
.informacion-header { margin-bottom: 10px; }

@media (max-width: 768px) {
  .tienda-header {
    padding-top: 25px; /* Pegado al video */
    margin-bottom: 15px;
  }
  .proximamente-header, .galeria-header {
    padding-top: 95px; /* 80px (header) + 15px de aire para que no se superponga */
    margin-bottom: 15px; 
  }
  .info-block:first-child .informacion-header {
    padding-top: 95px; /* Sólo el primer título esquiva el menú */
  }
  .informacion-header {
    padding-top: 10px; /* El segundo título no necesita esquivar el menú */
    margin-bottom: 10px;
  }
  .products-grid {
    margin-top: 0;
  }
  .catalog-subtitle {
    font-size: clamp(0.9rem, 5.5vw, 1.3rem) !important; /* Adaptable a cualquier pantalla pequeña */
    white-space: nowrap !important; /* Nunca se dividirá en dos líneas */
    margin-bottom: 20px !important;
  }
}

.catalog-subtitle {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 45px;
}

@media (max-width: 768px) {
  .catalog-title {
    font-size: clamp(1.2rem, 6.5vw, 1.8rem) !important; /* Se ajusta dinámicamente al ancho del celular */
    white-space: nowrap !important; /* Fuerza una sola línea */
    margin-bottom: 25px !important; /* Se bajó un poco la tarjeta para que el texto se lea bien */
  }
}

/* Category filter buttons */
.filter-tabs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding-bottom: 12px;
}

.filter-sub-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-tabs-container::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 40px;
  background-color: transparent;
  transition: var(--transition-fast);
}

.filter-tab-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-tab-btn.active {
  background-color: var(--bg-black-pure);
  border-color: var(--bg-black-pure);
  color: var(--bg-white);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  row-gap: 65px;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 45px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-gray-light);
  overflow: hidden;
  border-radius: 8px; /* Restore border radius */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Permanent subtle shadow for floating effect */
  transition: var(--transition-smooth);
}

.product-card:hover .product-card-media {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Sold Out Badges */
.sold-out-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-red);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  z-index: 5;
}

/* Product Card Info Layout (Left: Title + Sub, Right: Price) */
.product-card-info {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.product-title-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-color-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.product-price-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Catalog bottoms indicator */
.catalog-bottom-indicator {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.btn-no-more {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background-color: transparent;
  cursor: not-allowed;
}

/* ==========================================================================
   EDITORIAL WRITTEN BIOGRAPHY
   ========================================================================== */
.editorial-section {
  padding: 100px 0; /* Reduced from 140px to tighten space */
  background-color: var(--bg-black-soft);
  color: var(--text-white);
  border-top: 1px solid var(--border-white-light);
}

.editorial-text {
  font-family: var(--font-body);
  font-size: 1.15rem; /* Slightly larger */
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--text-white-muted);
  margin-bottom: 35px;
  text-align: center;
}

.editorial-text .highlight {
  color: var(--text-white);
  font-weight: 600;
}

.editorial-text.secondary {
  font-size: 0.95rem; /* Increased readability */
  opacity: 0.85; /* Brighter */
  margin-bottom: 50px;
}

.editorial-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-white-muted);
}

/* ==========================================================================
   PRODUCT DETAIL VIEWS (SPA EXPERIENCE)
   ========================================================================== */
.spa-view {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spa-view.active {
  display: block;
  opacity: 1;
}

#productDetailView {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 120px;
  background-color: var(--bg-white);
}

.detail-navigation {
  margin-bottom: 40px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.btn-back-home:hover {
  color: var(--text-primary);
}

.arrow-left-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.btn-back-home:hover .arrow-left-svg {
  transform: translateX(-4px);
}

/* Detail two-column layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 90px; /* Space for the sticky button */
  }
}

/* Column 1: Editorial Flowing Gallery (Desktop) */
.detail-gallery-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.detail-gallery-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background-color: var(--bg-black-soft);
  border-radius: 4px;
}

@media (min-width: 1025px) {
  .detail-gallery-img:nth-child(n+3) {
    display: none;
  }
}

/* Column 2: Sticky Options Panel */
.detail-options-column {
  position: sticky;
  top: 100px; /* Offset for header */
  height: max-content;
}

@media (max-width: 1024px) {
  /* Mobile: Horizontal Snap Scroll Carousel */
  .detail-gallery-column {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 20px;
    gap: 10px;
  }
  
  .detail-gallery-column::-webkit-scrollbar {
    display: none;
  }

  .detail-gallery-img {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  
  .detail-options-column {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .detail-secondary-images, #detailExtraImageContainer {
    display: none !important;
  }
}

/* Column 2: Options details sticky */
.detail-options-column {
  position: relative;
}

.detail-sticky-panel {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.detail-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-ultra-light);
  padding-bottom: 25px;
}

.detail-product-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.detail-product-color {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.detail-product-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .detail-header-block {
    flex-direction: column;
    gap: 15px;
  }
  .detail-product-title {
    font-size: 1.5rem;
    word-break: break-word; /* Prevents long words like CORTAVIENTOS from breaking layout */
  }
  .detail-product-price {
    align-self: flex-start;
  }
}

/* Selectors Blocks */
.detail-selector-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selector-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-size-guide {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: underline;
}

.btn-size-guide:hover {
  color: var(--text-primary);
}

/* Color Variant List (Text-based with underline) */
.color-options-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.color-option-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white-muted);
  padding: 6px 0;
  position: relative;
}

.color-option-btn.active {
  color: var(--text-primary);
}

.color-option-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-option-btn.active::after {
  transform: scaleX(1);
}

/* Square sizes buttons grid */
.size-options-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.size-option-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  height: 48px;
  border: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.size-option-btn:hover {
  border-color: var(--text-primary);
}

.size-option-btn.active {
  background-color: var(--bg-black-pure);
  border-color: var(--bg-black-pure);
  color: var(--bg-white);
}

.size-option-btn.out-of-stock {
  position: relative;
  opacity: 0.25;
  cursor: not-allowed;
  border-style: dashed;
}

.size-option-btn.out-of-stock::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: rotate(-45deg);
}

.size-option-btn.out-of-stock:hover {
  border-color: var(--border-light);
}

/* Add to Cart button (Primary CTA) */
.btn-add-to-cart-primary {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  height: 58px;
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.btn-add-to-cart-primary:hover {
  background-color: #222222;
}

.btn-add-to-cart-primary.disabled {
  background-color: var(--bg-gray-mid);
  color: var(--text-muted);
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .size-option-btn {
    height: 60px;
    font-size: 0.9rem;
  }
  
  .btn-add-to-cart-primary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    font-size: 0.95rem;
    z-index: 900;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  }
}

/* Mini Loader */
.btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Information Accordion Tabs */
.detail-info-tabs {
  border-top: 1px solid var(--border-ultra-light);
  padding-top: 25px;
}

.tab-headers {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border-ultra-light);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.tab-header-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.tab-header-btn.active {
  color: var(--text-primary);
}

.tab-header-btn::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-header-btn.active::after {
  transform: scaleX(1);
}

.tab-content-panel {
  display: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tab-content-panel.active {
  display: block;
}

.tab-content-panel ul {
  padding-left: 18px;
  margin-top: 8px;
}

.tab-content-panel li {
  margin-bottom: 6px;
}

.model-reference-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   POPUP MODAL (SIZE GUIDE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 700px;
  padding: 50px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-box-narrow {
  max-width: 550px;
  padding: 40px;
}

@media (max-width: 768px) {
  .modal-box {
    padding: 25px;
    width: 95%;
  }
  .modal-box-narrow {
    padding: 25px;
  }
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-ultra-light);
}

.modal-close-btn:hover {
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
  transform: rotate(90deg);
}

.modal-close-svg {
  width: 10px;
  height: 10px;
}

.size-guide-content .modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.size-guide-content .modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Measuring table */
.size-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.size-table th, .size-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-ultra-light);
  font-size: 0.8rem;
}

.size-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.size-table td {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.size-table tbody tr:hover {
  background-color: var(--bg-gray-light);
}

.size-notes {
  background-color: var(--bg-gray-light);
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-left: 2px solid var(--text-primary);
}

/* ==========================================================================
   CART DRAWER & NESTED CHECKOUT PANEL
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-drawer);
}

.cart-drawer-overlay.active .cart-drawer-panel {
  transform: translateX(0);
}

/* Header */
.cart-drawer-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-ultra-light);
}

.cart-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-close-drawer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cart-close-drawer-btn:hover {
  color: var(--text-primary);
}

.close-svg {
  width: 10px;
  height: 10px;
}

/* Cart list scroll area */
.cart-drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Empty View */
.cart-empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

.cart-empty-svg {
  width: 38px;
  height: 38px;
  color: var(--text-white-muted);
  margin-bottom: 18px;
}

.cart-empty-msg {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-empty-shop-cta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 14px 30px;
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
}

.btn-empty-shop-cta:hover {
  background-color: #222222;
}

/* Cart item row design */
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr !important;
    grid-template-areas: 
      "image info"
      "image actions" !important;
    gap: 15px !important;
  }
  .cart-item-media {
    grid-area: image !important;
    width: 80px !important;
    min-width: 80px !important;
  }
  .cart-item-details {
    grid-area: info !important;
    min-width: 0; /* Prevent text blowout */
  }
  .cart-item-price-col {
    grid-area: actions !important;
    flex-direction: row !important; /* Stack price and trash horizontally */
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    margin-top: 10px !important;
  }
  .cart-item-title {
    font-size: 0.75rem !important; /* Letra un poco más pequeña para que encaje bien */
  }
  .cart-drawer-items-list {
    padding: 15px !important;
  }
}

.cart-item-media {
  width: 110px;
  background-color: transparent;
  border: none;
  overflow: hidden;
}

.cart-item-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
  display: block;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-variant {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-qty-row {
  margin-top: 8px;
}

.qty-control-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
}

.qty-math-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.qty-math-btn:hover {
  background-color: var(--bg-gray-light);
  color: var(--text-primary);
}

.qty-num-value {
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 2px;
}

.cart-item-remove-btn {
  color: var(--text-white-muted);
}

.cart-item-remove-btn:hover {
  color: var(--accent-red);
}

.remove-svg-icon {
  width: 14px;
  height: 14px;
}

.cart-item-total-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Footer Drawer Summary */
.cart-drawer-footer {
  padding: 30px;
  border-top: 1px solid var(--border-ultra-light);
  background-color: var(--bg-gray-light);
}

.cart-subtotal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-subtotal-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-subtotal-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-drawer-checkout-trigger {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  height: 52px;
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-drawer-checkout-trigger:hover {
  background-color: #222222;
}

/* ==========================================================================
   CHECKOUT INTERACTIVE PANEL (NESTED IN CART DRAWER)
   ========================================================================== */
.checkout-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 310;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-drawer);
}

.checkout-panel-overlay.active {
  transform: translateX(0);
}

/* Header */
.checkout-panel-header {
  padding: 30px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-ultra-light);
  gap: 20px;
}

.btn-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.btn-checkout-back:hover {
  color: var(--text-primary);
}

.back-arrow-svg {
  width: 12px;
  height: 12px;
}

.checkout-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Form panel styling */
.checkout-panel-form-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.checkout-form-instructions {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: -5px;
}

/* Elegant floating inputs labels */
.checkout-input-group {
  position: relative;
  width: 100%;
}

.checkout-input-field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background-color: transparent;
  outline: none;
  color: var(--text-primary);
  transition: border-bottom-color 0.25s;
}

@media (max-width: 768px) {
  .checkout-input-field {
    font-size: 16px; /* CRITICAL: Prevents iOS auto-zoom on inputs */
  }
  .checkout-panel-form-body {
    gap: 35px;
  }
}

.checkout-input-field:focus {
  border-bottom-color: var(--text-primary);
}

.checkout-input-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating labels magic */
.checkout-input-field:focus ~ .checkout-input-label,
.checkout-input-field:not(:placeholder-shown) ~ .checkout-input-label,
.checkout-input-field.not-empty ~ .checkout-input-label,
.checkout-input-field:valid ~ .checkout-input-label {
  top: -12px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

/* Select Group Adjustments */
.select-group {
  margin-top: 5px;
}

.select-field {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-group::after {
  content: '▼';
  font-size: 8px;
  color: var(--text-muted);
  position: absolute;
  right: 5px;
  top: 18px;
  pointer-events: none;
}

/* Label for select stays up when value is chosen */
.checkout-input-field.select-field:focus ~ .checkout-input-label,
.checkout-input-field.select-field:valid ~ .checkout-input-label {
  top: -12px;
  font-size: 0.68rem;
}

.textarea-field {
  min-height: 80px;
  resize: vertical;
}

/* Validation error styles */
.error-msg {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-red);
  margin-top: 5px;
  text-transform: uppercase;
}

.checkout-input-group.has-error .checkout-input-field {
  border-bottom-color: var(--accent-red);
}

.checkout-input-group.has-error .error-msg {
  display: block;
}

.btn-checkout-submit {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  height: 52px;
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.btn-checkout-submit:hover {
  background-color: #222222;
}

.btn-checkout-submit:disabled {
  background-color: var(--bg-gray-mid);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Checkout Footer */
.checkout-panel-footer {
  padding: 30px;
  border-top: 1px solid var(--border-ultra-light);
  background-color: var(--bg-gray-light);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.checkout-total-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-total-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.checkout-inactive-notice {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CHECKOUT SUCCESS OVERLAY
   ========================================================================== */
.checkout-success-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  z-index: 320;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  transform: translateY(100%);
  transition: var(--transition-drawer);
}

.checkout-success-view.active {
  transform: translateY(0);
}

.success-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.success-icon-svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.success-msg {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: 40px;
}

.btn-success-close {
  width: 100%;
  max-width: 280px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  height: 50px;
  background-color: var(--bg-black-pure);
  color: var(--bg-white);
}

.btn-success-close:hover {
  background-color: #222222;
}

/* ==========================================================================
   MAIN FOOTER DESIGN
   ========================================================================== */
.main-footer {
  background-color: var(--bg-black-soft);
  color: var(--text-white);
  padding: 80px 0 40px 0; /* Reduced padding */
  border-top: 1px solid var(--border-white-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 40px 15px; /* Vertical gap 40px, Horizontal gap 15px */
  }
  .brand-bio {
    grid-column: 1 / -1;
  }
  .footer-socials {
    grid-column: 1 / -1;
  }
  .footer-desc {
    margin: 0 auto;
  }
  .footer-links, .footer-socials {
    align-items: center;
    gap: 8px !important; /* Forzar la reducción */
  }
  .footer-links a, .footer-socials a {
    padding: 4px 0 !important; 
    font-size: 0.95rem;
  }
  .footer-heading {
    margin-bottom: 5px !important; /* Pegarlo al máximo */
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem; /* Larger */
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 0.9rem; /* Increased readability */
  line-height: 1.7;
  color: var(--text-white-muted);
  opacity: 0.9;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-white);
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-white-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-socials a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-white-muted);
}

.social-link-with-icon {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-socials a:hover {
  color: var(--text-white);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-white-light);
  padding-top: 40px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-white-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.footer-extra {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   GALERIA MASONRY LOOKBOOK
   ========================================================================== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 400px;
  gap: 20px;
}

.masonry-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item.large {
  grid-row: span 2;
  grid-column: span 2;
}

.masonry-item.wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .masonry-item.large, .masonry-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   PREMIUM GALLERY OVERHAUL (User Requested Design)
   ========================================================================== */

.gallery-premium-section {
  position: relative;
  background-color: #f4f4f4;
  overflow: hidden;
  padding: 0 0 120px 0;
  min-height: 100vh; /* Obliga a que la sección ocupe toda la pantalla y empuje el footer hacia abajo */
}

@media (max-width: 768px) {
  .gallery-premium-section {
    padding: 0 0 60px 0;
    background-color: #F5F4F4;
  }
  .gallery-premium-section::before,
  .gallery-border {
    display: none;
  }
}

/* Pseudo-element for subtle noise texture */
.gallery-premium-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* Editorial geometric lines */
.gallery-border {
  position: absolute;
  background-color: rgba(0,0,0,0.05);
  z-index: 2;
  pointer-events: none;
}
.gallery-border.line-left { top: 0; left: 40px; width: 1px; height: 100%; }
.gallery-border.line-right { top: 0; right: 40px; width: 1px; height: 100%; }
.gallery-border.line-top { top: 40px; left: 0; width: 100%; height: 1px; }

/* Giant Background Text */
.gallery-giant-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 35vw;
  font-weight: 900;
  color: #000;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Radial Light focal point */
.gallery-radial-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Premium Card Design */
.gallery-premium-card {
  position: relative;
  width: 100%;
  background-color: transparent;
  cursor: pointer;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-premium-card:hover .card-image-wrapper {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.card-static-bottom {
  padding-top: 15px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.gallery-premium-card:hover .card-static-bottom {
  transform: translateY(-15px);
  opacity: 0;
}
.static-title {
  font-family: var(--font-heading);
  color: #111;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.static-price {
  font-family: var(--font-mono);
  color: #666;
  font-size: 0.85rem;
}

.card-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-premium-card:hover .card-bg-image {
  transform: scale(1.08);
}

/* Gradient Overlay */
.card-overlay-gradient {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-premium-card:hover .card-overlay-gradient {
  opacity: 1;
}

/* Reveal Info */
.card-info-reveal {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-premium-card:hover .card-info-reveal {
  transform: translateY(0);
  opacity: 1;
}

.reveal-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.reveal-price {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.reveal-btn {
  background-color: #fff;
  color: #111;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.reveal-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Mobile Quick Buy Button */
.mobile-quick-buy {
  display: none;
}

@media (max-width: 768px) {
  .gallery-premium-card {
    max-width: 340px;
    margin: 0 auto;
  }
  .gallery-premium-card .card-image-wrapper {
    /* Mantenemos el border-radius original de 8px eliminando la sobrescritura a 0 */
  }
  .gallery-premium-card .card-static-bottom {
    text-align: center;
    padding-top: 20px;
  }
  .gallery-premium-card .static-title {
    font-size: 1.2rem;
  }
  .gallery-premium-card .static-price {
    font-size: 1rem;
    color: var(--text-primary);
  }
  
  /* Mobile-only touch button */
  .mobile-quick-buy {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,0.85);
    border-radius: 50%;
    border: none;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    color: #fff;
  }
  .mobile-quick-buy:active {
    transform: scale(0.95);
  }
  /* Allow gradient overlay on mobile for text readability */
  
  /* Hacer que la animación al tocar sea más suave en móviles (de 0.4s a 0.8s) */
  .gallery-premium-card .card-image-wrapper,
  .gallery-premium-card .card-static-bottom,
  .card-info-reveal,
  .card-bg-image {
    transition-duration: 0.8s !important;
    transition-timing-function: ease-out !important;
  }
}

.compact-gallery-grid {
  /* Restringe el ancho máximo para hacer las tarjetas mucho más pequeñas y que quepan todas */
  max-width: 1100px; /* Aumentado para que no se vean tan pequeñas */
  margin: 0 auto;
  column-gap: 20px;
  row-gap: 20px;
}

/* Información Grid */
.info-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 15px; /* Pull blocks extremely close together on mobile */
  }
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}
@media (max-width: 1024px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-photo-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-photo-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 4/5;
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cambiado de contain a cover para que llene el cuadro sin padding blanco */
  transition: transform 0.4s ease;
  background-color: rgba(255, 255, 255, 0.02);
}

.gallery-photo-card:hover img {
  transform: scale(1.02); /* Very minimal subtle effect, no aggressive zoom */
}

/* ==========================================================================
   ENTRANCE ANIMATIONS (PAGE LOAD)
   ========================================================================== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-150px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(150px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInTop {
  from { opacity: 0; transform: translateY(-100px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInBottomCenter {
  from { opacity: 0; transform: translate(-50%, 150px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   SMOKESCREEN LOADER (Cortina de Humo)
   ========================================================================== */
.smokescreen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-black-pure);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: visible;
  opacity: 1;
}
.smokescreen-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.smokescreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeInSmokescreen 1s ease forwards;
}
.smokescreen-logo {
  width: 60vw;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  animation: pulseOpacity 2s infinite ease-in-out;
}
@keyframes fadeInSmokescreen {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Master Animation Pauser */
body.animations-paused *:not(.smokescreen-loader):not(.smokescreen-loader *) {
  animation-play-state: paused !important;
}
/* Ensure Nav and Hero elements are totally invisible until unpaused */
body.animations-paused .main-header,
body.animations-paused .hero-content-container,
body.animations-paused .scroll-indicator {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */
.info-section-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 180px 0 100px;
}

.info-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.info-card {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  flex: 1;
}

.info-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

.info-text:last-of-type {
  margin-bottom: 40px;
}

.info-join-text {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: #111;
  font-weight: 600;
  margin: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-icon {
  margin-top: 2px;
  color: #111;
}

.info-list-content strong {
  display: block;
  color: #111;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.info-list-content span {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  display: block;
}

@media (max-width: 768px) {
  .info-section-wrapper {
    padding: 0 0 100px; /* Padding top handled by headers */
  }
  .info-card {
    padding: 25px; /* Reduce internal padding so text fits well */
  }
  .info-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  .info-list li {
    gap: 15px;
  }
}

/* ==========================================================================
   SCROLL ANIMATIONS (Cards Zoom In/Out)
   ========================================================================== */
.catalog-header,
.gallery-premium-card,
.gallery-photo-card,
.info-card {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.catalog-header.in-view,
.gallery-premium-card.in-view,
.gallery-photo-card.in-view,
.info-card.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Scroll lock utility */

