body {
  font-family: "Inter", sans-serif;
}

.font-serif {
  font-family: "Playfair Display", serif;
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #f38f38);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

#skipLink {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #9333ea;
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-weight: 600;
  transition: top 0.3s;
}

#skipLink:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #a855f7;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf5ff;
}

::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

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

.hero-gradient {
  background: linear-gradient(135deg, #faf5ff 0%, #fdecd3 50%, #f3e8ff 100%);
}

/* ========================================
   NAV + HERO
   ======================================== */

/* --- Nav: blanco limpio --- */
.hero-nav {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06) !important;
}

.hero-nav .hero-logo-icon {
  background: linear-gradient(135deg,#9333ea,#a855f7) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(147,51,234,0.2) !important;
  box-shadow: 0 2px 16px rgba(147,51,234,0.15) !important;
  transition: all 0.3s ease;
}

.hero-nav .hero-logo-icon:hover {
  box-shadow: 0 4px 20px rgba(147,51,234,0.25) !important;
}

.hero-nav .hero-nav-brand {
  color: #4a0e78 !important;
  text-shadow: none !important;
}

.hero-nav .hero-cart-icon {
  color: #9333ea !important;
}

#menuBtn, #cartToggleBtn {
  background: rgba(147,51,234,0.08) !important;
  border-color: rgba(147,51,234,0.15) !important;
  transition: all 0.3s ease;
}

#menuBtn:hover, #cartToggleBtn:hover {
  background: rgba(147,51,234,0.12) !important;
}

#menuBtn i, #cartToggleBtn i {
  color: #9333ea !important;
}

/* --- NEW HERO: Split Layout --- */
.hero-new {
  background: linear-gradient(135deg, #faf5ff 0%, #fff9f0 50%, #faf5ff 100%);
  position: relative;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
  }
}

.hero-left {
  animation: fadeInUp 0.8s ease-out;
  text-align: left;
}

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

.hero-new-headline {
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

@media (min-width: 640px) {
  .hero-new-headline {
    margin-bottom: 1.75rem;
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-new-headline {
    font-size: 4rem;
  }
}

.hero-new-headline em {
  font-style: normal;
}

.hero-new-description {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-new-description {
    font-size: 1.1rem;
  }
}

.hero-right {
  display: none;
}

@media (min-width: 768px) {
  .hero-right {
    display: flex;
    animation: fadeInRight 0.8s ease-out 0.2s both;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- OLD HERO (keeping for backward compatibility) --- */
.hero-section {
  display: none;
}

/* Imagen full-screen */
.hero-full-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Gradient overlay: oscuro arriba (para nav), transparente al centro */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.10) 35%,
    transparent 55%
  );
  pointer-events: none;
}

/* --- Badges flotantes sutiles (glassmorphism) --- */
.hero-badge {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-badge-vitC {
  top: 18%;
  right: 9%;
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-badge-vitC {
    right: 14%;
  }
}

.hero-badge-nat {
  top: 24%;
  left: 7%;
  animation: float 5s ease-in-out infinite 1s;
}

@media (min-width: 640px) {
  .hero-badge-nat {
    left: 11%;
  }
}

.hero-badge-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .hero-badge-circle {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.hero-badge-value {
  font-weight: 800;
  font-size: 0.68rem;
  background: linear-gradient(135deg, #fbd5a5, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-badge-circle-text {
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.hero-badge-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  text-align: center;
}

/* --- Texto editorial sobre la imagen --- */
.hero-text-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6% 14%;
  pointer-events: none;
}

.hero-text-inner {
  max-width: 26rem;
  text-align: center;
  pointer-events: auto;
}

.hero-tagline {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-headline {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 2.4rem;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 3.2rem;
  }
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #fbd5a5, #f89e30);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline em + em,
.hero-headline em:nth-of-type(2) {
  background: linear-gradient(135deg, #e9c8ff, #b77dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  max-width: 22rem;
  margin: 0 auto;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 0.9rem;
  }
}

/* --- Hero CTA Buttons --- */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  pointer-events: auto;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.btn-primary,
.btn-secondary {
  font-size: 0.85rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

@media (min-width: 500px) {
  .btn-primary,
  .btn-secondary {
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
  }
}

@media (min-width: 640px) {
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: 1rem 2.5rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.35);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  color: #1f2937;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: white;
  box-shadow: 0 6px 30px rgba(255,255,255,0.25);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* --- Hero Features (NEW) --- */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 24rem;
}

@media (min-width: 768px) {
  .hero-features {
    gap: 1.25rem;
  }
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
}

.hero-feature svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-feature span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}

/* --- Scroll hint --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}

.hero-scroll-hint span {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.hero-scroll-hint svg {
  color: rgba(255,255,255,0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ========================================
   FIN HERO INMERSIVO
   ======================================== */

.brand-gradient {
  background: linear-gradient(135deg, #7e22ce 0%, #9333ea 50%, #a855f7 100%);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.float-delay-3 {
  animation-delay: 3s;
}

.float-badge-primary {
  animation: float 4s ease-in-out infinite;
}

.float-badge-secondary {
  animation: float 5s ease-in-out infinite 1s;
}

.shimmer-text {
  background: linear-gradient(90deg, #a855f7, #f38f38, #a855f7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

.btn-glow:active {
  transform: scale(0.97);
}

.btn-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.card-hover,
.product-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
}

.img-hover-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.img-shimmer {
  background: linear-gradient(90deg, #f3e8ff 25%, #e9d5ff 50%, #f3e8ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.nav-blur {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-toggle-btn {
  backdrop-filter: blur(16px);
}

.cart-count-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.28);
}

.product-variant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.75rem;
}

.product-variant-option {
  display: block;
}

.product-variant-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 4.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.15rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  transition: all 0.25s ease;
  cursor: pointer;
}

.product-variant-option:hover .product-variant-chip {
  border-color: #d8b4fe;
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.12);
}

.product-variant-input:checked + .product-variant-chip {
  border-color: #9333ea;
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.14);
}

