/* ---------------------------------------------------
   Inkly – Style Sheet  |  Fully Responsive
   --------------------------------------------------- */

/* ---- Variables ---- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* OKLCH Color Palette */
  --color-bg: oklch(98.5% 0.005 350);
  --color-surface: oklch(100% 0 0);
  --color-surface-alt: oklch(97% 0.005 350);
  --color-nav-bg: oklch(98.5% 0.005 350 / 0.95);
  
  --color-primary: oklch(77% 0.12 350);
  --color-primary-rgb: 255, 154, 193; /* fallback for older scripts */
  --color-accent: oklch(88% 0.06 240);
  --color-accent2: oklch(92% 0.08 95);
  
  --color-text: oklch(25% 0.02 350);
  --color-muted: oklch(60% 0.01 350);
  --color-border: oklch(92% 0.01 350);
  
  --radius: 12px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
  --sidebar-w: 260px;
}

[data-theme="dark"] {
  --color-bg: oklch(20% 0.01 350);
  --color-surface: oklch(25% 0.01 350);
  --color-surface-alt: oklch(22% 0.01 350);
  --color-nav-bg: oklch(20% 0.01 350 / 0.95);
  
  --color-text: oklch(95% 0.01 350);
  --color-primary: oklch(75% 0.12 350);
  --color-accent: oklch(85% 0.06 240);
  --color-accent2: oklch(90% 0.08 95);
  
  --color-muted: oklch(70% 0.01 350);
  --color-border: oklch(35% 0.01 350);
}

/* Fallback: si prefers-reduced-motion o JS falla, mostrar todo */
.no-motion * { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Container ---- */
.container {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.logo-text {
  font-family: 'Brush Script MT', 'Brush Script Std', cursive;
  font-size: 2.2rem;
  color: var(--color-text); /* Se adapta automáticamente a claro/oscuro */
  font-weight: normal;
  letter-spacing: 1px;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); margin-top: 0.5rem; }
p  { margin-bottom: 1rem; text-wrap: pretty; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: sticky;
  top: 0;
  background: var(--color-nav-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Back button */
.back-btn {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.back-btn:hover { transform: translateX(-4px); }

/* Logo */
.logo img { height: 40px; width: auto; }

/* Nav links – desktop */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  margin: 0 0.7rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding-bottom: 0.2rem;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a.active,
.nav-links a:hover { color: var(--color-primary); }

/* Sliding underline */
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 99px;
  transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CTA button in navbar */
.nav-cta { flex-shrink: 0; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,154,193,0.3);
}
.btn-primary:hover {
  background: #ff84a6;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255,154,193,0.4);
}
.btn-cta { background: #fff; color: var(--color-primary); font-weight: 700; }
.btn-cta:hover { background: #f9f9f9; }

/* ================================================
   PARALLAX HERO GSAP
   ================================================ */
.parallax-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg);
}

.parallax-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../images/ai_hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Usamos un SVG en línea como máscara inicial */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400"><text x="50%" y="50%" text-anchor="middle" dominant-baseline="middle" font-size="300" font-weight="900" font-family="system-ui, sans-serif">INKLY</text></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400"><text x="50%" y="50%" text-anchor="middle" dominant-baseline="middle" font-size="300" font-weight="900" font-family="system-ui, sans-serif">INKLY</text></svg>');
  -webkit-mask-size: 30vw;
  mask-size: 30vw;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 1;
}

.parallax-full-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../images/ai_hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.parallax-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  opacity: 0; /* Hidden initially, animated by GSAP */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 90%;
  max-width: 800px;
  
  /* Glassmorphism oscuro para legibilidad perfecta de letra blanca */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem 2rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.parallax-content .hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin: 0;
}

.parallax-content .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  margin: 0;
}

/* ================================================
   SECTION TITLE
   ================================================ */
.section-title { text-align: center; margin-bottom: 2rem; }

/* ================================================
   CATEGORIES / GENERAL GRID
   ================================================ */
.categories { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--color-surface-alt); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card, .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transform-style: preserve-3d;
}
.category-card img, .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s var(--transition);
}

.category-card:hover img, .card:hover img {
  transform: scale(1.05);
}
.category-card h3, .card h3 { margin: 1.2rem 0 0.5rem; padding: 0 1rem; }
.category-card p,  .card p  {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  flex: 1;
}
.category-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.how-it-works { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--color-bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.step {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.4s var(--transition);
}
.step:hover {
  transform: translateY(-4px);
}
.step-number {
  width: 40px; height: 40px;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
  position: absolute;
  top: -20px; left: calc(50% - 20px);
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--color-surface-alt); }

