@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --primary: #006d34;
  --primary-container: #2cc96a;
  --on-primary: #ffffff;
  --secondary: #0055c8;
  --surface: #f1f3f5;
  --on-surface: #1a1c1e;
  --on-surface-variant: #3d4a3e;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f3f6;
  --outline-variant: rgba(188, 203, 186, 0.15);

  --radius-sm: 8px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEntrada {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.page-transition {
  animation: pageEntrada var(--transition-smooth);
}

.page-exit {
  opacity: 0 !important;
  filter: blur(8px) !important;
  transform: scale(1.02) !important;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease !important;
}

@keyframes btn-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 109, 52, 0.4);
  }

  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(0, 109, 52, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 109, 52, 0);
  }
}

.pulse-primary {
  animation: btn-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.4;
}

main {
  /* Animation handled by .page-transition class */
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(249, 249, 252, 0.85);
  /* background-color is safer for Safari translucency */
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
}

/* Page Intro */
.page-intro {
  padding: 1.5rem 1.25rem 0.5rem;
}

.selection-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* Categories Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.filter-bar:active {
  cursor: grabbing;
}

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

.filter-chip {
  padding: 0.6rem 1.25rem;
  background-color: var(--surface-container-low);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.filter-chip.active {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(0, 109, 52, 0.2);
  transform: scale(1.05);
}

/* Product Cards */
.products-wrapper {
  padding: 0 1.25rem 5rem;
}

.product-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.image-container {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  width: 100%;
  /* Safari fallback for aspect-ratio */
  padding-bottom: 62.5%;
  /* 16:10 ratio */
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-firma {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 109, 52, 0.9);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Personalizar Badge */
.badge-personalizar {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: badge-pulse 2.5s infinite;
}

.badge-personalizar:active {
  transform: scale(0.93);
}

.badge-personalizar .material-symbols-outlined {
  font-size: 14px;
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  }

  50% {
    box-shadow: 0 4px 24px rgba(244, 63, 94, 0.7);
    transform: scale(1.03);
  }
}

/* Customization summary in cart */
.cart-customization-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background-color: var(--surface-container-low);
  color: var(--on-surface-variant);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-customization-tag.has-price {
  color: var(--primary);
  background-color: rgba(0, 109, 52, 0.08);
}

/* Validation error shake */
@keyframes shake-error {

  0%,
  100% {
    transform: translateX(0);
  }

  15%,
  45%,
  75% {
    transform: translateX(-4px);
  }

  30%,
  60%,
  90% {
    transform: translateX(4px);
  }
}

.shake-error {
  animation: shake-error 0.5s ease-in-out;
  outline: 2px solid #ef4444 !important;
  outline-offset: 2px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Changed from flex-start to center */
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  /* width: 70%; removed to use flex-1 in app.js */
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  white-space: nowrap;
}

.product-price small {
  font-size: 0.6rem;
  color: var(--on-surface-variant);
  font-weight: 600;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.btn-add-floating {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-add-floating:active {
  transform: scale(0.9);
}

.btn-add-floating.selected-item {
  background-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 85, 200, 0.25);
}

.btn-add {
  /* Keep existing btn-add for other pages like Checkout if needed */
  width: 100%;
  padding: 0.85rem;
  background-color: var(--surface-container-low);
  border: none;
  border-radius: 0.85rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add:active {
  background-color: var(--primary);
  color: white;
  transform: scale(0.98);
}

.btn-add.selected-item {
  background-color: var(--primary);
  color: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add.selected-item .icon {
  font-variation-settings: 'FILL' 1;
}

/* Cart Badge */
.cart-container {
  position: relative;
  cursor: pointer;
  padding: 4px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  display: none;
  /* Controlled by JS */
}

.nav-badge {
  top: -4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  border: 2px solid var(--surface-container-lowest);
}

.relative {
  position: relative;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-container-lowest);
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--outline-variant);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--on-surface-variant);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .icon-box {
  background-color: rgba(0, 109, 52, 0.1);
  border-radius: 1rem;
}

.icon-box {
  width: 50px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Capsule Menu (from delii Cute) */
#hamburger-menu {
  position: fixed;
  top: 60px;
  /* Header is roughly 52-60px */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  max-width: 448px;
  /* max-w-md */
  margin: 0 auto;
}

#hamburger-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.capsule-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0;
}

.capsule-item {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.25rem;
  border-radius: 0.75rem;
  background-color: var(--primary);
  /* Use primary as background for text clarity */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.capsule-item:active {
  transform: scale(0.95);
  background-color: var(--secondary);
}

/* Old Sidebar Drawer Styles removed as per request */

/* ── Hide ALL Mapbox branding / watermarks ── */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-attrib-inner,
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-compact-show,
a[href*="mapbox.com/map-feedback"],
a.mapboxgl-ctrl-logo {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Hide "Powered by Mapbox" from Search / Autofill components */
[class*="MapboxSearch"],
.mapboxgl-ctrl-geocoder--powered-by,
.mapbox-search-result--powered-by,
mapbox-address-autofill [class*="powered"],
mapbox-address-autofill .MapboxSearch,
.mbx-search-results a[href*="mapbox"],
.mbx--PoweredBy,
.Results--PoweredBy,
div[class*="PoweredBy"],
span[class*="PoweredBy"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Map GPS Toggle Button ── */
.map-gps-toggle {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-gps-toggle .material-symbols-outlined {
  font-size: 18px;
}

.map-gps-toggle[data-state="position"] {
  background: rgba(0, 109, 52, 0.92);
  color: #fff;
}

.map-gps-toggle[data-state="adjust"] {
  background: rgba(244, 63, 94, 0.92);
  color: #fff;
  animation: pulse-adjust 1.8s infinite;
}

@keyframes pulse-adjust {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
  }

  50% {
    box-shadow: 0 4px 26px rgba(244, 63, 94, 0.55);
  }
}

.map-gps-toggle:active {
  transform: translateX(-50%) scale(0.94);
}

/* ── Fixed center pin (Uber / Rappi style) ── */
.map-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.map-center-pin.lifted {
  transform: translate(-50%, -115%);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

.map-center-pin svg {
  width: 40px;
  height: 52px;
}

/* Small ring at the pin base */
.map-center-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: rgba(0, 109, 52, 0.18);
  border: 2px solid rgba(0, 109, 52, 0.4);
  transition: all 0.3s ease;
}

.map-center-ring.active {
  width: 20px;
  height: 20px;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.5);
  animation: ring-pulse 1.6s infinite;
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.4;
  }
}

/* ── Checkout Button Disabled State ── */
#checkout-btn:disabled {
  opacity: 0.55;
  filter: grayscale(0.8) blur(0.5px);
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  background: #94a3b8 !important;
  /* Muted slate color */
}

/* ── App Shell Mockup (Desktop/Tablet Horizontal) ── */
@media (min-width: 1024px) {
  body {
    background-color: #0f172a;
    background-image: url('wide-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Main Desktop Container Overlay */
  #desktop-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    overflow: hidden;
  }

  /* Dynamic Glassmorphism Background Layer */
  #desktop-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Dynamic Loupe Effect - Applied ONLY here */
    -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        transparent 0%,
        rgba(0, 0, 0, 1) 80%);
    mask-image: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        transparent 0%,
        rgba(0, 0, 0, 1) 80%);
    pointer-events: none;
  }

  /* iPhone 17 Pro Mockup Frame */
  #phone-frame {
    position: relative;
    z-index: 10;
    /* Ensures it is ABOVE the blurred overlay */
    height: 94vh;
    width: calc(94vh * (9 / 19.5));
    max-width: 480px;
    background: var(--surface);
    border: 12px solid #1a1a1a;
    border-radius: 60px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 30px 60px -30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* This transform ensures that fixed elements inside are relative to the frame, not the window */
    transform: translateZ(0);
    animation: phoneEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes phoneEntrance {
    from {
      transform: scale(0.9) translateY(20px) translateZ(0);
      opacity: 0;
    }

    to {
      transform: scale(1) translateY(0) translateZ(0);
      opacity: 1;
    }
  }

  /* Dynamic Island Mockup */
  #phone-frame::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  /* Sticky Header inside frame */
  #phone-frame header {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    flex-shrink: 0;
    padding-top: 45px !important;
    height: auto !important;
    min-height: 96px;
    background: white !important;
    z-index: 1500 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  /* Scrollable Content Container */
  #app-content {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background: var(--background);
    position: relative;
    padding-top: 0 !important;
  }

  #app-content::-webkit-scrollbar {
    display: none;
  }

  /* Sticky Navigation / Footer Action Bar at the bottom of the frame */
  #phone-frame .bottom-nav,
  #phone-frame nav.fixed,
  #phone-frame footer.fixed {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    padding: 12px 20px 25px 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    display: flex !important;
    justify-content: space-around !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05) !important;
    z-index: 1500 !important;
    margin: 0 !important;
  }

  /* Handle containers inside footers (like in Detail page) */
  #phone-frame footer.fixed .max-w-2xl,
  #phone-frame footer.fixed div[bis_skin_checked] {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    gap: 1rem !important;
  }

  #phone-frame .bottom-nav a,
  #phone-frame nav.fixed a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hero adjustments for desktop frame - More compact for smaller mockups */
  #phone-frame h2.text-4xl,
  #phone-frame h2.md\:text-5xl,
  #phone-frame h2.text-3xl {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    width: 100% !important;
    text-align: center !important;
  }

  #phone-frame .md\:w-2\/3 {
    width: 100% !important;
    padding: 1.5rem !important;
  }

  /* FORCE SINGLE COLUMN for main menu and sections (Like Mobile) */
  #phone-frame #product-list,
  #phone-frame .products-wrapper .grid,
  #phone-frame #customization-section,
  #phone-frame #categories-grid,
  #phone-frame #cart-items-container {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }


  /* Specific Exception: Items INSIDE accordions MUST stay in 2 columns */
  #phone-frame .accordion-body .grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  /* Prevent options from being forced to full width by other rules */
  #phone-frame .accordion-body label {
    width: auto !important;
  }

  #app-content #hamburger-menu,
  #app-content .toast-container {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
}

