/* ===== VARIABLES CSS ===== */
:root {
  /* Paleta de colores DigitalBaires */
  --primary-pink: #FC8DCA;
  --primary-purple: #C37EDB;
  --primary-lilac: #B7A6F6;
  --primary-blue: #88A3E2;
  --primary-cyan: #AAECFC;
  
  /* Colores complementarios */
  --white: #FFFFFF;
  --black: #2D1B3D;
  --gray-light: #F8F9FA;
  --gray-medium: #6C757D;
  --gray-dark: #343A40;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  --gradient-secondary: linear-gradient(135deg, var(--primary-lilac), var(--primary-blue));
  --gradient-bg: linear-gradient(135deg, #FFEEF7, #F3E8FF);
  
  /* Tipografías */
  --font-primary: 'Inter', sans-serif;
  --font-script: 'Kalam', cursive;
  
  /* Tamaños de fuente */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--black);
  background: var(--gradient-bg);
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* ===== UTILIDADES ===== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== BOTONES ===== */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-xl);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-primary);
  color: var(--white);
  border: 2px solid transparent;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-base);
}

/* Botones hero - estilo unificado con transición gradiente → blanco */
.btn-hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-hero:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-add-cart {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
}

.btn-add-cart:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-quick-view {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #FC8DCA, #C37EDB);
  color: white;
  border: 2px solid transparent;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-quick-view:hover {
  background: white;
  color: #C37EDB;
  border-color: #C37EDB;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===== HEADER ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
  max-width: calc(100% - 100px);
  width: 100%;
  margin: 0 auto;
  gap: var(--space-2xl);
}

.nav-brand {
  flex-shrink: 0;
}

.nav-brand .logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--black);
  position: relative;
  padding: var(--space-sm) 0;
  font-size: 1.69rem;
  white-space: nowrap;
}

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

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

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

/* Estilo de botones para nav links - mismo tamaño que botones hero */
.nav-link-btn {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link-btn:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-link-btn:active {
  transform: translateY(0);
}

.nav-link-btn:after {
  display: none;
}

.nav-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-shrink: 0;
}

/* Botones de carrito y login en navbar - mismo tamaño que botones hero */
.btn-cart,
.btn-login {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
}

.btn-cart:hover,
.btn-login:hover {
  background: var(--white);
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cart:active,
.btn-login:active {
  transform: translateY(0);
}

.cart-count {
  background: var(--white);
  color: var(--primary-purple);
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

/* DEPRECATED - Mantener por compatibilidad */
.cart-btn {
  position: relative;
}

.cart-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--black);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--space-3xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.title-script {
  font-family: var(--font-script);
  color: var(--black);
  display: block;
  font-size: 3.5rem;
}

.title-year {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: block;
  font-size: 4.5rem;
}

.hero-subtitle {
  font-size: 1.75rem;
  color: var(--gray-medium);
  margin-bottom: var(--space-xl);
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-image {
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(252, 141, 202, 0.3));
  animation: float 3s ease-in-out infinite;
}

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

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: var(--space-3xl) 0;
  background: rgba(255, 255, 255, 0.7);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.step {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-base);
  transition: var(--transition-base);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-md);
}

.step h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--black);
}

.step p {
  color: var(--gray-medium);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--black);
  position: relative;
}

.section-title-script {
  font-family: var(--font-script);
  font-size: 3rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ===== PRODUCTOS DESTACADOS ===== */
.featured-products {
  padding: var(--space-3xl) 0;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: var(--space-3xl) 0;
  background: var(--gradient-primary);
  overflow: hidden;
  position: relative;
}

.reviews-section .section-title {
  color: var(--white);
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reviews-section .section-title:after {
  background: var(--white);
}

.reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask: linear-gradient(
    to right,
    transparent,
    white 10%,
    white 90%,
    transparent
  );
  -webkit-mask: linear-gradient(
    to right,
    transparent,
    white 10%,
    white 90%,
    transparent
  );
}

.reviews-track {
  display: flex;
  gap: var(--space-xl);
  animation: scroll-reviews 30s linear infinite;
  width: fit-content;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-reviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 350px;
  max-width: 400px;
  position: relative;
  transition: var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-cyan);
  font-family: 'Georgia', serif;
  line-height: 1;
  opacity: 0.3;
}

.stars {
  margin-bottom: var(--space-md);
  text-align: center;
}