.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.testimonial {
  min-width: min(280px, 85vw);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  scroll-snap-align: start;
  color: var(--color-text);
}
.testimonial p { font-style: italic; margin-bottom: 0.5rem; }
.author { font-weight: 600; font-size: 0.9rem; display: block; text-align: right; }

/* ================================================
   QUOTE FORM
   ================================================ */
.quote-form-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.quote-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,154,193,0.2);
}
.submit-btn { width: 100%; background: var(--color-primary); color: #fff; font-size: 1rem; }
.submit-btn:hover { background: #ff84a6; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #222;
  color: #ccc;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  font-size: 0.9rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.75rem; }
.footer-links a { color: #aaa; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 0.75rem; }
.social a { display: inline-block; transition: var(--transition); }
.social a:hover { transform: translateY(-2px); opacity: 0.8; }
.social-icon { width: 28px; height: 28px; object-fit: contain; }
.credit { margin-top: 0.25rem; font-size: 0.8rem; color: #888; }

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ================================================
   FLOATING CART
   ================================================ */
.floating-cart {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255,154,193,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.floating-cart:hover { transform: translateY(-4px); color: #fff; }
.cart-icon { font-size: 1.1rem; }
.cart-count {
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 1px 7px;
  font-size: 0.85rem;
}
/* ================================================
   PRODUCT CAROUSEL
   ================================================ */
.product-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 2px solid var(--color-primary);
}
.cat-card .product-carousel {
  height: 190px;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.product-carousel:hover .carousel-btn {
  opacity: 1;
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }

.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background 0.3s;
}
.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ================================================
   LIGHTBOX (AMPLIAR IMÃGENES)
   ================================================ */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.1);
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  transition: background 0.3s;
  z-index: 1000;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* Cursor especial en las tarjetas */
.card:not(.category-card) img {
  cursor: zoom-in;
}

/* ================================================
   CUSTOM MODAL (ALERTS)
   ================================================ */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.custom-modal-box {
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255,154,193,0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-modal-overlay.active .custom-modal-box {
  transform: translateY(0) scale(1);
}
.custom-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.custom-modal-icon.success { color: #25D366; }
.custom-modal-icon.error { color: #ff6b6b; }
.custom-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.custom-modal-msg {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.custom-modal-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.custom-modal-btn:hover {
  background: #ff84a6;
  transform: translateY(-2px);
}

/* WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: #25D366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.floating-whatsapp:hover { transform: translateY(-4px) scale(1.05); color: #fff; }

/* Cart items in form */
.cart-items-list {
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  margin: 0.5rem 0;
}
.cart-items-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text);
}

/* =========================================
   FUNCIONALIDADES AVANZADAS
   ========================================= */

/* --- Barra de Búsqueda --- */
.search-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  position: relative;
}
.search-input {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--color-muted);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-primary);
  outline: none;
  width: 200px;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(255,154,193,0.3);
}
.search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

/* --- Search Dropdown --- */
.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 300px;
  max-width: 90vw;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 2000;
}
.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s;
}
.search-result-item:hover {
  background: var(--color-surface-alt);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}
.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}
.search-result-empty {
  padding: 15px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* --- Botón Modo Oscuro --- */
.theme-toggle {
  background: var(--color-border);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 30px;
  cursor: pointer;
  margin-left: 1rem;
  position: relative;
  width: 64px;
  height: 32px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.theme-toggle:hover {
  box-shadow: 0 0 10px rgba(255, 154, 193, 0.3);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--color-surface);
  border-radius: 50%;
  left: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(32px);
}

.theme-toggle .icon-sun, .theme-toggle .icon-moon {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: translateX(0) rotate(90deg) scale(0.5);
}
.theme-toggle .icon-sun {
  opacity: 1;
  transform: translateX(0) rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: translateX(32px) rotate(0) scale(1);
}
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: translateX(32px) rotate(-90deg) scale(0.5);
}