/* --- Standardized Logo Overlap --- */
.logo-overlap {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .logo-overlap {
    top: 0;
    height: 96px !important;
    /* Matches w-24 */
    width: 96px !important;
    /* Matches h-24 */
    padding: 0.35rem;
    /* Slightly reduced padding for smaller size */
    border-width: 4px;
  }
}

/* Standardized Clickable Elements */
.promo-card,
.promotion-card,
.btn-add-floating,
.nav-item,
.filter-chip {
  cursor: pointer !important;
}

/* Hide scrollbars but keep functionality */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.hide-scrollbar:active {
  cursor: grabbing;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Fallback for when not in the shell */
@media (max-width: 1023px) {
  #desktop-wrapper {
    background: none;
  }

  #phone-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
  }
}

/* --- Promoción Papitas Chips --- */
@keyframes chips-bounce {
    0%, 100% { transform: translateY(0) rotate(12deg) scale(1.1); }
    50% { transform: translateY(-10px) rotate(15deg) scale(1.15); }
}

@keyframes chips-gift-hover {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-15px); }
}

.animate-chips-bounce {
    animation: chips-bounce 2s ease-in-out infinite;
}

.animate-chips-hover {
    animation: chips-gift-hover 4s ease-in-out infinite;
}

#modal-chipbarcel {
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 1s ease;
    will-change: opacity, transform;
}

#modal-chipbarcel #chipbarcel-content {
    transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

#modal-chipbarcel.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
}

#modal-chipbarcel.show #chipbarcel-content {
    transform: scale(1) !important;
}