body { font-family: Arial; margin:0; overflow-x: hidden; }
.card, .card-metric{
  background:var(--color-card);
}

.menu {
position:fixed; left:-220px; top:0;
width:200px; height:100%;
background:#222; padding:20px;
transition:.3s;
}
.menu a { color:#fff; display:block; margin:15px 0; }
.menu.active { left:0; }
.hero { padding:80px; text-align:center; background:#f5e9ff; }
.productos .grid { display:grid; grid-template-columns:repeat(auto-fit,200px); gap:20px; justify-content:center; }
.card { border:1px solid #ddd; padding:10px; text-align:center; }

.menu-btn{
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg,#f48fb1,#ce93d8);
  box-shadow: 0 12px 30px rgba(232,62,140,.45);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.menu-btn.open{
  transform: rotate(90deg) scale(1.05);
}

.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 12px 0 35px rgba(232,62,140,.35);
  padding: 22px;
  z-index: 1200;

  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.sidebar.open{
  transform: translateX(0);
}

/* sidebar visible */
.sidebar.active{
  left: 0;
}

#mainContent{
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}

/* SOLO desktop empuja */
@media (min-width: 992px){
  #mainContent.shift{
    transform: translateX(260px);
  }
}

.sidebar .logo{
font-size:22px; font-weight:bold;
margin-bottom:30px; color:#e91e63;
}

.sidebar a{
display: block;
padding: 10px;
color: #333;
text-decoration: none;
border-radius: 6px;
opacity: 0;
transform: translateX(-20px) scale(.95);
transition:
opacity .4s ease,
transform .5s cubic-bezier(.22,1,.36,1);
}


.sidebar a:hover{
  background: #f8d7e8;
}

.sidebar.open a{
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* delay automático */
.sidebar.open a:nth-child(1){ transition-delay:.05s }
.sidebar.open a:nth-child(2){ transition-delay:.1s }
.sidebar.open a:nth-child(3){ transition-delay:.15s }
.sidebar.open a:nth-child(4){ transition-delay:.2s }
.sidebar.open a:nth-child(5){ transition-delay:.25s }
.sidebar.open a:nth-child(6){ transition-delay:.3s }



/* 📱 AJUSTE SOLO EN MÓVIL */
@media (max-width: 768px){

  .sidebar{
    width: 80vw;        /* 👈 ancho real en móvil */
    max-width: 300px;   /* límite elegante */
  }

  #mainContent.shift{
    transform: translateX(0); /* en móvil NO empuja */
  }
}


@keyframes pulse{
0%{box-shadow:0 0 0 rgba(233,30,99,.7)}
70%{box-shadow:0 0 25px rgba(233,30,99,.7)}
100%{box-shadow:0 0 0 rgba(233,30,99,.7)}
}

.heart-btn {
  position: fixed;
  left: 20px;
  bottom: 50%;
  width: 55px;
  height: 55px;
  background: #ff69b4;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255,105,180,.8);
  z-index: 9999;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}


.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: .35s ease;
  z-index: 1100;
}

.menu-overlay.show{
  opacity: 1;
  pointer-events: auto;
}

.ios-dock{
  position: fixed;
  bottom: env(safe-area-inset-bottom, 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: flex;
  gap: 16px;
  padding: 14px 20px;

  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(214,51,132,.25);

  /* 🔥 evita rebotes iOS */
  will-change: transform;
  contain: layout paint;
  touch-action: manipulation;
}

.ios-dock button{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;

  background: transparent;
  font-size: 22px;

  transition: 
    transform .25s cubic-bezier(.34,1.56,.64,1),
    background .25s;
}

.ios-dock button:active{
  transform: scale(.85);
}


.ios-dock button:active{
  transform: scale(.85);
}

/* ocultar en desktop */
@media(min-width:992px){
  .ios-dock{
    display: none;
  }
}

.ios-dock button.active{
  background: linear-gradient(135deg,#f48fb1,#ce93d8);
  color: #fff;
  transform: translateY(-6px) scale(1.15);
}

.logo-ios{
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;

  border: 3px solid rgba(233,30,99,.6);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.9),
    0 12px 25px rgba(233,30,99,.35);

  background: white;
}

/* un xtra para mi menu */
@supports (padding: env(safe-area-inset-bottom)){
  .ios-dock{
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ✨ BRILLO QUE SIGUE EL MOUSE */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255,105,180,.8), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.8) translate(-50%, -50%); }
  to   { transform: scale(1.1) translate(-50%, -50%); }
}

/* estilos header fijo */

/* ===== CABECERA ===== */
.top-header{
  position: sticky;
  top: 0;
  z-index: 900;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  padding: 14px 18px;
  margin-bottom: 18px;

  background: rgba(255, 240, 248, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(233,30,99,.12);

  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* cuando el menú empuja */
#mainContent.shift .top-header{
  transform: translateX(260px);
}

/* ===== USUARIO ===== */
.user-name{
  margin: 0;
  font-weight: 600;
  color: #c2185b;
  white-space: nowrap;
}

/* ===== RELOJ ===== */
.reloj-minimal{
  text-align: center;
  line-height: 1.1;
}

#relojHora{
  font-size: 1.25rem;
  font-weight: 700;
  color: #ad1457;
  display: block;
}

#relojFecha{
  font-size: .75rem;
  color: #a64d79;
}

/* ===== BOTÓN DARK ===== */
.theme-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(233,30,99,.15);
  color: #e91e63;
  font-size: 1.2rem;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform .2s ease, background .25s;
}

.theme-btn:hover{
  background: rgba(233,30,99,.25);
}

.theme-btn:active{
  transform: scale(.9);
}

/* 📱 MÓVIL */
@media(max-width:768px){
  .top-header{
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .header-center{
    grid-column: 1 / -1;
    order: 3;
  }
}