/* --- Panel Lateral del Carrito (Drawer) --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-header h3 {
  margin: 0;
  color: var(--color-primary);
}
.close-drawer {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-item p {
  margin: 0;
  font-weight: 500;
}
.cart-drawer-item-remove {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
}
.cart-drawer-item-remove:hover {
  background: #d43f3f;
  transform: scale(1.1);
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.cart-drawer-footer .btn {
  width: 100%;
  text-align: center;
}

/* Ajustes Responsive Nav para nuevos elementos */
@media (max-width: 768px) {
  .search-input {
    width: 120px;
    padding: 0.4rem 0.8rem;
  }
}
.cart-items-list li:last-child { border-bottom: none; }
.btn-remove-item {
  background: none; border: none;
  color: #dc3545; cursor: pointer;
  font-weight: bold; font-size: 1.1rem; padding: 0 4px;
}
.btn-remove-item:hover { color: #a71d2a; }

/* ================================================
   ADD TO CART BUTTON
   ================================================ */
.btn-add-cart {
  background: var(--color-accent);
  color: #fff;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  margin: 0.5rem auto 1.1rem;
  width: 88%;
  display: block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-cart:hover    { background: var(--color-primary); }
.btn-add-cart.added    { background: #28a745; }

/* ================================================
   ANIMATIONS
   ================================================ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ================================================
   CATALOG SECTION (subpages)
   ================================================ */
.catalog-section { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--color-bg); }
.catalog-section:nth-child(even) { background: var(--color-surface-alt); }

.catalog-section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  position: relative;
}
.catalog-section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--color-primary);
  border-radius: 99px;
  margin: 0.4rem auto 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Catalog category cards (catalog.html) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.cat-card {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}
.category-card.fade-in-visible, .card.fade-in-visible, .cat-card.fade-in-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Historias Estilo Instagram ---- */
.stories-section { padding-top: 1rem; padding-bottom: 1rem; }
.stories-wrap { width: 100%; overflow: hidden; }
.stories-container { display: flex; gap: 1.5rem; width: max-content; animation: stories-ticker 25s linear infinite; padding-bottom: 0.5rem; }
.stories-container:hover { animation-play-state: paused; }
@keyframes stories-ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-50% - 0.75rem), 0, 0); }
}
.story-circle { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; cursor: pointer; min-width: 80px; }
.story-ring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); transition: transform 0.2s ease; }
.story-circle:hover .story-ring { transform: scale(1.05); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-bg); }
.story-circle span { font-size: 0.8rem; font-weight: 600; color: var(--color-text); }

