/* ============================================
   VITRALES EN EL CAJÓN — Design System
   "Light passing through stained glass"
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Primary Palette */
  --canvas: #FAFAFA;
  --deep-blue: #0C2D83;
  --turquoise: #2FBAD3;
  --amber: #E59513;

  /* Extended Palette */
  --deep-blue-dark: #081E5A;
  --deep-blue-light: #1A3F9E;
  --turquoise-light: #5CCDE3;
  --turquoise-glow: rgba(47, 186, 211, 0.25);
  --amber-glow: rgba(229, 149, 19, 0.2);
  --lead-gray: #2A2D3A;
  --lead-gray-light: rgba(42, 45, 58, 0.12);
  --glass-white: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(12, 45, 131, 0.15);
  --glass-shadow: rgba(12, 45, 131, 0.08);

  /* Typography Scale */
  --fs-display: clamp(2.4rem, 5vw, 4.2rem);
  --fs-h1: clamp(2rem, 3.5vw, 3rem);
  --fs-h2: clamp(1.6rem, 2.5vw, 2.2rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--lead-gray);
  background-color: var(--canvas);
  overflow-x: hidden;
  max-width: 100%;
}

/* Lead-came grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--lead-gray-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--lead-gray-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--turquoise);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--deep-blue);
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--deep-blue);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* === GLASSMORPHISM COMPONENTS === */
.glass-card {
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(47, 186, 211, 0.3);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 0 0 1px rgba(47, 186, 211, 0.1);
  transform: translateY(-4px);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--deep-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(12, 45, 131, 0.3);
}

.btn-primary:hover {
  background: var(--deep-blue-light);
  box-shadow: 0 6px 28px rgba(12, 45, 131, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-outline:hover {
  background: var(--deep-blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn-turquoise {
  background: var(--turquoise);
  color: #fff;
  box-shadow: 0 4px 20px rgba(47, 186, 211, 0.3);
}

.btn-turquoise:hover {
  background: var(--turquoise-light);
  box-shadow: 0 6px 28px rgba(47, 186, 211, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(12, 45, 131, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.nav-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-brand span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--turquoise);
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FAFAFA;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--turquoise);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--turquoise);
}

.nav-cart {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 250, 250, 0.28);
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.2rem;
  color: #FAFAFA;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cart:hover {
  color: #2FBAD3;
  border-color: rgba(47, 186, 211, 0.7);
  background: rgba(47, 186, 211, 0.14);
}

.nav-cart .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--amber);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-blue);
  transition: all var(--duration-fast) var(--ease-out);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 100px 20px 40px 20px;
  overflow: hidden;
}

#hero-carousel-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 5s linear;
  will-change: opacity, transform;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.carousel-slide-1 {
  background-image: url('assets/images/image_42a24b.jpg');
}

.carousel-slide-2 {
  background-image: url('assets/images/image_hero2.jpg');
}

.carousel-slide-3 {
  background-image: url('assets/images/image_hero3.jpg');
}

.hero-carousel-overlay {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Animated light rays */
.hero-rays {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-rays::before,
.hero-rays::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg at 50% 30%,
    transparent 0deg,
    rgba(47, 186, 211, 0.04) 20deg,
    transparent 40deg,
    rgba(229, 149, 19, 0.03) 80deg,
    transparent 100deg,
    rgba(47, 186, 211, 0.04) 160deg,
    transparent 180deg,
    rgba(229, 149, 19, 0.03) 240deg,
    transparent 260deg,
    rgba(47, 186, 211, 0.04) 320deg,
    transparent 340deg
  );
  animation: lightRays 25s linear infinite;
}

.hero-rays::after {
  animation-delay: -12s;
  opacity: 0.5;
}

@keyframes lightRays {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1120px;
  width: 100%;
  padding: 0;
}

.hero-logo-wrapper {
  order: 1;
  margin-top: 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.15s forwards;
}

.hero-logo-glow {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px auto;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.9)) drop-shadow(0px 0px 30px rgba(255, 255, 255, 0.6));
}

.hero-content .overline {
  order: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-content h1 {
  order: 2;
  max-width: 900px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  color: #FAFAFA;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 15px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-content h1 .highlight {
  color: var(--turquoise);
  position: relative;
}

.hero-content .subtitle {
  order: 4;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.85);
  max-width: 700px;
  margin: 0 auto 25px auto;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-buttons {
  order: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-buttons .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.hero-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 1rem;
}

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

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

/* === SECTION STYLING === */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .overline {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  color: #1A1A1A;
}

.section-header p {
  max-width: 760px;
  margin: 0 auto;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0 auto var(--space-lg);
  max-width: 200px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
}

.section-divider i {
  color: var(--amber);
  font-size: 0.8rem;
}

/* === CATEGORIES BAR === */
.categories {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  group: true;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12, 45, 131, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(12, 45, 131, 0.9) 100%);
}