.product-variant-volume {
  font-size: 0.86rem;
  font-weight: 700;
  color: #111827;
}

.product-variant-price {
  font-size: 0.78rem;
  color: #6b7280;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.46);
  backdrop-filter: blur(6px);
  z-index: 80;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(100%, 34rem);
  pointer-events: none;
}

.cart-drawer-panel {
  width: 100%;
  height: 100%;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(22px);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  pointer-events: auto;
}

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

.cart-drawer-header,
.cart-drawer-footer {
  padding: 1.5rem;
  border-color: #f1f5f9;
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.cart-drawer-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9333ea;
}

.cart-drawer-close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-drawer-close:hover {
  background: #faf5ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}

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

.cart-empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 0.5rem;
}

.cart-empty-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #faf5ff 0%, #fdecd3 100%);
  color: #9333ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(147, 51, 234, 0.08);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-customer-panel {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid #ede9fe;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.06);
}

.cart-customer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cart-customer-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9333ea;
  margin-bottom: 0.2rem;
}

.cart-customer-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.cart-field input,
.cart-field select,
.cart-field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  color: #111827;
  font-size: 0.92rem;
  padding: 0.82rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.cart-field input:focus,
.cart-field select:focus,
.cart-field textarea:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
  outline: none;
}

.cart-field input.is-invalid,
.cart-field select.is-invalid,
.cart-field textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.cart-form-hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.cart-form-hint.is-error {
  color: #dc2626;
  font-weight: 600;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cart-item-media {
  width: 5rem;
  height: 5rem;
  border-radius: 1.2rem;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #faf5ff 0%, #fef3c7 100%);
}

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

.cart-item-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.cart-item-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.cart-item-remove {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

.cart-item-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.cart-item-price {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #9333ea;
}

.cart-quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.cart-quantity-stepper button,
.cart-quantity-stepper span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.cart-quantity-stepper button {
  color: #4b5563;
  transition: all 0.2s ease;
}

.cart-quantity-stepper button:hover {
  background: #ede9fe;
  color: #7e22ce;
}

.cart-line-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.cart-drawer-footer {
  border-top: 1px solid #f1f5f9;
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.4) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-shipping-status {
  font-size: 0.82rem;
  color: #6b7280;
}

.cart-shipping-status.is-qualified {
  color: #15803d;
  font-weight: 600;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.is-disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-trigger[aria-expanded="true"] {
  background: rgba(168, 85, 247, 0.04);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

.carousel-track,
.testimonial-slide {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ficha-tab {
  background: #f3f4f6;
  color: #4b5563;
}

.ficha-tab:hover {
  background: #e5e7eb;
}

.ficha-tab[aria-selected="true"] {
  background: #9333ea;
  color: #fff;
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.25);
}

.carousel-dot,
.testimonial-dot {
  background: #d1d5db;
  transition: all 0.3s ease;
}

.carousel-dot[aria-selected="true"] {
  background: #9333ea;
  transform: scale(1.3);
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-dot[aria-selected="true"] {
  background: #9333ea;
  transform: scale(1.25);
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #1f2937;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  isolation: isolate;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(147, 51, 234, 0.14);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 50%;
  height: 260%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  z-index: 2;
  transition: transform 0.9s ease;
  pointer-events: none;
}

.gallery-card:hover::after {
  transform: translateX(260%) rotate(18deg);
}

.gallery-card img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.04);
}

.gallery-caption {
  position: relative;
  z-index: 3;
  padding: 1rem 1rem 1.1rem;
  background: #fff;
}

.gallery-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  color: #111827;
}

.gallery-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.gallery-frame {
  position: absolute;
  inset: 10px 10px auto 10px;
  height: calc(100% - 5.6rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cart-drawer {
    width: 100%;
  }

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

  .cart-item {
    padding: 0.9rem;
  }

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

  .cart-item-media {
    width: 4.25rem;
    height: 4.25rem;
  }

  .cart-item-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-caption {
    padding: 0.85rem 0.85rem 1rem;
  }

  .gallery-title {
    font-size: 0.92rem;
  }

  /* Mobile-first section spacing */
  section.py-20,
  section.py-24,
  section[class*="py-20"],
  section[class*="py-24"],
  section[class*="py-28"],
  section[class*="py-32"] {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  section.py-12,
  section.py-16,
  section[class*="py-12"],
  section[class*="py-16"] {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Compact nav bar on mobile */
  #navbar .h-14 {
    height: 3.25rem;
  }

  /* Reduce hero image size on small phones */
  #inicio .relative.w-64 {
    width: 14rem;
    height: 14rem;
  }

  /* Product cards — less padding on mobile */
  .product-card .p-6 {
    padding: 1rem;
  }

  .product-variant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .product-variant-chip {
    padding: 0.5rem 0.6rem;
    min-height: auto;
  }

  .product-variant-volume {
    font-size: 0.78rem;
  }

  .product-variant-price {
    font-size: 0.7rem;
  }

  .product-card .text-2xl {
    font-size: 1.25rem;
  }

  /* Stats grid on smaller screens */
  #statsGrid .text-4xl {
    font-size: 1.75rem;
  }

  #statsGrid {
    gap: 1rem;
  }

  /* Gallery items — smaller heights */
  .gallery-card img {
    height: 8rem !important;
  }

  .gallery-card.h-56 {
    height: 8rem;
  }

  /* Testimonial card spacing */
  .testimonial-card .p-8 {
    padding: 1.25rem;
  }

  /* Ficha tab buttons */
  .ficha-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  /* Footer grid on mobile */
  footer .grid.sm\\:grid-cols-2 {
    gap: 2rem;
  }
}

@media (max-width: 380px) {
  /* Extra small phones */
  #inicio .relative.w-64 {
    width: 12rem;
    height: 12rem;
  }

  #inicio h1 {
    font-size: 1.5rem;
  }

  .product-variant-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

.ficha-size-btn {
  background: #fff;
  border-color: #e5e7eb;
  color: #4b5563;
}

.ficha-size-btn:hover {
  border-color: #d8b4fe;
  color: #7e22ce;
}

.ficha-size-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: #9333ea;
  color: #fff;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
}

.ficha-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .ficha-sticky-bar {
    position: static;
  }
}

.ficha-slide-inner {
  margin-bottom: 5rem;
}

@media (min-width: 640px) {
  .ficha-slide-inner {
    margin-bottom: 0;
  }
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
  #navbar {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .ficha-sticky-bar {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
  }

  .cart-drawer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