/* Visor de Historias */
.story-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; display: none; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.story-viewer.active { display: flex; opacity: 1; }
.story-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10; }
.story-progress-container { position: absolute; top: 10px; width: 95%; max-width: 500px; height: 3px; display: flex; gap: 5px; z-index: 10; }
.story-progress-bar { flex: 1; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; }
.story-progress { width: 0%; height: 100%; background: #fff; transition: width 0.1s linear; }
.story-content { position: relative; max-width: 500px; width: 100%; height: 80vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.story-content img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; }
.story-caption { text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-bottom: 2rem; padding: 1rem; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.story-caption h3 { font-family: 'Playfair Display', serif; margin-bottom: 1rem; font-size: 1.5rem; }
.story-nav { position: absolute; top: 0; height: 100%; width: 50%; cursor: pointer; z-index: 5; }
.story-nav.left { left: 0; }
.story-nav.right { right: 0; }

/* ---- Búsqueda Inteligente (Autocomplete) ---- */
.search-container { position: relative; }
.search-dropdown { position: absolute; top: calc(100% + 6px); left: 0; width: 300px; max-height: 400px; overflow-y: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(255,154,193,0.15); backdrop-filter: blur(16px); z-index: 1000; display: flex; flex-direction: column; padding: 0.5rem; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; }
.search-dropdown.active { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.search-dropdown-item { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0.5rem; text-decoration: none; color: var(--color-text); border-radius: var(--radius); transition: background 0.2s; }
.search-dropdown-item:hover { background: rgba(var(--color-primary-rgb), 0.1); }
.search-dropdown-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.search-dropdown-item span { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

/* ---- Marquesina Infinita (Ticker Tape) ---- */
.ticker-wrap { width: 100%; overflow: hidden; background-color: var(--color-primary); color: #fff; padding: 0.5rem 0; box-sizing: border-box; }
.ticker { display: flex; width: max-content; animation: ticker 20s linear infinite; }
.ticker-item { padding: 0 2rem; font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

.category-card:hover, .card:hover, .cat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,0.1); z-index: 1; }
.cat-card img { width: 100%; height: 190px; object-fit: cover; border-bottom: 2px solid var(--color-primary); }
.cat-card h3 { padding: 1rem 0.75rem 0.25rem; font-family: var(--font-display); font-size: 1.05rem; }
.cat-card p  { font-size: 0.84rem; color: var(--color-muted); padding: 0 0.75rem; flex: 1; }
.cat-card .btn { margin: 1rem auto 1.5rem; font-size: 0.88rem; padding: 0.5rem 1.4rem; }

/* ================================================
   RESPONSIVE – TABLET  (max 900px)
   ================================================ */
@media (max-width: 900px) {
  /* Hide CTA button in navbar to save space */
  .nav-cta { display: none; }
}

/* --- Bottom Nav (Oculto en desktop) --- */
.bottom-nav { display: none; }

/* ================================================
   RESPONSIVE – MOBILE  (max 700px)
   ================================================ */
@media (max-width: 700px) {

  /* --- Navbar (Rediseño App-like) --- */
  .nav-toggle { display: none !important; }
  .nav-links {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .nav-links > a.nav-item, .nav-links > .nav-indicator, .nav-links > .theme-toggle {
    display: none !important;
  }
  .navbar .btn-primary { display: none !important; }
  .nav-inner { justify-content: center; position: relative; }
  
  /* Mobile Search Container (Hidden by default, toggled via JS) */
  .search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .search-container.active-mobile { display: block !important; }
  /* font-size: 16px previene el auto-zoom en iOS Safari */
  .search-input { width: 100% !important; font-size: 16px !important; }
  
  .search-results-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
  }

  /* Bottom Nav */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0 0.8rem 0; /* Extra bottom padding for newer phones */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
  }
  .bottom-nav-item .icon { font-size: 1.4rem; margin-bottom: 2px; }
  .bottom-nav-item:active { color: var(--color-primary); }

  /* Ajustar body y flotantes para que la barra inferior no los tape */
  body { padding-bottom: 70px; }
  
  /* --- Hero --- */
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { order: 1; }
  .hero-image { order: 2; }
  
  /* Hide redundant section title in product pages on mobile */
  .hero + .catalog-section .catalog-section-title { display: none; }

  /* --- Grids --- */
  .grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* --- Cards smaller images on very small screens --- */
  .cat-card img { height: 160px; }
  .category-card img, .card img { height: 150px; }

  /* --- Floating WhatsApp --- */
  .floating-whatsapp {
    bottom: 85px; /* Moved up for bottom nav */
    left: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  /* --- Floating cart --- */
  .floating-cart {
    bottom: 85px; /* Moved up for bottom nav */
    right: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
  .cart-text { display: none; }
}

/* ================================================
   RESPONSIVE – SMALL MOBILE  (max 420px)
   ================================================ */
@media (max-width: 420px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-grid { grid-template-columns: 1fr; }
  
  .card h3 { font-size: 0.85rem; padding: 0.5rem 0.5rem 0.25rem; }
  .card p { font-size: 0.75rem; padding: 0 0.5rem; line-height: 1.2; }
  .card .btn-add-cart { font-size: 0.75rem; padding: 0.4rem 0.6rem; margin: 0.5rem auto 0.75rem; width: 90%; }
  .category-card img, .card img { height: 120px; }
  
  h1 { font-size: 1.6rem; }
  .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
  .logo img { height: 34px; }
}

/* ---- Preguntas Frecuentes (FAQ) ---- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--color-surface-alt);
}
.faq-item.active .faq-answer {
  max-height: 300px; /* Suficiente espacio para la respuesta */
  padding: 0 1.5rem 1.2rem 1.5rem;
}
.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.9;
}

/* ---- Botón Mágico Volver Arriba ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 154, 193, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 999;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 154, 193, 0.6);
}
@media (min-width: 769px) {
  .scroll-top-btn {
    bottom: 30px;
    right: 30px;
  }
}

/* ---- Aviso de Cookies ---- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cookie-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.cookie-content h4 {
  margin: 0 0 0.4rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
}
.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-muted);
}
.cookie-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}
.cookie-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  flex: 1;
  text-align: center;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-border);
}

@media (max-width: 700px) {
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: 90px; /* Above mobile bottom nav */
    max-width: none;
  }
}

/* ================================================
   PREMIUM ENHANCEMENTS – Glassmorphism & Micro-animations
   ================================================ */

/* Variables adicionales premium */
:root {
  --shadow-primary: rgba(255, 154, 193, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 154, 193, 0.2);
}
[data-theme="dark"] {
  --glass-bg: rgba(18, 18, 18, 0.88);
  --glass-border: rgba(255, 117, 151, 0.2);
}

/* --- Navbar glassmorphism premium --- */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* --- Cart Drawer glassmorphism --- */
.cart-drawer {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-left: 1px solid var(--glass-border);
}

/* --- Shimmer effect en cards --- */
.card, .cat-card, .category-card {
  position: relative;
  overflow: hidden;
}
.card::before, .cat-card::before, .category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.card:hover::before, .cat-card:hover::before, .category-card:hover::before {
  left: 150%;
}
[data-theme="dark"] .card::before,
[data-theme="dark"] .cat-card::before,
[data-theme="dark"] .category-card::before {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 80%
  );
}

