/* ============================================
   ZIZI! — estilos compartidos (todas las páginas)
   ============================================ */

:root {
  --win-gray: #ECE6D8;
  --win-dark: #ACA899;
  --win-darker: #716F64;
  --win-light: #F5F2E9;
  --win-white: #ffffff;
  --win-titlebar: #032FF6;
  --zizi-red: #C40000;
  --zizi-blue: #032FF6;
  --zizi-yellow: #FCFC04;
  --zizi-black: #1B120B;
  --border-raised: inset -1px -1px #ACA899, inset 1px 1px #ffffff;
  --border-sunken: inset -1px -1px #ffffff, inset 1px 1px #ACA899;
  --font-chrome: 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
  --font-pixel: 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
  --font-display: Impact, 'Arial Narrow Bold', 'Haettenschweiler', sans-serif;
  --font-body: 'Lato', sans-serif;
  --zizi-taskbar-h: calc(38px + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #4a90e2;
  background-image: url('images/fondo-xp.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  font-family: var(--font-chrome);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20'%3E%3Cpolygon points='0,0 0,16 4,12 8,20 10,19 6,11 11,11' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E"), default;
}

/* DESKTOP — centra la ventana principal de cada página */
.desktop {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 70px;
}

.star-deco {
  position: absolute;
  color: var(--zizi-red);
  font-size: 22px;
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 1px 1px 0 #000;
}
@keyframes twinkle { 0%,100% { opacity:0.3; transform:scale(0.85);} 50% { opacity:1; transform:scale(1.1);} }

/* DESKTOP ICONS — iguales en todas las páginas */
.desktop-icons { position: fixed; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 18px; z-index: 10; }

.desktop-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; width: 76px; text-align: center; text-decoration: none; }
.desktop-icon:hover .icon-img { filter: brightness(0.75) sepia(1) hue-rotate(180deg); }
.desktop-icon:hover .icon-label { background: var(--win-titlebar); color: white; }
.desktop-icon.current .icon-label { background: var(--zizi-red); color: white; }

.icon-img { width: 34px; height: 34px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.45); }
.icon-label { font-family: var(--font-chrome); font-size: 12px; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); padding: 1px 4px; line-height: 1.3; }