.category-overlay h3 {
  color: #fff;
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.category-overlay span {
  font-size: var(--fs-small);
  color: var(--turquoise-light);
  font-weight: 400;
}

.category-overlay .cat-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transform: translate(-10px, 10px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
}

.category-card:hover .cat-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* === PRODUCT GALLERY === */
.gallery {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.gallery-heading {
  margin-top: 80px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  position: relative;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  min-width: 180px;
  padding: 8px;
  background: rgba(250, 250, 250, 0.96);
  border: 1px solid rgba(12, 45, 131, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(12, 45, 131, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.filter-group:hover .filter-dropdown,
.filter-group:focus-within .filter-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.filter-tab {
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--lead-gray);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-subtab {
  width: 100%;
  border-radius: 6px;
  background: rgba(12, 45, 131, 0.04);
  text-align: center;
}

.filter-tab:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.filter-tab.active {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.filter-empty {
  max-width: 620px;
  margin: var(--space-lg) auto 0;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 14px;
  background: var(--amber);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 2px 12px var(--amber-glow);
}

.product-wishlist {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--deep-blue);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-fast) var(--ease-spring);
  z-index: 2;
}

.product-card:hover .product-wishlist {
  opacity: 1;
  transform: scale(1);
}

.product-wishlist:hover {
  background: var(--deep-blue);
  color: #fff;
}

.product-quickview {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(12, 45, 131, 0.85);
  backdrop-filter: blur(8px);
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: 2;
}

.product-card:hover .product-quickview {
  transform: translateY(0);
}

.product-quickview button {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-quickview button i {
  margin-right: 6px;
}

.product-info {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.product-category {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--turquoise);
  font-weight: 500;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color var(--duration-fast);
}

.product-description {
  min-height: 4.6em;
  margin-bottom: 12px;
  color: #666;
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-card:hover .product-name {
  color: var(--turquoise);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--turquoise);
}

.product-price .currency {
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 2px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-rating i {
  font-size: 0.7rem;
  color: var(--amber);
}

.product-rating span {
  font-size: var(--fs-caption);
  color: #999;
  margin-left: 4px;
}

/* === COTIZADOR / COMMISSION FORM === */
.cotizador {
  padding: var(--space-3xl) 0;
  position: relative;
}

.cotizador::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--turquoise), var(--amber), var(--turquoise), transparent);
}

.cotizador-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.cotizador-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.cotizador-info h2 {
  margin-bottom: var(--space-md);
}

.cotizador-info p {
  color: #666;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.cotizador-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cotizador-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.cotizador-feature .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--turquoise-glow), rgba(12, 45, 131, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--turquoise);
  font-size: 1rem;
}

.cotizador-feature h4 {
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 2px;
}

.cotizador-feature p {
  font-size: var(--fs-small);
  color: #888;
  margin-bottom: 0;
}

.cotizador-form {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-small);
  color: var(--lead-gray);
  background: rgba(250, 250, 250, 0.8);
  border: 1.5px solid rgba(12, 45, 131, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px var(--turquoise-glow);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

/* Measurement inputs */
.measurement-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.measurement-input {
  position: relative;
}

.measurement-input input {
  padding-right: 40px;
}

.measurement-input .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-caption);
  color: #999;
  font-weight: 500;
}

/* Glass style select */
.glass-styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
}

.glass-style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm);
  border: 1.5px solid rgba(12, 45, 131, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: center;
}

.glass-style-option:hover {
  border-color: var(--turquoise);
}

.glass-style-option.selected {
  border-color: var(--turquoise);
  background: var(--turquoise-glow);
}

.glass-style-option .swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
}

.glass-style-option span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-submit {
  margin-top: var(--space-lg);
}

/* === STORY / ABOUT SECTION === */
.story {
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 600px;
}

.story-image {
  position: relative;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(12, 45, 131, 0.03), rgba(47, 186, 211, 0.03));
}

.story-content .overline {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: var(--space-sm);
}

.story-content h2 {
  margin-bottom: var(--space-md);
  font-size: var(--fs-h2);
}

.story-content h2 .script-text {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--turquoise);
  display: block;
  font-size: 0.8em;
}

.story-content .story-text {
  color: #555;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.story-content .story-text p {
  margin-bottom: var(--space-sm);
}

.story-quote {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--turquoise);
  margin-bottom: var(--space-lg);
  font-style: italic;
  color: var(--deep-blue);
  font-size: 1.05rem;
  line-height: 1.6;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(12, 45, 131, 0.1);
}

.story-stat .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1;
}

.story-stat .stat-number span {
  color: var(--turquoise);
}

.story-stat .stat-label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 4px;
}

