/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
  --bg-color: hsl(30, 10%, 6%);
  --bg-surface: hsla(30, 10%, 12%, 0.75);
  --bg-surface-hover: hsla(30, 10%, 18%, 0.85);
  --border-color: hsla(30, 15%, 22%, 0.4);
  --border-color-active: hsla(38, 70%, 55%, 0.6);
  
  --text-main: hsl(30, 20%, 92%);
  --text-muted: hsl(30, 10%, 65%);
  --text-inverse: hsl(30, 10%, 6%);
  
  --primary: hsl(38, 72%, 56%); /* Premium Gold/Bronze */
  --primary-hover: hsl(38, 80%, 64%);
  --primary-glow: hsla(38, 72%, 56%, 0.35);
  
  --accent: hsl(20, 60%, 50%); /* Terracotta Warm Rose */
  --accent-glow: hsla(20, 60%, 50%, 0.3);
  
  --success: hsl(140, 50%, 48%);
  --success-glow: hsla(140, 50%, 48%, 0.2);
  --error: hsl(0, 75%, 60%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --faq-answer-bg: hsla(30, 10%, 8%, 0.45);
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(30, 10%, 15%, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(38, 70%, 10%, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container & Structure */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(30, 10%, 6%, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: padding var(--transition-fast);
}

body.light-theme header {
  background: hsla(30, 20%, 97%, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

/* Navigation or badge */
.badge-status {
  background: hsla(38, 72%, 56%, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--primary); }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Glassmorphic Cards & Layouts */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-color-active);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-2.unequal {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* Configurador Container */
.configurator-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Configuration Option Groups */
.option-group {
  margin-bottom: 28px;
}

.option-group-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* Photo Option Selector (Cards style) */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-card {
  background: hsla(30, 10%, 15%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  background: hsla(30, 10%, 20%, 0.5);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.plan-card.active {
  background: hsla(38, 72%, 56%, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.plan-card.active::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-card .count {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.plan-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.plan-card.active .label {
  color: var(--primary);
}

/* Switches & Accessories List */
.accessory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: hsla(30, 10%, 15%, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.accessory-item:hover {
  background: hsla(30, 10%, 15%, 0.6);
  border-color: var(--border-color-active);
}

.accessory-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 15px;
}

.accessory-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.accessory-description {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.accessory-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(30, 10%, 30%, 0.5);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-main);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--text-inverse);
}

/* Price Panel Summary */
.price-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.price-summary-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.summary-list {
  list-style: none;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

.summary-row.total {
  border-bottom: none;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.summary-row.total .val-label {
  font-weight: 700;
  font-size: 1.2rem;
}

.summary-row.total .val-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.summary-row .val-label {
  color: var(--text-muted);
}

.summary-row .val-price {
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 12px;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: hsla(30, 10%, 25%, 0.8);
  border-color: var(--border-color-active);
}

.btn svg {
  flex-shrink: 0;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.faq-title p {
  color: var(--text-muted);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-color-active);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.faq-question::after {
  content: "▼";
  font-size: 0.8rem;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
  color: var(--text-muted);
  font-size: 0.95rem;
  background: transparent;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px 24px;
  max-height: 500px; /* Increased from 200px to prevent cutting off long answers */
}

/* Uploader Component Styles (upload.html specific) */
.upload-container {
  max-width: 900px;
  margin: 40px auto;
}

.upload-card-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .upload-card-wrapper {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.dropzone {
  border: 2px dashed var(--border-color);
  background: hsla(30, 10%, 15%, 0.25);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: hsla(38, 72%, 56%, 0.05);
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
}

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

.dropzone h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.dropzone p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Photo Counter Badge */
.photo-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: hsla(30, 10%, 15%, 0.6);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.photo-counter-text {
  font-weight: 500;
  font-size: 0.95rem;
}

.photo-counter-numbers {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.photo-counter-numbers.overflow {
  color: var(--accent);
  animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
  from { text-shadow: 0 0 2px rgba(230, 50, 50, 0); }
  to { text-shadow: 0 0 10px rgba(230, 50, 50, 0.6); color: var(--error); }
}

/* File Previews Grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 24px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: hsla(30, 10%, 6%, 0.5);
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: popIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff5555;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.preview-item .remove-btn:hover {
  background: var(--error);
  color: white;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  overflow-y: auto;
  padding: 40px 10px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-color);
  background-image: radial-gradient(circle at 50% 0%, hsla(38, 70%, 55%, 0.12) 0%, transparent 60%);
  border: 1px solid var(--border-color-active);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-badge-upsell {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal-content p strong {
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Form controls (Upload config) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  background: hsla(30, 10%, 15%, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.form-select option {
  background-color: var(--bg-color);
  color: var(--text-main);
}

/* Footer styling */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

footer span {
  color: var(--primary);
  font-weight: 600;
}

/* Instagram Buttons styling */
.instagram-btn {
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.instagram-btn:hover {
  color: var(--primary) !important;
  transform: scale(1.1);
}

.instagram-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.instagram-footer-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}


/* Custom Interactive Photo Generator (to ease mock uploads for user testing) */
.simulation-panel {
  background: hsla(20, 50%, 50%, 0.08);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.simulation-panel h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-sim {
  padding: 8px;
  font-size: 0.8rem;
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sim:hover {
  background: hsla(20, 60%, 50%, 0.2);
  border-color: var(--accent);
}

/* --- PRODUCT CATALOG & CONFIGURATOR ADDITIONS --- */

/* Search & Filter Bar */
.catalog-controls {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .catalog-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Category Filters */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.filter-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.filter-tab {
  padding: 8px 16px;
  background: hsla(30, 10%, 15%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

/* Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-active);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: hsla(30, 10%, 4%, 0.35);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.product-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

/* Mercado Libre style Product Carousel on Catalog Cards */
.product-carousel {
  position: relative;
  width: 100%;
  background: var(--bg-surface-alt, hsla(30, 10%, 6%, 0.2));
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: hsla(30, 10%, 4%, 0.35);
}

.carousel-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.15s ease-in-out;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  font-size: 0.85rem;
  user-select: none;
}

.carousel-viewport:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.carousel-arrow.prev {
  left: 8px;
}

.carousel-arrow.next {
  right: 8px;
}

.carousel-thumbnails {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  background: hsla(30, 10%, 10%, 0.15);
  border-top: 1px solid var(--border-color);
  align-items: center;
}

.carousel-thumbnails::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  background: hsla(30, 10%, 4%, 0.3);
}

.carousel-thumb:hover {
  transform: scale(1.05);
  border-color: var(--primary-muted, hsla(38, 72%, 56%, 0.5));
}

.carousel-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.product-category-tag {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-label {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Badges */
.badge-custom-design {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e65a2b; /* Solid vibrant accent orange */
  border: 1px solid #ff7a4d;
  color: #ffffff; /* Crisp white for maximum contrast */
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.3px;
}

.badge-coming-soon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #cba135; /* Solid premium gold */
  border: 1px solid #dfb94a;
  color: #110e0a; /* Deep dark text for maximum contrast on gold */
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.free-shipping-badge {
  background: hsla(140, 50%, 48%, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Configurator Modal Layout */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-img-container {
  width: 100%;
  aspect-ratio: 1.1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: hsla(30, 10%, 6%, 0.5);
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.modal-badge-custom {
  background: hsla(20, 60%, 50%, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

/* Number Counter Input for Stickers/Polaroids */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.quantity-input {
  width: 60px;
  height: 36px;
  text-align: center;
  background: hsla(30, 10%, 15%, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

/* No results state */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Floating WhatsApp Bubble */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: pulse-bubble 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes pulse-bubble {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Lightbox Fullscreen Viewer */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-color);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--error);
  border-color: var(--error);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(30, 10%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 12px;
  }
  .lightbox-next {
    right: 12px;
  }
}

/* Testimonials Reviews Section */
.reviews-section {
  padding: 80px 0;
}

.reviews-title {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.reviews-title p {
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  backdrop-filter: blur(16px);
}

.review-card:hover {
  border-color: var(--border-color-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

/* Light Theme Variable Overrides */
body.light-theme {
  --bg-color: hsl(30, 20%, 97%);
  --bg-surface: hsla(30, 20%, 92%, 0.75);
  --bg-surface-hover: hsla(30, 20%, 86%, 0.85);
  --border-color: hsla(30, 15%, 80%, 0.5);
  --border-color-active: hsla(38, 70%, 55%, 0.8);
  
  --text-main: hsl(30, 15%, 12%);
  --text-muted: hsl(30, 10%, 40%);
  --text-inverse: hsl(30, 20%, 92%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --faq-answer-bg: hsla(30, 20%, 92%, 0.6);
}

body.light-theme .btn-secondary {
  background: hsla(38, 72%, 56%, 0.1);
  border: 1px solid hsla(38, 72%, 56%, 0.3);
  color: hsl(38, 72%, 32%);
}

body.light-theme .btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
  background: hsla(30, 10%, 15%, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

body.light-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.6);
}

.theme-toggle-btn:hover {
  border-color: var(--border-color-active);
  transform: scale(1.05);
}

/* WhatsApp Tooltip Triggered Class */
.whatsapp-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

/* Shipping Progress Bar */
.shipping-progress-container {
  margin: 16px 0 8px 0;
  background: hsla(30, 10%, 15%, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: background var(--transition-fast);
}

body.light-theme .shipping-progress-container {
  background: rgba(0, 0, 0, 0.03);
}

.shipping-progress-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 6px;
}

.shipping-progress-bar-bg {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}

body.light-theme .shipping-progress-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

.shipping-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width var(--transition-normal), background var(--transition-normal);
  border-radius: 10px;
}

.shipping-progress-bar-fill.completed {
  background: #25d366 !important;
}

/* Trust Badges Row */
.trust-badges-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0 60px 0;
  padding: 24px;
  background: hsla(30, 10%, 12%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
}

body.light-theme .trust-badges-row {
  background: rgba(0, 0, 0, 0.02);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-icon {
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-badge-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.trust-badge-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Steps / How It Works Section */
.steps-section {
  padding: 40px 0 60px 0;
}

.steps-title {
  text-align: center;
  margin-bottom: 40px;
}

.steps-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.steps-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: all var(--transition-fast);
  backdrop-filter: blur(16px);
}

.step-card:hover {
  border-color: var(--border-color-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Header Navigation Links */
.header-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* Hamburger Button (mobile only) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: hsl(30, 10%, 7%); /* Solid deep dark background to ensure maximum text readability */
  border-left: 1px solid var(--border-color-active);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.mobile-menu-drawer.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  background: hsla(30, 10%, 10%, 0.5);
}

.mobile-menu-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

.mobile-menu-close {
  background: hsla(30, 10%, 20%, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

/* Mobile Search */
.mobile-menu-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: hsla(30, 10%, 9%, 0.4);
}

/* Mobile Nav Links */
.mobile-menu-links {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  border-left-color: var(--primary);
}

.mobile-nav-link span {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.mobile-menu-ig {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu-ig:hover {
  color: var(--primary);
}

/* Scroll Reveal Animation Styles */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

/* Staggered transition delays for elements in grids/rows */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.28s; }

/* Mobile-specific UI/UX Optimizations (max-width: 500px) */
@media (max-width: 500px) {
  /* Welcome / Hero adjustments */
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
  .hero p {
    font-size: 0.95rem !important;
  }

  /* Catalog grid: 2 columns of products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Adjust product viewport and carousel heights for 2-column mobile layout */
  .product-carousel, .product-img-wrapper, .carousel-viewport {
    height: 150px !important;
  }

  .carousel-thumbnails {
    padding: 6px 8px !important;
    gap: 4px !important;
  }

  .carousel-thumb {
    width: 26px !important;
    height: 26px !important;
    border-width: 1px !important;
  }

  .product-info {
    padding: 10px !important;
    gap: 4px !important;
  }

  .product-title {
    font-size: 0.85rem !important;
    height: 2.4em; /* fix line height to keep cards aligned */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price-label {
    font-size: 0.78rem !important;
  }

  .product-price {
    font-size: 1.05rem !important;
  }

  /* Modal optimizations */
  #modal-body-content {
    padding: 16px 16px 24px 16px !important;
  }

  .modal-close {
    top: 12px !important;
    right: 12px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
  }

  .modal-grid {
    gap: 16px !important;
  }

  .modal-img-container {
    aspect-ratio: 1.2 !important;
  }

  /* Plan cards text */
  .plan-card {
    padding: 8px !important;
  }

  .plan-card .count {
    font-size: 1.1rem !important;
  }

  .plan-card .label {
    font-size: 0.7rem !important;
  }

  /* Trust badges row */
  .trust-badges-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .trust-badge {
    padding: 12px !important;
  }

  /* Floating WhatsApp bubble adjustments */
  .whatsapp-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Hero Full-Width Carousel */
.hero-carousel-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 30px;
  margin-bottom: 30px;
  height: 380px; /* Optimal banner height on desktop */
  background: #ffffff; /* Seamless integration with white background images */
  overflow: hidden;
  border-top: 1.5px solid var(--border-color-active); /* Elegant premium gold boundary */
  border-bottom: 1.5px solid var(--border-color-active);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Inner vignette shadow overlay to soften the edge with the dark page */
.hero-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 24px 24px -16px rgba(0, 0, 0, 0.85), inset 0 -24px 24px -16px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 5;
}

.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-carousel-slide img {
  max-width: 100%;
  height: 100%;
  object-fit: contain; /* Prevent cropping of product graphics */
  display: block;
}

/* Category label overlaying each slide */
.hero-slide-label {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 32px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Navigation Arrows overlaying the slide edges */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  border-radius: 50%;
}

.hero-carousel-arrow:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-arrow.prev {
  left: 30px;
}

.hero-carousel-arrow.next {
  right: 30px;
}

/* Dots Indicators centered at the bottom */
.hero-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
  border-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-carousel-wrapper {
    height: 300px;
  }
  .hero-carousel-arrow.prev {
    left: 20px;
  }
  .hero-carousel-arrow.next {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    height: 280px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  /* Hide arrows on mobile touch screens for a cleaner layout */
  .hero-carousel-arrow {
    display: none !important;
  }
  .hero-carousel-dots {
    bottom: 12px;
    gap: 8px;
  }
  .hero-carousel-dot {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }
  .hero-slide-label {
    font-size: 1.1rem;
    padding: 7px 22px;
    bottom: 34px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 480px) {
  .hero-carousel-wrapper {
    height: 220px;
  }
  .hero-slide-label {
    font-size: 0.85rem;
    padding: 5px 16px;
    bottom: 28px;
    letter-spacing: 1px;
  }
}

/* FAQ Header Wrapper */
.faq-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.faq-header-wrapper .faq-title {
  text-align: left;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-header-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .faq-header-wrapper .faq-title {
    text-align: center;
  }
}

/* Responsive Visibility Utilities */
@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Theme Filters Quick Menu */
.theme-filters-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.theme-filters-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.theme-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
}

.theme-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.theme-tab.active {
  background: hsla(38, 72%, 56%, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  font-weight: 600;
}

@media (max-width: 768px) {
  /* Category tabs horizontal scrolling */
  .filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    margin: 0;
    padding: 4px 0 8px 0;
    gap: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex: 0 0 auto;
  }

  /* Theme filters horizontal scrolling */
  .theme-filters-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    overflow: visible; /* Prevent any layout cropping */
  }
  
  .theme-filters-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
  }

  .theme-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    margin: 0;
    justify-content: flex-start !important;
    padding: 4px 0;
    gap: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  
  .theme-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-tab {
    flex: 0 0 auto;
  }

  /* Team sub-menu horizontal scrolling */
  .teams-submenu {
    display: none;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    margin: 0;
    justify-content: flex-start !important;
    padding: 8px 0 4px 0;
    gap: 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  
  .teams-submenu::-webkit-scrollbar {
    display: none;
  }

  .teams-submenu span {
    display: none !important; /* Hide 'Equipos:' label on mobile to save space */
  }

  .sub-tab {
    flex: 0 0 auto;
  }
}

/* Sub-menu for teams */
.teams-submenu {
  display: none;
  animation: submenuFadeIn 0.3s ease-in-out;
}

.sub-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.sub-tab.active {
  background: hsla(38, 70%, 55%, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  font-weight: 600;
}

@keyframes submenuFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Featured Products Grid Layout Override */
#featured-products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 992px) {
  #featured-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 500px) {
  #featured-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Hero subtext elegant banner style */
.hero-subtext {
  max-width: 720px;
  margin: 40px auto 20px auto;
  line-height: 1.6;
  font-size: 1.15rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 215, 0, 0.08);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  padding: 24px 15px;
  background: rgba(255, 255, 255, 0.005);
}

/* Glassmorphic Panel Showcase for 'Los más elegidos' */
.featured-products-wrapper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.featured-products-wrapper > * {
  position: relative;
  z-index: 2; /* Force children to render above background glows to prevent click blocking */
}

.featured-products-wrapper::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.04;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-subtext {
    font-size: 1rem;
    margin: 30px auto 15px auto;
    padding: 16px 10px;
  }
  
  .featured-products-wrapper {
    padding: 30px 15px;
    border-radius: var(--radius-md);
  }
}