.stars span {
  font-size: var(--fs-lg);
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.review-text {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--black);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.review-author {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-purple);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.review-author::before {
  content: '—';
  margin-right: var(--space-sm);
  color: var(--primary-cyan);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

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

.product-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: var(--space-md);
}

/* ===== CATEGORÍAS ===== */
.categories-section {
  padding: var(--space-3xl) 0;
  background: rgba(255, 255, 255, 0.7);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.category-card {
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-base);
}

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

.category-image {
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  position: relative;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.category-overlay h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.category-count {
  font-size: var(--fs-base);
  opacity: 0.9;
}

/* ===== PLANTILLAS BANNER ===== */
.plantillas-banner {
  padding: var(--space-3xl) 0;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.banner-content h2 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.highlight {
  font-family: var(--font-script);
  font-size: var(--fs-5xl);
}

.banner-content p {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: var(--space-md);
  /* Logo original sin filtros para mantener los colores de la marca */
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--primary-cyan);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-base);
}

.footer-section a:hover {
  color: var(--primary-cyan);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: var(--transition-base);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  font-size: var(--fs-2xl);
  color: var(--white);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Navigation */
  .nav {
    max-width: calc(100% - 40px);
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: var(--space-lg) 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: var(--space-md) 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions {
    gap: var(--space-sm);
  }

  .btn-cart,
  .btn-login {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    min-width: auto;
  }

  .btn-cart {
    white-space: nowrap;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .title-script {
    font-size: 2rem;
  }

  .title-year {
    font-size: var(--fs-4xl);
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-md);
  }

  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
  
  /* Products */
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
  }
  
  /* Reviews */
  .reviews-section {
    padding: var(--space-2xl) 0;
  }
  
  .reviews-section .section-title {
    font-size: var(--fs-2xl);
  }
  
  .review-card {
    min-width: 300px;
    max-width: 320px;
    padding: var(--space-lg);
  }
  
  .review-card::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
  
  /* Categories */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Spacing adjustments */
  .hero,
  .featured-products,
  .categories-section,
  .plantillas-banner {
    padding: var(--space-2xl) 0;
  }
  
  .process-section {
    padding: var(--space-xl) 0;
  }

  /* Mantener 3 columnas en tablets */
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  /* Process steps - 1 columna en móvil */
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Navegación móvil - ajustado para pantallas muy pequeñas */
  .nav {
    padding: var(--space-sm) 0;
    max-width: calc(100% - 20px);
    gap: var(--space-sm);
  }

  .nav-brand .logo {
    height: 50px;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .btn-cart,
  .btn-login {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto;
    letter-spacing: 0;
  }

  .btn-cart .cart-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
  }

  /* Hero - textos más pequeños para móvil */
  .hero {
    padding: var(--space-lg) 0;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: var(--fs-xl);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
  }

  .title-script {
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    max-width: 100%;
    display: block;
  }

  .title-year {
    font-size: var(--fs-3xl);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 0.5rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
    padding: var(--space-md) var(--space-lg);
  }

  .btn-large {
    width: 100%;
    max-width: 250px;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .section-title-script {
    font-size: 2rem;
  }
  
  /* Reviews mobile */
  .review-card {
    min-width: 280px;
    max-width: 300px;
    padding: var(--space-md);
  }
  
  .review-card::before {
    font-size: 2.5rem;
    top: 0;
    left: 10px;
  }
  
  .review-text {
    font-size: var(--fs-sm);
  }
  
  .banner-content h2 {
    font-size: var(--fs-2xl);
  }

  .highlight {
    font-size: var(--fs-3xl);
  }
}

/* ===== HALLOWEEN SECTION ===== */
.halloween-section {
  background: linear-gradient(135deg, #1a0033 0%, #2d004d 50%, #1a0033 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.halloween-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 153, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.halloween-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.halloween-title {
  color: #ff6600 !important;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
  animation: spooky-glow 2s ease-in-out infinite alternate;
}

@keyframes spooky-glow {
  0% {
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
  }
}

.halloween-icon {
  font-size: 3rem;
}

.halloween-subtitle {
  color: #d1a3ff;
  font-size: 1.125rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.halloween-section .products-grid {
  position: relative;
  z-index: 1;
}

.halloween-section .product-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ff6600;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
}

.halloween-section .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 102, 0, 0.4);
}

.halloween-footer {
  position: relative;
  z-index: 1;
}

/* ===================================
   PRELOADER OPTIMIZADO
   =================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.preloader-overlay.visible {
    opacity: 1;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-content p {
    margin: 0;
    font-size: 16px;
    color: #444;
    font-weight: 500;
}

/* ===================================================
   ESTADOS INICIALES - Elementos ocultos por defecto
   =================================================== */

.auth-only {
  display: none;
}

.modal {
  display: none;
}

.cart-empty {
  display: none;
}

/* ===================================================
   MENSAJES DE LOADING
   =================================================== */

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.loading-message p {
  font-size: 1.2rem;
  color: var(--gray-medium);
}

.secciones-loading {
  text-align: center;
  padding: 3rem;
}

.secciones-loading p {
  font-size: 1.2rem;
  color: var(--gray-medium);
}

/* ===================================================
   COOKIE BANNER
   =================================================== */

#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}