/* === FOOTER === */
.footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--amber), var(--turquoise));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 60px;
  margin-bottom: var(--space-md);
  filter: brightness(10);
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
  background: rgba(47, 186, 211, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
  transition: all var(--duration-fast);
}

.footer-col ul li a:hover {
  color: var(--turquoise);
  padding-left: 4px;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  outline: none;
  transition: border-color var(--duration-fast);
}

.footer-newsletter input:focus {
  border-color: var(--turquoise);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-caption);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--turquoise);
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === CART DRAWER === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 45, 131, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(12, 45, 131, 0.08);
}

.cart-header h3 {
  font-size: 1rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(12, 45, 131, 0.1);
  background: none;
  color: var(--lead-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.cart-close:hover {
  background: var(--deep-blue);
  color: #fff;
  border-color: var(--deep-blue);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.cart-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: #999;
}

.cart-empty i {
  font-size: 3rem;
  color: rgba(12, 45, 131, 0.1);
  margin-bottom: var(--space-md);
  display: block;
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(12, 45, 131, 0.06);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--turquoise);
  font-size: var(--fs-small);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.8rem;
  transition: color var(--duration-fast);
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(12, 45, 131, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-family: 'Montserrat', sans-serif;
}

.cart-total .label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}

.cart-total .amount {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--turquoise);
}

.cart-footer .btn {
  width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cotizador-wrapper {
    grid-template-columns: 1fr;
  }

  .cotizador-info {
    position: static;
  }

  .story-wrapper {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .navbar {
    height: 72px;
    padding: 0 12px;
    overflow: hidden;
  }

  .nav-links {
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 58px 0 4px;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none;
    box-shadow: none;
    z-index: auto;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-cart {
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex: 0 0 auto;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    scroll-snap-align: start;
    white-space: nowrap;
    color: #111 !important;
    text-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 84px 18px 42px 18px;
  }

  #hero-carousel-wrapper {
    height: 100%;
  }

  .hero-rays {
    display: none;
  }

  .hero-logo-glow {
    max-width: 205px;
    margin-bottom: 10px;
  }

  .hero-content h1 {
    max-width: 340px;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 1.7px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .hero-content .overline {
    font-size: 0.66rem;
    margin-top: 0.35rem;
    margin-bottom: 0.45rem;
  }

  .hero-content .subtitle {
    max-width: 350px;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: min(100%, 310px);
    min-height: 46px;
    justify-content: center;
    padding-inline: 1rem;
  }

  .hero-scroll {
    bottom: 16px;
    font-size: 0.62rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .category-card {
    aspect-ratio: 16/9;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-wishlist {
    opacity: 1;
    transform: scale(1);
  }

  .product-quickview {
    position: static;
    transform: none;
    padding: 10px 12px;
    background: var(--deep-blue);
  }

  .product-quickview button {
    width: 100%;
    min-height: 40px;
  }

  .filter-dropdown {
    position: static;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .measurement-group {
    grid-template-columns: 1fr;
  }

  .glass-styles {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-logo-glow {
    max-width: 180px;
  }

  .hero-content h1 {
    max-width: 320px;
    font-size: 1.18rem;
    line-height: 1.16;
    letter-spacing: 1.2px;
  }

  .hero-content .subtitle {
    max-width: 320px;
    font-size: 0.8rem;
    line-height: 1.42;
    margin-bottom: 14px;
  }

  .hero-content .overline {
    font-size: 0.6rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 0.68rem;
  }

  .filter-group {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
  }

  .filter-dropdown {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 0;
    padding: 0;
  }

  .filter-subtab {
    width: auto;
  }

  .category-chip,
  .product-badge {
    max-width: calc(100% - 24px);
    white-space: normal;
    line-height: 1.25;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-price {
    text-align: left;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }
}

@media (max-width: 380px), (max-height: 680px) {
  .hero {
    padding-top: 76px;
    padding-bottom: 28px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-logo-glow {
    max-width: 160px;
    margin-bottom: 6px;
  }

  .hero-content h1 {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

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

  .carousel-slide.active {
    transform: none;
  }
}

/* === LIGHT SHIMMER ANIMATION (for premium feel) === */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--deep-blue) 0%,
    var(--turquoise) 25%,
    var(--deep-blue) 50%,
    var(--turquoise) 75%,
    var(--deep-blue) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--deep-blue);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: min(72vw, 360px);
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0px 0px 22px rgba(250, 250, 250, 0.55)) drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--turquoise), var(--amber));
  border-radius: 2px;
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: var(--deep-blue);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(12, 45, 131, 0.3);
  z-index: 3000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--turquoise);
}

/* === SMOOTH SCROLL BAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  background: rgba(12, 45, 131, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 45, 131, 0.25);
}