/* --- Gradient btn-primary mejorado --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff84a6 100%) !important;
  box-shadow: 0 4px 15px var(--shadow-primary) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff84a6 0%, var(--color-primary) 100%) !important;
  box-shadow: 0 6px 20px var(--shadow-primary) !important;
  transform: translateY(-3px) !important;
}

/* --- Ripple en btn-add-cart --- */
.btn-add-cart {
  position: relative;
  overflow: hidden;
}
.btn-add-cart::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn-add-cart:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}


/* --- Mejora en .step cards --- */
.step {
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-surface-alt) 100%) !important;
  border: 1px solid var(--glass-border);
}
.step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 0 0 var(--radius) var(--radius);
}



/* --- Mejora de cards hover (más suave) --- */
.category-card:hover, .card:hover, .cat-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(255,154,193,0.22) !important;
}

/* --- Gradient border en cards hover --- */
.card:hover, .cat-card:hover, .category-card:hover {
  border-color: transparent !important;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box !important;
}

/* --- Logo text con gradiente animado --- */
.logo-text {
  background: linear-gradient(135deg, var(--color-primary), #d4a0ff, var(--color-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGradient 4s ease infinite;
}
@keyframes logoGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Ticker tape con gradiente --- */
.ticker-wrap {
  background: linear-gradient(90deg, var(--color-primary), #d4a0ff, var(--color-accent), var(--color-primary)) !important;
  background-size: 300% 100% !important;
  animation: tickerBg 6s linear infinite !important;
}
@keyframes tickerBg {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- Story rings premium --- */
.story-ring {
  background: linear-gradient(45deg, #ff9ac1, #e1bee7, #ce93d8, #f8bbd0) !important;
  background-size: 200% 200% !important;
  animation: storyRingAnim 4s ease infinite !important;
}
@keyframes storyRingAnim {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Floating WhatsApp pulse --- */
@keyframes waPulse {
  0%   { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50%  { box-shadow: 0 4px 25px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}
.floating-whatsapp {
  animation: waPulse 2s ease-in-out infinite !important;
}

/* --- FAQ hover mejorado --- */
.faq-item:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 20px var(--shadow-primary) !important;
}
.faq-question:hover {
  color: var(--color-primary) !important;
}

/* --- Testimonials cards premium --- */
.testimonial {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.testimonial:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 30px var(--shadow-primary) !important;
}

/* --- Scroll to top button mejorado --- */
.scroll-top-btn {
  background: linear-gradient(135deg, var(--color-primary), #d4a0ff) !important;
}

/* --- Quote form section mejorada --- */
.quote-form-section {
  background: linear-gradient(-45deg, var(--color-accent), var(--color-primary), #d4a0ff, var(--color-accent)) !important;
  background-size: 300% 300% !important;
  animation: heroGradient 10s ease infinite !important;
}

/* --- Number steps --- */
.step-number {
  background: linear-gradient(135deg, var(--color-primary), #d4a0ff) !important;
  box-shadow: 0 4px 15px var(--shadow-primary) !important;
}



/* Price Tags */
.price-tag {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.price-tag span.price-detail {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: block;
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ---- Premium Calendar Widget ---- */
.premium-calendar {
  position: fixed;
  z-index: 100000;
  width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.32,0.72,0,1), transform 0.4s cubic-bezier(0.32,0.72,0,1);
}

.premium-calendar.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .premium-calendar {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: var(--color-surface);
}

.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pc-month-year {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  font-family: var(--font-display);
}

.pc-btn {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.3s, transform 0.2s;
  font-size: 1.2rem;
}

.pc-btn:hover {
  background: var(--color-border);
  transform: scale(1.05);
}

.pc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.pc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.pc-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.32,0.72,0,1);
  background: transparent;
}

.pc-day:not(.empty):hover {
  background: var(--color-surface-alt);
  transform: scale(1.1);
}

.pc-day.selected {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px oklch(77% 0.12 350 / 0.4);
}

.pc-day.empty {
  cursor: default;
}
