/* ================= Variables del tema (idénticas al diseño objetivo) ================= */
:root{
  --bg: #f7f7fb;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --accent: #fbbf24;
  --accent-2: #fbbf24;
  --shadow: 0 12px 30px rgba(11,15,30,0.06);
  --header-height: 72px;
  --max-width: 1400px;
  --gap: 1.25rem;
  --radius: 14px;

  /* Hero */
  --hero-radius: 12px;
  --hero-shadow: 0 12px 32px rgba(0,0,0,0.06);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.12));

  /* Menú móvil */
  --menu-bg: #ffffff;
  --text: #111;
  --glass: rgba(255,255,255,0.6);
  --radius-menu: 16px;
  --shadow-menu: 0 18px 50px rgba(12,18,26,0.12);
}.language-buttons {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}
.language-switch select {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switch select:hover {
  background: linear-gradient(135deg, #dcdcdc, #c0c0c0);
  border-color: #888;
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #66BB6A, #388E3C);
}

.lang-btn.active {
  background: linear-gradient(135deg, #2196F3, #1565C0);
}


/* ================= Reset y base ================= */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;background:var(--bg);color:#111;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
body{font-weight:300;letter-spacing:.3px;transition:background .5s ease,color .5s ease}
body.modo-claro{background-color:#ffffff;color:#000;transition:background-color .5s ease,color .5s ease}

/* Utilitarias */
.disabled{display:none !important}

/* ================= Contenedor principal del carrito ================= */
.carrito-contenedor{
  max-width: 90rem;
  margin: 3rem auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

/* ================= Hero del carrito ================= */
.carrito-hero{
  width:100%;
  height:280px;
  position:relative;
  display:flex;align-items:center;justify-content:center;
  padding:2rem;margin-bottom:2rem;
  color:#fff;text-align:center;
  border-radius: var(--hero-radius);
  box-shadow: var(--hero-shadow);
  background-color:#111;
  background-image:url('https://i.pinimg.com/originals/99/1f/9e/991f9e7a79a5fc945310b8c54f0fb9d2.gif');
  background-size:cover;background-position:center;
}
.carrito-hero::after{content:"";position:absolute;inset:0;background:var(--hero-overlay);pointer-events:none}
.carrito-hero__contenido{
  position:relative;z-index:2;
  background: rgba(0,0,0,0.45);
  padding:2rem 3rem;border-radius:12px;max-width:600px;
}
.carrito-hero__contenido h2{font-size:2.2rem;font-weight:600;margin-bottom:1rem;text-shadow:0 6px 18px rgba(11,15,30,0.25)}
.carrito-hero__contenido p{font-size:1.1rem;line-height:1.6;opacity:.95}

/* ================= Header del carrito ================= */
.carrito-header{
  background: rgba(255,255,255,0.95);
  padding:1.5rem 2rem;
  display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid #ddd;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(11,15,30,0.04);
  position:relative;z-index:60;
}
.carrito-header__logo{font-size:1.8rem;font-weight:bold;letter-spacing:1px}
.carrito-header__nav a{
  margin-left:1.5rem;text-decoration:none;color:#606060;font-weight:500;transition:all .18s ease;
}
.carrito-header__nav a:hover,.carrito-header__nav a.active{
  color:#111;background:rgba(124,58,237,0.06);padding:6px 8px;border-radius:8px;transform:translateY(-2px);
}

/* ================= Main layout ================= */
.carrito-main{
  width:100%;
  padding:3rem 2rem;
  background:var(--card-bg);
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:3rem;flex-wrap:wrap;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11,15,30,0.04);
}
.carrito-titulo{font-size:2.4rem;font-weight:500;margin-bottom:1rem;text-align:center}
.carrito-vacio,.carrito-comprado{ text-align:center;font-size:1.2rem;color:#999;margin-top:2rem }

/* ================= Lista de productos ================= */
.carrito-productos{
  flex:1 1 60%;
  display:flex;flex-direction:column;gap:2rem;margin-top:2rem;
}
.carrito-producto{
  display:grid;grid-template-columns:120px 1fr 100px;align-items:center;
  background:var(--card-bg);
  border:1px solid rgba(11,15,30,0.08);
  border-radius:12px;
  padding:1.5rem;
  box-shadow:0 8px 24px rgba(11,15,30,0.06);
  transition:transform .18s ease,box-shadow .18s ease;
}
.carrito-producto:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(11,15,30,0.10)}
.carrito-producto img{width:100px;height:100px;object-fit:cover;border-radius:8px;background:#f3f3f3}
.carrito-producto .info{display:flex;flex-direction:column;gap:.4rem}
.carrito-producto h3{font-size:1.1rem;font-weight:600;color:#222;margin:0}
.carrito-producto .subtitulo{font-size:.9rem;color:#666}
.carrito-producto .precio{font-size:1rem;font-weight:800;color:#111}
.carrito-producto .descuento{font-size:.9rem;color:#d33;font-weight:600}
.carrito-producto .acciones{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}
.carrito-producto .acciones input[type="number"]{width:60px;padding:.4rem;border:1px solid #e0e0e0;border-radius:6px;text-align:center}
.carrito-producto .acciones button{background:none;border:none;color:#999;font-size:1rem;cursor:pointer;transition:color .18s ease,transform .1s ease}
.carrito-producto .acciones button:hover{color:#111;transform:scale(1.03)}

/* ================= Sidebar / acciones ================= */
.carrito-acciones{
  flex:0 0 320px;
  background:var(--card-bg);
  border:1px solid rgba(11,15,30,0.08);
  border-radius:12px;
  padding:2rem;
  box-shadow:0 8px 24px rgba(11,15,30,0.06);
  display:flex;flex-direction:column;gap:1.5rem;
  position:sticky;top:100px;height:fit-content;
}
.carrito-acciones h4{font-size:1.2rem;font-weight:700;margin-bottom:1rem}
.carrito-total p{font-size:1rem;color:#555;margin-bottom:.3rem}
#total{font-size:1.6rem;font-weight:800;color:#111}
.carrito-botones{display:flex;flex-direction:column;gap:1rem}
.btn-vaciar,.btn-comprar{
  padding:.8rem 1.2rem;border:none;border-radius:10px;font-size:1rem;cursor:pointer;transition:background .2s ease,transform .1s ease,box-shadow .12s ease;
}
.btn-vaciar{background:#eee;color:#333}
.btn-comprar{background:#111;color:#fff}
.btn-comprar:hover{background:#000;transform:translateY(-1px);box-shadow:0 6px 14px rgba(11,15,30,.18)}

/* ================= Footer ================= */
.carrito-footer{background:#111;color:#ccc;padding:2rem;text-align:center;font-size:.9rem}

/* ================= Menú hamburguesa (todas tus variantes) ================= */
.hamburger{
  display:none;width:48px;height:44px;border-radius:12px;
  background:linear-gradient(180deg,rgba(0,0,0,0.02),transparent);
  border:1px solid rgba(0,0,0,0.04);
  cursor:pointer;align-items:center;justify-content:center;padding:6px;gap:6px;
  transition:transform .12s ease,background .18s ease,box-shadow .18s;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  z-index:1005;
}
.hamburger:active{transform:scale(.98);box-shadow:0 8px 22px rgba(0,0,0,0.06)}
.hamburger span{
  display:block;width:26px;height:3px;margin:3px 0;border-radius:3px;background:var(--muted);
  transition:transform .28s cubic-bezier(.2,.9,.2,1),opacity .18s ease,background .18s ease;
  transform-origin:center;
}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg);background:var(--accent)}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0;transform:scaleX(.6)}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg);background:var(--accent)}

/* ================= Backdrop móvil ================= */
.mobile-backdrop{
  position:fixed;inset:0;background:rgba(6,10,15,0.36);
  backdrop-filter:blur(4px);
  opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:980;
}
.mobile-backdrop.visible{opacity:1;pointer-events:auto}

/* ================= Panel móvil (todas tus clases) ================= */
.mobile-menu{
  position:fixed;top:0;right:0;z-index:990;
  width:84%;max-width:380px;height:100vh;
  background:linear-gradient(180deg,var(--menu-bg),var(--glass));
  border-radius:var(--radius-menu) 0 0 var(--radius-menu);
  box-shadow:var(--shadow-menu);
  padding:72px 20px 24px;
  transform:translateX(110%) scale(.98);
  opacity:0;transition:transform .36s cubic-bezier(.2,.9,.2,1),opacity .36s;
  display:flex;flex-direction:column;gap:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.mobile-menu.active{transform:translateX(0) scale(1);opacity:1}
.mobile-menu__close{
  position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:10px;border:none;background:rgba(0,0,0,0.04);cursor:pointer;font-size:20px;
}
.mobile-menu__close:hover{background:rgba(0,0,0,0.06);transform:translateY(-1px)}

.mobile-menu__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.35rem}
.mobile-menu__item{
  display:flex;align-items:center;justify-content:space-between;padding:.9rem 12px;border-radius:12px;cursor:pointer;
  transition:background .14s,transform .12s;
}
.mobile-menu__item-inner{display:flex;align-items:center;gap:.75rem}
.mobile-menu__item-icon{
  width:36px;height:36px;border-radius:8px;background:rgba(0,0,0,0.04);
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:16px;
}
.mobile-menu__item-label{font-weight:700;color:var(--text)}
.mobile-menu__item-sub{font-size:.88rem;color:var(--muted)}
.mobile-menu__item:hover,.mobile-menu__item:focus{background:rgba(0,0,0,0.03);transform:translateX(-4px);outline:none}
.mobile-menu__item:focus{box-shadow:0 6px 18px rgba(0,0,0,0.06)}
.mobile-menu.active .mobile-menu__item{opacity:0;transform:translateX(8px);transition:transform .36s,opacity .36s}
.mobile-menu.active .mobile-menu__item:nth-child(1){transition-delay:.04s;opacity:1;transform:none}
mobile-menu.active .mobile-menu__item:nth-child(2){transition-delay:.06s;opacity:1;transform:none}
mobile-menu.active .mobile-menu__item:nth-child(3){transition-delay:.08s;opacity:1;transform:none}
mobile-menu.active .mobile-menu__item:nth-child(4){transition-delay:.10s;opacity:1;transform:none}

.mobile-menu__cta{margin-top:.5rem;display:flex;gap:.6rem}
.mobile-menu__cta .btn{flex:1;padding:.7rem .9rem;border-radius:10px;border:none;font-weight:700;cursor:pointer}
.mobile-menu__cta .btn-primary{background:var(--accent);color:#111}
.mobile-menu__cta .btn-ghost{background:transparent;border:1px solid rgba(0,0,0,0.06);color:var(--text)}

/* ================= Barra de búsqueda (manteniendo tu clase) ================= */
.barra-busqueda{position:relative;width:100%;max-width:520px;margin:8px 0 18px}
.barra-busqueda input{
  width:100%;padding:12px 110px 12px 16px;border-radius:999px;
  border:1px solid #e6e6e6;outline:none;box-shadow:0 4px 12px rgba(11,15,30,0.03);background:#fff;
}
.barra-busqueda button{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  padding:10px 14px;border-radius:999px;border:none;background:#111;color:#fff;cursor:pointer;
}

/* ================= Responsive ================= */
@media (max-width: 768px){
  .hamburger{display:flex}
  .carrito-header__nav{display:none !important}

  .carrito-main{
    padding: .6rem; gap:1rem; margin:.6rem auto;
    background:transparent; box-shadow:none;
  }
  .carrito-productos{flex:1 1 100%;display:block;margin-top:1rem;gap:1rem}
  .carrito-producto{
    grid-template-columns:1fr; grid-template-rows:auto auto;
    gap:.75rem; padding:1rem; align-items:start;
    box-shadow:0 8px 20px rgba(0,0,0,0.04); border-radius:10px;
  }
  .carrito-producto img{width:100%;height:160px;object-fit:cover;border-radius:10px}
  .carrito-producto .acciones{align-items:flex-start;width:100%}

  .carrito-acciones{position:static;top:auto;width:100%;flex:1 1 100%;margin-top:1rem;padding:1rem}
  .btn-vaciar,.btn-comprar{padding:.9rem 1rem;font-size:1rem}

  .carrito-hero{height:200px;padding:1.25rem}
  .carrito-hero__contenido{padding:1rem 1.25rem;max-width:92%}
  .carrito-titulo{font-size:1.6rem}
  .carrito-producto h3{font-size:1rem}
  .carrito-hero__contenido h2{font-size:1.6rem}

  .carrito-footer{padding:1.25rem;font-size:.9rem}
  .barra-busqueda{margin:12px 0;max-width:100%}
  .barra-busqueda input{padding-right:96px}
}

@media (max-width: 520px){
  .mobile-menu{width:92%;padding-top:64px}
  .mobile-menu__item{padding:1rem 14px;border-radius:14px}
  .mobile-menu__item-icon{width:40px;height:40px;font-size:18px}
}

/* Wide layout tweaks */
@media (min-width: 992px){
  .carrito-main{border-radius: var(--radius)}
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce){
  .hamburger span,.mobile-menu,.mobile-menu__item,.carrito-producto{transition:none !important;transform:none !important}
}

/* Asegurar stacking y visibilidad en móvil según tu versión original */
@media (max-width: 768px){
  .carrito-header{position:relative;z-index:60}
}

/* Botón tema (si existe) */
.btn-tema{max-width:40px;border-radius:50px}