/* WINDOW */
.window-main { position: relative; background: var(--win-gray); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
.window-main.dragging { opacity: 0.94; }

.titlebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #6f93ff 0%, var(--zizi-blue) 48%, #021c8f 100%);
  color: white; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; cursor: move; user-select: none;
  border-bottom: 1px solid rgba(0,0,0,0.35);
}
.titlebar.red {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #ff8a6a 0%, var(--zizi-red) 48%, #6e0000 100%);
}
.titlebar-icon { font-size: 14px; }
.titlebar-title { flex: 1; font-family: var(--font-chrome); font-weight: 700; font-size: 13px; letter-spacing: 0.2px; text-shadow: 1px 1px 1px rgba(0,0,0,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-btn { width: 21px; height: 19px; border-radius: 4px; background: linear-gradient(180deg, #ffffff, #d6d3c8); border: 1px solid rgba(0,0,0,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); font-family: var(--font-chrome); font-size: 12px; line-height: 1; color: #333; cursor: pointer; }
.win-btn:active { background: linear-gradient(180deg, #c9c6bb, #e8e5da); }
.win-btn.win-close { background: linear-gradient(180deg, #ff8a7a, #C40000); border-color: rgba(0,0,0,0.4); color: white; }
.win-btn.win-close:active { background: linear-gradient(180deg, #a80000, #ff8a7a); }

.menubar { display: flex; gap: 14px; padding: 4px 10px; background: var(--win-gray); border-bottom: 1px solid var(--win-dark); }
.menubar-item { font-family: var(--font-chrome); font-size: 13px; cursor: pointer; color: var(--zizi-black); border-radius: 3px; padding: 1px 3px; }
.menubar-item:hover { background: var(--win-titlebar); color: white; }

.window-content { background: var(--win-white); padding: 10px; font-family: var(--font-body); color: var(--zizi-black); }
.separator { height: 2px; background: var(--win-dark); box-shadow: 0 1px 0 var(--win-white); margin: 6px 0; }

.back-link { display: inline-block; font-family: var(--font-body); font-size: 12px; color: var(--zizi-blue); text-decoration: none; padding: 8px 10px 0; }
.back-link:hover { text-decoration: underline; }

/* PROFILE (instagram / inicio) */
.profile-area { background: white; padding: 14px 12px; }
.profile-header { display: flex; gap: 14px; align-items: flex-start; }
.profile-pic { width: 72px; height: 72px; border-radius: 50%; background: var(--zizi-red); box-shadow: var(--border-raised); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-logo { font-family: var(--font-display); color: white; font-size: 15px; text-align: center; line-height: 1.1; }
.profile-stats { display: flex; gap: 18px; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-display); font-size: 18px; color: var(--zizi-black); }
.stat-label { font-family: var(--font-body); font-size: 11px; color: #555; }
.profile-name { font-family: var(--font-display); font-size: 20px; color: var(--zizi-red); margin-bottom: 2px; }
.profile-bio { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--zizi-black); }
.profile-bio .red { color: var(--zizi-red); font-weight: 700; }
.follow-row { display: flex; gap: 6px; margin-top: 8px; }
.btn-follow { font-family: var(--font-chrome); font-size: 13px; padding: 4px 14px; border-radius: 999px; background: var(--win-gray); box-shadow: var(--border-raised); border: 1px solid var(--win-dark); cursor: pointer; }
.btn-follow:active { box-shadow: var(--border-sunken); }
.red-btn { background: linear-gradient(180deg, #ff8a6a, var(--zizi-red)); color: white; border-color: #6e0000; }
.btn-small { font-family: var(--font-chrome); font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--win-gray); box-shadow: var(--border-raised); border: 1px solid var(--win-dark); cursor: pointer; }
.grid-tabs { display: flex; border-top: 1px solid var(--win-dark); }
.grid-tab { flex: 1; text-align: center; padding: 6px; font-family: var(--font-chrome); font-size: 14px; cursor: pointer; color: #777; }
.grid-tab.active { color: var(--zizi-black); border-top: 2px solid var(--zizi-red); margin-top: -1px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: white; }
.post-thumb { aspect-ratio: 1; background: #eee; display: flex; align-items: center; justify-content: center; padding: 6px; overflow: hidden; }
.post-thumb-text { font-family: var(--font-display); font-size: 13px; color: white; text-align: center; line-height: 1.15; }
.red-post { background: var(--zizi-red); }
.yellow-post { background: var(--zizi-yellow); }
.yellow-post .post-thumb-text { color: var(--zizi-black); }
.blue-post { background: var(--zizi-blue); }

.ig-feed-wrap { background: white; padding: 4px; min-height: 140px; }

/* SHOP / TIENDA */
.product-row { display: flex; gap: 10px; align-items: center; padding: 8px; text-decoration: none; color: inherit; }
.product-row:hover { background: #f3f3f3; }
.product-img { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-pixel); font-size: 9px; text-align: center; line-height: 1.3; box-shadow: var(--border-sunken); }
.product-info { flex: 1; }
.product-name { font-family: var(--font-display); font-size: 16px; color: var(--zizi-black); }
.product-desc { font-family: var(--font-body); font-size: 12px; font-style: italic; color: #666; }
.product-price { font-family: var(--font-display); font-size: 18px; color: var(--zizi-red); white-space: nowrap; }

.size-row { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 10px; align-items: center; }
.size-btn { padding: 4px 10px; font-family: var(--font-chrome); font-size: 13px; background: linear-gradient(180deg, #ffffff, #e2ded0); border: 1px solid var(--win-dark); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); cursor: pointer; }
.size-btn.selected { background: linear-gradient(180deg, #ff8a6a, var(--zizi-red)); color: white; border-color: #6e0000; }
.size-btn:active { background: linear-gradient(180deg, #e2ded0, #ffffff); }

/* PRODUCTO INDIVIDUAL */
.product-detail { display: flex; gap: 24px; padding: 16px 20px 8px; background: white; }
.product-detail-img { width: 340px; height: 340px; flex-shrink: 0; background: var(--zizi-red); box-shadow: var(--border-sunken); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-pixel); font-size: 13px; text-align: center; line-height: 1.6; }
.product-detail-photo-wrap {
  width: 340px; height: 340px; flex-shrink: 0; overflow: hidden; border-radius: 4px;
  box-shadow: var(--border-sunken); cursor: zoom-in; position: relative;
}
.product-detail-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.12s ease-out; transform: scale(1);
}
.product-detail-photo-wrap:hover .product-detail-photo { transform: scale(2.2); }
.product-detail-info { flex: 1; }
.product-detail-name { font-family: var(--font-display); font-size: 30px; color: var(--zizi-black); line-height: 1.1; }
.product-detail-price { font-family: var(--font-display); font-size: 24px; color: var(--zizi-red); margin: 2px 0 8px; }
.product-detail-desc { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--zizi-black); margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.qty-btn { width: 26px; height: 26px; border-radius: 4px; font-family: var(--font-chrome); font-size: 16px; background: linear-gradient(180deg, #ffffff, #e2ded0); border: 1px solid var(--win-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); cursor: pointer; }
.qty-btn:active { background: linear-gradient(180deg, #e2ded0, #ffffff); }
.qty-value { font-family: var(--font-display); font-size: 16px; min-width: 24px; text-align: center; }
.add-cart-btn { font-family: var(--font-chrome); font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 5px; background: linear-gradient(180deg, #ff8a6a, var(--zizi-red) 55%, #7a0000); color: white; border: 1px solid #5c0000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); cursor: pointer; }
.add-cart-btn:active { background: linear-gradient(180deg, #7a0000, #ff8a6a); }
.producto-add-status {
  display: none; margin-top: 8px; padding: 6px 8px; border-radius: 4px;
  background: #f3f3f3; font-family: var(--font-body); font-size: 12px; font-weight: 700;
}

/* EXPLORADOR DE DISEÑOS (tienda) */
.explorer-wrap { display: flex; flex: 1; min-height: 0; }
.explorer-sidebar { width: 170px; flex-shrink: 0; background: var(--win-white); border-right: 1px solid var(--win-dark); padding: 8px 0; height: 100%; overflow-y: auto; }
.folder-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; margin: 0 4px; border-radius: 4px; font-family: var(--font-body); font-size: 12px; color: var(--zizi-black); cursor: pointer; white-space: nowrap; }
.folder-item:hover { background: #eee; }
.folder-item.active { background: linear-gradient(180deg, #6f93ff, var(--zizi-blue)); color: white; }
.folder-icon { font-size: 13px; flex-shrink: 0; }
.explorer-main { flex: 1; background: var(--win-white); padding: 12px; height: 100%; overflow-y: auto; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.design-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-decoration: none; }
.design-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--border-sunken); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.design-cell:hover .design-thumb { transform: scale(1.08); box-shadow: 0 0 0 2px var(--zizi-red), var(--border-sunken); }
.design-label { font-family: var(--font-body); font-size: 11px; color: var(--zizi-black); text-align: center; padding: 1px 3px; line-height: 1.2; transition: background 0.12s, color 0.12s; }
.design-cell:hover .design-label { background: var(--zizi-red); color: white; }
.explorer-statusbar { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; font-family: var(--font-body); font-size: 11px; color: #666; border-top: 1px solid var(--win-dark); background: var(--win-gray); flex-wrap: wrap; }

@media (max-width: 560px) {
  .explorer-wrap { flex-direction: column; }
  .explorer-sidebar { width: 100%; height: auto; display: flex; gap: 2px; overflow-x: auto; padding: 6px; border-right: none; border-bottom: 1px solid var(--win-dark); }
  .folder-item { flex-shrink: 0; }
}

/* GALERÍA (galeria.exe) — balloon estilo "nuevo hardware" + path bar + lightbox */
.usb-balloon {
  position: fixed; top: 18px; right: 18px; width: 230px; z-index: 1200;
  background: linear-gradient(180deg, #FFFDE0 0%, #FFF7B0 100%);
  border: 1px solid #b8a400; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  padding: 8px 10px; font-family: var(--font-chrome);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.usb-balloon.show { opacity: 1; transform: translateY(0); pointer-events: auto; cursor: pointer; }
.usb-balloon-title { font-size: 12px; font-weight: 700; color: var(--zizi-black); margin-bottom: 3px; }
.usb-balloon-body { font-size: 11px; color: #555; line-height: 1.4; }

.explorer-path-bar {
  padding: 5px 10px; font-family: var(--font-body); font-size: 11px; color: #555;
  background: var(--win-light); border-bottom: 1px solid var(--win-dark);
}

.galeria-lightbox {
  display: none; position: fixed; inset: 0; z-index: 1300;
  background: rgba(10, 8, 6, 0.92);
  align-items: center; justify-content: center;
}
.galeria-lightbox.open { display: flex; }
.galeria-lb-img { max-width: 88vw; max-height: 80vh; box-shadow: 0 10px 30px rgba(0,0,0,0.6); border: 3px solid white; }
.galeria-lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%; cursor: pointer; font-family: var(--font-chrome); display: flex; align-items: center; justify-content: center;
}
.galeria-lb-btn:hover { background: rgba(255,255,255,0.25); }
.galeria-lb-close { top: 18px; right: 18px; width: 34px; height: 34px; font-size: 16px; }
.galeria-lb-prev, .galeria-lb-next { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.galeria-lb-prev { left: 14px; }
.galeria-lb-next { right: 14px; }
.galeria-lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: white; font-family: var(--font-chrome); font-size: 12px;
  background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 560px) {
  .galeria-lb-prev, .galeria-lb-next { width: 38px; height: 38px; font-size: 20px; }
  .usb-balloon { width: 190px; right: 10px; top: 12px; }
}

/* ANUNCIO MOLESTO ★ (tienda.exe) — popup tipo gif ochentero, solo primera visita */
.zizi-ad-popup {
  display: none; position: fixed; inset: 0; z-index: 1400;
  background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center;
}
.zizi-ad-popup.show { display: flex; }
.zizi-ad-window {
  width: 260px; background: white; border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: ad-wiggle 0.5s ease-in-out infinite alternate;
}
@keyframes ad-wiggle { from { transform: rotate(-2deg); } to { transform: rotate(1.5deg); } }
.zizi-ad-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  background: repeating-linear-gradient(90deg, #C40000, #C40000 10px, #FCFC04 10px, #FCFC04 20px);
  color: white; font-family: var(--font-chrome); font-weight: 700; font-size: 11px;
  padding: 4px 6px; text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}
.zizi-ad-x {
  width: 18px; height: 18px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.4);
  background: white; color: #333; font-size: 10px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.zizi-ad-flash { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: black; }
.zizi-ad-flash img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zizi-ad-actions { padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #f3f3f3; }
.zizi-ad-cta {
  font-family: var(--font-chrome); font-weight: 700; font-size: 12px; padding: 9px;
  background: linear-gradient(180deg, #FFF37A, var(--zizi-yellow) 55%, #c9c400);
  border: 1px solid #8a8400; border-radius: 5px; cursor: pointer; color: var(--zizi-black);
  animation: ad-pulse 0.8s ease-in-out infinite;
}
@keyframes ad-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.zizi-ad-nope { background: none; border: none; color: #999; font-size: 9px; text-decoration: underline; cursor: pointer; font-family: var(--font-body); padding: 2px; }
@media (max-width: 560px) {
  .zizi-ad-window { width: 220px; }
}

/* PROMO de pack dentro de la descripción del producto */
.producto-promo {
  display: block; margin-top: 4px; padding: 6px 8px;
  background: #FFF7CC; border: 1px dashed var(--zizi-red); border-radius: 4px;
  font-family: var(--font-body); font-weight: 700; font-size: 11px; line-height: 1.4;
  color: var(--zizi-red);
}

/* FOTOS SECUNDARIAS (producto.html) — modelo usando el diseño */
.producto-sec-wrap { background: white; padding: 0 20px 16px; }
.producto-sec-label { font-family: var(--font-body); font-size: 12px; color: #666; margin-bottom: 8px; }
.producto-sec-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.producto-sec-thumb {
  width: 120px; height: 120px; object-fit: cover; border-radius: 4px; cursor: pointer;
  box-shadow: var(--border-sunken); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.producto-sec-thumb:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--zizi-red), var(--border-sunken); }

/* CARRITO */
.cart-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-family: var(--font-body); font-size: 13px; border-bottom: 1px solid var(--win-gray); background: white; margin: 0 8px 2px; }
.cart-row .price { font-family: var(--font-display); color: var(--zizi-red); }
.cart-remove-btn { width: 18px; height: 18px; border-radius: 50%; background: var(--win-gray); border: 1px solid var(--win-dark); color: var(--zizi-red); font-size: 10px; line-height: 1; cursor: pointer; }
.cart-remove-btn:hover { background: var(--zizi-red); color: white; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-family: var(--font-display); font-size: 18px; background: var(--win-gray); margin: 6px 8px; box-shadow: var(--border-sunken); color: var(--zizi-black); }
.cart-total-row .price { color: var(--zizi-red); }
.progress-row { padding: 4px 12px 8px; }
.progress-label { font-family: var(--font-body); font-size: 11px; color: #555; margin-bottom: 3px; }
.progress-track { height: 10px; background: white; box-shadow: var(--border-sunken); overflow: hidden; }
.progress-fill { height: 100%; background: var(--zizi-yellow); width: 68%; }
.checkout-btn { display: block; margin: 10px 8px 8px; padding: 9px; border-radius: 5px; font-family: var(--font-chrome); font-weight: 700; font-size: 13px; background: linear-gradient(180deg, #ff8a6a, var(--zizi-red) 55%, #7a0000); color: white; border: 1px solid #5c0000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); cursor: pointer; width: calc(100% - 16px); text-align: center; letter-spacing: 0.3px; }
.checkout-btn:active { background: linear-gradient(180deg, #7a0000, #ff8a6a); }
.cart-status {
  display: none; margin: 0 8px 8px; padding: 6px 8px; border-radius: 4px;
  background: #FFF7CC; border: 1px dashed var(--zizi-red);
  font-family: var(--font-body); font-size: 11px; color: var(--zizi-red); text-align: center;
}
.cart-clear-btn {
  display: block; margin: 0 8px 8px; padding: 6px; border-radius: 5px;
  font-family: var(--font-body); font-size: 11px; color: #999; text-decoration: underline;
  background: none; border: none; cursor: pointer; width: 100%; text-align: center;
}
.cart-clear-btn:hover { color: var(--zizi-red); }
.cart-clear-btn:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }

/* SOBRE ZIZI (notepad) */
.notepad-area { background: white; padding: 16px; font-family: var(--font-body); font-size: 13px; line-height: 1.65; color: var(--zizi-black); max-height: 420px; overflow-y: auto; }
.notepad-area h3 { font-family: var(--font-display); font-size: 18px; color: var(--zizi-red); margin: 12px 0 4px; }
.notepad-area h3:first-child { margin-top: 0; }
.notepad-area p { margin-bottom: 4px; }
.notepad-area .quote { color: var(--zizi-blue); font-weight: 700; font-style: italic; }

/* CONTACTO */
.contact-area { background: white; padding: 14px; }
.contact-area label { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; margin: 8px 0 3px; color: var(--zizi-black); }
.contact-area input, .contact-area textarea { width: 100%; font-family: var(--font-body); font-size: 13px; padding: 7px; border: 1px solid var(--win-dark); border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); background: white; }
.contact-area textarea { resize: vertical; min-height: 60px; }
.send-btn { margin-top: 10px; font-family: var(--font-chrome); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 5px; background: linear-gradient(180deg, #6f93ff, var(--zizi-blue) 55%, #021c8f); color: white; border: 1px solid #021c8f; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); cursor: pointer; }
.send-btn:active { background: linear-gradient(180deg, #021c8f, #6f93ff); }
.bazares-list { padding: 12px 14px; font-family: var(--font-body); font-size: 13px; }
.bazar-item { padding: 6px 0; border-bottom: 1px dashed var(--win-dark); }
.bazar-item:last-child { border-bottom: none; }
.bazar-date { font-family: var(--font-display); color: var(--zizi-red); font-size: 14px; }

/* TASKBAR */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--zizi-taskbar-h);
  background: linear-gradient(180deg, #6f93ff 0%, var(--zizi-blue) 18%, #021c8f 100%);
  border-top: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 6px; padding: 3px 6px; padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
}
.start-btn {
  display: flex; align-items: center; gap: 5px; padding: 5px 14px 5px 10px;
  font-family: var(--font-chrome); font-weight: 700; font-size: 13px; letter-spacing: 0.3px;
  background: linear-gradient(180deg, #8de06a 0%, #3f9a2e 55%, #2c7a1e 100%);
  border-radius: 0 999px 999px 0; border: 1px solid rgba(0,0,0,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  color: white; text-shadow: 1px 1px 1px rgba(0,0,0,0.4); cursor: pointer;
}
.start-btn:active { background: linear-gradient(180deg, #2c7a1e 0%, #3f9a2e 100%); }
.taskbar-sep { width: 1px; height: 26px; background: rgba(255,255,255,0.35); box-shadow: 1px 0 0 rgba(0,0,0,0.3); margin: 0 4px; }
.taskbar-items { flex: 1; display: flex; gap: 4px; overflow-x: auto; }
.taskbar-item {
  font-family: var(--font-chrome); font-size: 12px; padding: 5px 12px;
  background: linear-gradient(180deg, #6f93ff, #3a5fd6); border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.25); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  cursor: pointer; white-space: nowrap; text-decoration: none; color: white;
}
.taskbar-item.active { background: linear-gradient(180deg, #021c8f, #3a5fd6); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.taskbar-item.minimized { opacity: 0.75; }
.taskbar-clock { font-family: var(--font-chrome); font-size: 13px; padding: 5px 12px; background: linear-gradient(180deg, #1b3fae, #021c8f); border-radius: 4px; color: white; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }

@media (max-width: 560px) {
  .desktop { padding: 90px 8px 70px; }
  .product-detail { flex-direction: column; }
  .product-detail-photo-wrap, .product-detail-img { width: 100%; height: auto; aspect-ratio: 1/1; }
  .producto-sec-thumb { width: 100px; height: 100px; }
  .window-main { width: calc(100vw - 24px) !important; }
  /* en pantallas chicas solo se ve la ventana activa (la de más al frente), a pantalla
     completa — nada de ventanitas flotando chiquitas ni de arrastrar con el dedo. */
  .floating-window { display: none; }
  .floating-window.mobile-active {
    display: flex !important;
    position: fixed !important;
    left: 0 !important; top: 0 !important;
    width: 100vw !important;
    /* 100vh se confunde con la barra de direcciones del navegador (aparece/desaparece
       y "vh" no se actualiza a tiempo) — eso es lo que tapaba el botón con la taskbar.
       100dvh sí mide el espacio realmente visible en cada momento. Los navegadores que
       no entienden dvh simplemente ignoran esa línea y se quedan con la de arriba. */
    height: calc(100vh - var(--zizi-taskbar-h)) !important;
    height: calc(100dvh - var(--zizi-taskbar-h)) !important;
    border-radius: 0; z-index: 500 !important;
  }
}

/* ============================================
   MULTI-VENTANA — ventanas que conviven en el escritorio
   ============================================ */

/* ventana flotante: clon de otra página abierta anteriormente, vive dentro de un iframe */
.floating-window { display: flex; flex-direction: column; }
.floating-window .titlebar { cursor: move; }
.floating-window iframe { border: none; width: 100%; flex: 1; display: block; background: #fff; }
.floating-window.dragging { opacity: 0.92; }

.taskbar-item.open { position: relative; }
.taskbar-item.open::before { content: '●'; color: var(--zizi-red); margin-right: 4px; font-size: 10px; }

/* MODO EMBED — cada app SIEMPRE vive dentro de un iframe dentro de la ventana flotante que la dibuja index.html */
html.zizi-embed,
html.zizi-embed body {
  height: 100%;
}
html.zizi-embed .desktop-icons,
html.zizi-embed .taskbar,
html.zizi-embed .star-deco,
html.zizi-embed .titlebar {
  display: none !important;
}
html.zizi-embed .desktop {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}
html.zizi-embed .window-main {
  width: 100% !important;
  height: 100% !important;
  box-shadow: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.zizi-embed body { overflow: auto; cursor: default; margin: 0; }
