/*============================================================================================================*/
/*============================================ CONTENIDO GENERAL==============================================*/
/*============================================================================================================*/

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

body.apple-lockdown > *:not(#appleMenu):not(#loadingScreen) {
  display: none !important;
}

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

body {
  background: url('imagenes/background.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Lucida Grande', sans-serif;
  color: white;
  cursor: auto;
  overflow: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 1.2s ease, visibility 0s 0s;
}

body.loaded {
  overflow: auto;
  visibility: visible;
}

#loadingScreen {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
  min-height: 100vh;
  min-width: 100vw;
}

#loadingLogo {
  width: 150px;
  margin-bottom: 70px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#loadingBarContainer {
  width: 60%;
  max-width: 400px;
  height: 8px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

#loadingBar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 1.5s ease;
}

.mac-window.dragging {
  box-shadow: 0 0 120px rgba(0,0,0,0.2);
  cursor: grabbing;
}

.mac-window.dark,
.mac-window-content.dark-detail {
  background-color: #000;
  color: white;
}

.desktop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 20px;
  height: 100vh;
  transition: opacity 0.6s ease;

}

.disk {
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.disk img {
  width: 60px;
}

.radar-disk {
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 13px;
  position: relative;
}

.radar-disk img{
  width: 60px;
}

/*============================================================================================================*/
/*============================================== Contenedor general del Dock =================================*/
/*============================================================================================================*/

.dock-wrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 100;
  pointer-events: none;
}

.dock-background {
  width: 100%;
  height: 70px;
  background: url('imagenes/mesadock.png') no-repeat center;
  background-size: 100% 100%;
  position: absolute;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.dock {
  display: flex;
  gap: 15px;
  padding: 10px 20px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.dock-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon img {
  width: 80px;
  transition: transform 0.3s ease;
}

.dock-icon:hover img {
  transform: scale(1.5);
}

.dock-icon::before {
  content: attr(data-title);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 17px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.dock-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-14px);
}

/*============================================================================================================*/
/*============================================= VENTANA GENERAL ==============================================*/
/*============================================================================================================*/

.mac-window {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  height: 80%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 1px solid #aaa;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease;
}

.mac-window.show {
  opacity: 1;
  transform: scale(1);
  
}

.mac-window-header {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #999;
  position: relative;
  background: url('imagenes/brushedmetal.jpg') repeat-x;
  border-bottom: 1px solid #888;
    box-shadow:
    0 3px 8px rgba(0,0,0,0.4),
    inset 0 0 10px #fff;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 24px;
  width: 100%;
  background-color: #2e2e2e;
  color: white;
  display: flex;
  align-items: center;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
}

.top-bar-right {
  margin-left: auto;
  padding-right: 10px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: white;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
}

.top-bar-left {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.genie-window {
  position: fixed;
  width: 500px;
  background: #bcbcbc;
  border: 4px solid #444;
  font-family: monospace;
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.1);
  transform-origin: top left;
  transition: transform 0.6s ease-in-out, top 0.6s ease-in-out, left 0.6s ease-in-out, opacity 0.4s ease-in-out;
}

.genie-window.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  top: 50% !important;
  left: 50% !important;
}

/*=====================================================================================================================*/
/*============================================= VENTANA INICIO DE SESIÖN ==============================================*/
/*=====================================================================================================================*/

.apple-icon {
  height: 16px;
  width: 16px;
  cursor: pointer;
  margin-right: 10px;
}

.menu-item {
  margin-right: 15px;
  cursor: default;
  user-select: none;
}

#appleMenu {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 320px;
  background: #f6f6f6;
  border: 1px solid #999;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  font-family: 'Lucida Grande', sans-serif;
  color: #000;
  text-align: center;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%); 
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: hidden;
}

#appleMenu.show {
opacity: 1;
  transform: scale(1) translate(-50%, -50%); 
  visibility: visible;
  pointer-events: auto;
}

#appleMenu .login-content {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s; 
}

.apple-window-header {
  background: #e0e0e0;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.apple-window-body {
  text-align: center;
  padding: 20px 10px;
}

.login-logo {
  width: 48px;
  margin-bottom: 10px;
}

.apple-window-body h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 2px 0;
}

.version {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.login-input {
  width: 80%;
  padding: 6px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.password-container {
  position: relative;
  display: none; /*OCULTAR INPUT DE CONTRASEÑA POR MIENTRAS*/
  width: 80%;
  margin-bottom: 15px;
}

.password-container .login-input {
  width: 100%;
  padding: 6px;
  padding-right: 35px;
  margin-bottom: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
  font-size: inherit;
  letter-spacing: normal;
  font-weight: normal;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  outline: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.eye-icon {
  position: relative;
  width: 20px;
  height: 14px;
}

/* Forma del ojo */
.eye-shape {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 16px;
  height: 8px;
  border: 2px solid #666;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

/* Pupila */
.eye-pupil {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

/* Línea diagonal para el ojo tachado  */
.eye-slash {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 18px;
  height: 2px;
  background: #666;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Estado cuando la contraseña está oculta (ojo tachado) */
.password-hidden .eye-slash {
  opacity: 1;
}

/* Estado cuando la contraseña está visible (ojo normal) */
.password-visible .eye-slash {
  opacity: 0;
}

.specs {
  font-size: 12px;
  text-align: left;
  margin: 15px auto;
  width: 80%;
}

.info-btn {
  font-size: 12px;
  padding: 5px 10px;
  margin-top: 1px;
  background: #dcdcdc;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
}

.info-btn:hover {
  background: #c0c0c0;
}

.legal {
  font-size: 10px;
  color: #888;
  margin-top: 20px;
  line-height: 1.4;
}

/*=====================================================================================================================*/
/*============================================= VENTANA USUARIOS EN LINEA =============================================*/
/*=====================================================================================================================*/

#onlineTitle {
    font-weight: 600;
    color: #4a90e2;
    margin: 12px 0 1px 20px;
    font-size: 15px;
  }

  ul.messenger-style {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  ul.messenger-style li {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  ul.messenger-style li:hover {
    background-color: #f5f5f5;
  }

  ul.messenger-style img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 14px;
    object-fit: cover;
  }

  #activeUsers {
    background: #c4c4c4;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 350px;
    height: 600px;
  }

  #activeUsersContent {
    padding: 0;
    background: #c4c4c4;
    overflow-y: auto;
  }

  #activeUsersContent::-webkit-scrollbar {
    width: 6px;
  }

  #activeUsersContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  #activeUsersContent::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }

  #activeUsersContent::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  #userCountBadge {
  position: absolute;
  right: 5px; 
  top: 5px;    
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid white;
}

#userCountBadge.hidden {
  display: none;
}

#userCountBadge.updated {
  animation: badgePulse 0.4s ease-in-out;
}

#userCountBadge.large-number {
  width: 22px;
  height: 18px;
  border-radius: 9px;
  font-size: 10px;
}
  
  @keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    background-color: #ff6666;
  }
  100% {
    transform: scale(1);
    background-color: #ff4444;
  }
}

/*=====================================================================================================================*/
/*==================================================== VENTANA ABOUT US ===============================================*/
/*=====================================================================================================================*/

#about.mac-window {
  width: 400px;
  height: 300px;
  max-width: 90%;
  max-height: 90%;
}

.about-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  height: 100%;
}

.ceo-image {
  width: 100px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.about-right h3 {
  font-size: 24px;
  font-weight: 500;
  color: black;
  align-items: center;
}


/*=====================================================================================================================*/
/*================================================== BOTONES DE VENTANA ===============================================*/
/*=====================================================================================================================*/

.window-buttons {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}

.btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: rgb(73, 73, 73);
  cursor: pointer;
}

.btn.red {
  background: #ff5f57;
  border: 1px solid #b0413e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 1px 1px rgba(0,0,0,0.2);
}

.btn.yellow {
  background: #febc2e;
  border: 1px solid #b28f1e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 1px 1px rgba(0,0,0,0.2);
}

.btn.green {
  background: #28ca42;
  border: 1px solid #1f8f2e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 1px 1px rgba(0,0,0,0.2);
}

.mac-window-content {
  padding: 15px;
  height: calc(100% - 28px);
  overflow-y: auto;
  color: #000000;
}

/*=====================================================================================================================*/
/*==================================================== VENTANA MOVIES =================================================*/
/*=====================================================================================================================*/

.mac-window#gallery {
  width: 1200px;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.itunes-controls {
  height: 60px;
  background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
  border-bottom: 1px solid #b8b8b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 10px;
}

.itunes-controls-left {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.itunes-controls-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.itunes-controls-right {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.itunes-time-volume input {
  width: 120px;
}

#mercimetalic {
  height: 350px;
}

.search-box {
  width: 140px;
  height: 22px;
  border: 1px solid #999;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 11px;
}

.volume-slider {
  width: 100px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.itunes-main {
  flex: 1;
  overflow: visible;
}

/* Área de contenido principal */
.itunes-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
}

.gallery-coverflow {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #000, #333);
  border-bottom: 1px solid #999;
  position: relative;
  overflow: visible;
}

.coverflow-container {
  position: relative;
  perspective: 1000px;
  overflow: hidden;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-track {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.coverflow-item {
  flex: 0 0 auto;
  transform: rotateY(0deg) scale(1);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.6;
  position: relative;
  cursor: pointer;
  transform-origin: center center;
}

.coverflow-item.center {
  transform: scale(1.2) translateZ(40px);
  opacity: 1;
  z-index: 3;
}

.coverflow-item.left {
  transform: rotateY(45deg) scale(0.85);
  z-index: 2;
}

.coverflow-item.right {
  transform: rotateY(-45deg) scale(0.85);
  z-index: 2;
}

.coverflow-item.far-left,
.coverflow-item.far-right {
  transform: scale(0.7);
  z-index: 1;
}

.coverflow-item iframe {
  width: 100%;
  height: 100%;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  pointer-events: none;
}

.coverflow-item.center iframe {
  pointer-events: auto;
}

.reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  transform: scaleY(-1);
  opacity: 0.3;
  border-radius: 8px;
  pointer-events: none;
}

.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  display: block;
}

.coverflow-nav:hover {
  background: rgba(0,0,0,0.8);
}

.coverflow-nav.prev {
  left: 20px;
}

.coverflow-nav.next {
  right: 20px;
}

.video-list-header {
  height: 25px;
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  flex: 1;
}

.header-cell {
  padding: 0 10px;
  border-right: 1px solid #ddd;
  flex: 1;
}

.header-cell.name { flex: 2; }
.header-cell.time { flex: 0 0 60px; }
.header-cell.artist { flex: 1.5; }
.header-cell.album { flex: 1.5; }

.video-list-content {
  font-size: 12px;
  color: #383838;
}

.video-row {
  height: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.video-row:nth-child(even) {
  background: #f8f8f8;
}

.video-row:hover {
  background: #ffffff;
}

.video-row.selected {
  background: #4080ff;
  color: white;
}

.row-cell {
  padding: 0 10px;
  border-right: 1px solid #f0f0f0;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-cell.name { flex: 2; }
.row-cell.time { flex: 0 0 60px; text-align: left; }
.row-cell.artist { flex: 1.5; }
.row-cell.album { flex: 1.5; }
.row-cell.genre { flex: 1; }

.itunes-footer {
  height: 20px;
  background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
  border-top: 1px solid #b8b8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
}

/*=====================================================================================================================*/
/*==================================================== VENTANA CONTACTO ===============================================*/
/*=====================================================================================================================*/

.retro-contact {
  position: fixed;
  left: 50%;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 500px;
  background: #bcbcbc;
  font-family: 'Courier New', monospace;
  color: #333;
  border: 4px solid #444;
  z-index: 10000;
  display: none;
  flex-direction: column;
}

.retro-close-button {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 16px;
  padding: 1px 9px;
  cursor: pointer;
  color: #222;
}

.retro-contact-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;       
  padding: 4px 6px;
  background: #999;
  height: 22px;              
  border-bottom: 2px solid #333;
}

.retro-close-button:hover {
  background-color: #777;
  color: #fff;
}

.retro-contact-body {
  text-align: center;
  padding: 10px;
  font-size: 25px;
}

#mensaje-envio button:hover {
  background-color: #777;
  color: #fff;
}

.contact-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #999;
  padding: 6px 12px;
  height: 36px;
  border-bottom: 3px solid #333;
}

#icon-close-contact {
  position: fixed;
  top: 50px; 
  left: 20px;
  width: 60px;
  display: none;
  z-index: 9999;
}

.contact-title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  color: #444;
  flex: 1;
}

.contact-exit img:hover {
  transform: scale(1.1);
}

.retro-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.retro-form label {
  font-weight: bold;
  font-size: 14px;
  background: #888;
  padding: 6px;
  color: #eee;
  width: fit-content;
}

.retro-form input,
.retro-form textarea {
  background: #ccc;
  border: 2px solid #888;
  font-family: monospace;
  font-size: 14px;
  padding: 6px;
  width: 100%;
  resize: none;
  color: #222;
}

.retro-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.retro-buttons button {
  flex: 1;
  background: #444;
  color: #ccc;
  border: 2px solid #999;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
}

/*=====================================================================================================================*/
/*================================================== VENTANA SOCIAL MEDIA =============================================*/
/*=====================================================================================================================*/

.fullscreen-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9998;
}

.fullscreen-window.show {
  opacity: 1;
  transform: scale(1);
}

#icon-close-safari{
  position: fixed;
  top: 50px;
  left: 20px;
  width: 60px;
  display: none;
  z-index: 9999;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 100px;
}

.social-icons img {
  width: 300px;
  height: 300px;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/*=====================================================================================================================*/
/*================================================== VENTANA SOUNDS OF MERCI ==========================================*/
/*=====================================================================================================================*/

#sets {
  width: 700px;
  max-height: 480px;
  background: #e8e8e8;
  border: 1px solid #777;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.4),
    inset 0 0 10px #fff;
  display: flex;
  flex-direction: column;
  font-family: 'Lucida Grande', Verdana, Arial, sans-serif;
  color: #333;
  user-select: none;
}

/* Header metálico */
.itunes-header {
  height: 32px;
  background: url('imagenes/brushedmetal.jpg');
  border-bottom: 1px solid #666;
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
}

.window-title {
  font-size: 13px;
  font-weight: bold;
  color: #222;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  user-select: text;
}

.itunes-content {
  display: flex;
  flex: 1;
  background: #e8e8e8;
  border-top: 1px solid #bbb;
  flex-direction: column;
}

.itunes-sidebar {
  width: 140px;
  background: linear-gradient(to bottom, #d3d3d3, #bababa);
  border-right: 1px solid #999;
  padding: 12px;
  font-size: 12px;
  padding: 8px;
  color: #444;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.itunes-source-section h4 {
  margin: 0 0 10px 4px;
  font-weight: bold;
  color: #2f2f2f;
  font-size: 12px;
  text-shadow: 0 1px 0 #fff;
}

.itunes-source-item {
  padding: 5px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: normal;
  transition: background 0.3s;
  user-select: none;
  color: #333;
  box-shadow: inset 0 1px 0 #fff;
  background: linear-gradient(to bottom, #f9f9f9, #dcdcdc);
  border: 1px solid #bbb;
}

.itunes-source-item:hover:not(.active) {
  background: linear-gradient(to bottom, #cce0ff, #a3c0ff);
  border-color: #6791f7;
  color: #15428b;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.itunes-source-item.active {
  background: linear-gradient(to bottom, #5a9dff, #3a7bd9);
  border: 1px solid #2256a0;
  color: white;
  font-weight: bold;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
}

.source-icon {
  margin-right: 8px;
  font-size: 13px;
  user-select: none;
}

.itunes-main-content {
  display: flex;
  flex: 1;
  height: calc(100% - 100px); 
}

.itunes-time-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  padding-left: 30px;
}

.itunes-time-volume::before {
  content: "🔊";
  font-size: 18px;
  user-select: none;
}

.itunes-visualizer {
  flex-grow: 1;
  height: 60px;
  background: linear-gradient(to bottom, #d6d6d6, #a6a6a6);
  border-radius: 5px;
  box-shadow:
    inset 0 -1px 3px #b3b3b3;
  display: flex;
  padding: 10px;
  padding-right: 50px;
}

#visualizerCanvas {
  width: 350px;
  height: 40px;
  background: #ddd;
  border-radius: 10px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.itunes-sidebar {
  width: 140px;
  background: #d8d8d8;
  border-right: 1px solid #999;
  padding: 8px;
}

.itunes-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 12px;
  overflow-y: auto;
}

.soundcloud-list iframe {
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #bbb;
}

#volumeControl {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #4a72c8 100%, #ffffff 100%);
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
  transition: background 0.2s;
}

#volumeControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  align-items: center;
  border-radius: 50%;
  background: #4a72c8;
  border: 1px solid #2e3e87;
  cursor: pointer;
  margin-top: -1px;
}

/*=====================================================================================================================*/
/*======================================================= VENTANA MERCH ===============================================*/
/*=====================================================================================================================*/

#merch{
width: 700px;
  height: 600px;
}

/*Ocultar back icon en Desktop*/
.cart-back-icon {
  display: none;
}

  .merch-main-view img[src*="freelohan_blanca_tabla.png"],
  .merch-main-view img[src*="freelohan_negra_tabla.png"] {
    width: 490px;
    height: auto;
    max-width: none;
  }

.merch-banner {
  position: absolute;
  top: 35px; 
  left: 0;
  width: 100%;
  background-color: #ff0000;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  padding: 1px 1px;
  z-index: 12; 
  box-sizing: border-box;
  pointer-events: none;
}

.merch-content-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: white;
}

.merch-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
  text-align: center;
  min-height: 500px;
  height: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.merch-image-wrapper {
  position: relative;
  display: inline-block;
}

.merch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
  gap: 10px;
  color: white;
}

.merch-gif {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  object-fit: cover;
  cursor: pointer;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* LETRERO SOLD OUT 
.sold-out-badge {
  position: absolute;
  bottom: 20px;
  left: 8px;
  background-color: #e60000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  pointer-events: none;
}
  */

.merch-detail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 40px;
  min-height: 500px;
  height: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.merch-main-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.merch-main-view img {
  max-width: 280px;
  border-radius: 10px;
  margin-bottom: 30px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.merch-main-view h3 {
  margin: 0;
  font-size: 20px;
}

.merch-main-view h4 {
  margin: 5px 0;
}

.merch-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.merch-thumbs img,
.merch-thumbs video {
  width: 80px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

  .merch-main-view img[src*="tabla_blanca.png"],
  .merch-main-view img[src*="tabla_negra.png"] {
    width: 500px;
    height: auto;
    max-width: none;
  }

.merch-thumbs img:hover,
.merch-thumbs video:hover {
  border: 2px solid white;
}

.size-selector {
  margin-top: 10px;
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
}

.size-selector select {
  margin-left: 8px;
  padding: 5px;
  border-radius: 4px;
  border: none;
  background-color: #222;
  color: white;
}

#shoppingCart.mac-window {
  width: 700px;
  height: 600px;
}

.cart-dark-content {
  background-color: #1f1e1e;
  color: white;
  font-family: monospace;
  text-align: center;
  padding: 30px 20px;
}

.mac-window-content.cart-dark-content {
  overflow-y: auto;
}

.cart-icon {
  position: absolute;
  top: 65px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  filter: brightness(0) invert(1); 
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.back-icon {
  position: absolute;
  top: 60px;
  width: 30px;
  left: 20px;
  height: 30px;
  cursor: pointer;
  filter: brightness(0) invert(1); 
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.cart-notification-badge {
  position: absolute;
  right: 10px;
  top: 60px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid white; 
}

/* Ocultar el badge cuando no hay items */
.cart-notification-badge.hidden {
  display: none;
}

/* Animación cuando se actualiza el badge */
.cart-notification-badge.updated {
  animation: badgePulse 0.4s ease-in-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.4);
  }
  100% {
    transform: scale(1);
  }
}

.cart-notification-badge.large-number {
  width: 22px;
  height: 18px;
  border-radius: 9px;
  font-size: 10px;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
  .cart-notification-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
  
  .cart-notification-badge.large-number {
    width: 20px;
    height: 16px;
    font-size: 9px;
  }
}

.cart-icon:hover {
  transform: scale(1.2);
  opacity: 1;
}

.cart-title {
  font-size: 24px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.cart-items-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 5px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 10px;
  border-bottom: 1px solid #444;
  text-align: left;
}

.cart-item img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

.cart-item video:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.cart-item-text {
  flex-grow: 1;
  text-align: left;
  font-size: 14px;
}

.cart-item-text p {
  margin: 2px 0;
}

.remove-btn {
  background: none;
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

.cart-checkout-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cart-total {
  font-size: 18px;
}

.checkout-btn {
  background: none;
  border: 2px solid white;
  color: white;
  font-family: monospace;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  text-transform: uppercase;
}

.checkout-btn:hover {
  background: white;
  color: black;
}

/*=====================================================================================================================*/
/*=====================================================================================================================*/
/*=================================================== DISEÑO RESPONSIVE ===============================================*/
/*=====================================================================================================================*/
/*=====================================================================================================================*/


@media screen and (max-width: 468px) { 
  .mac-window {
  display: none;
  width: 90vw !important;     
  height: 70vh !important;
}

body.apple-lockdown {
  overflow: hidden;
  height: 100vh;
}

  body {
  cursor: default;
  font-size: 10px;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: fixed;
  overscroll-behavior: none;
  touch-action: none;
  }

  .top-bar {
position: fixed;
  top: 0;
  left: 0;
  height: 24px;
  width: 100%;
  z-index: 999;
  background-color: #2e2e2e;
  color: white;
  display: flex;
  align-items: center;
  }

  .top-bar-left {
    padding-left: 5px;
       font-size: 10px;
    max-width: 60vw;
    display: flex;
    flex-wrap: wrap;
  }

  .apple-icon {
    height: 20px;
    width: 20px;
  }

  .menu-item {
  display: inline;
  font-size: 10px;
  margin-right: 8px;
}

  .top-bar-right {
    font-size: 10px;
    max-width: 60vw;
    padding-right: 5px;
  }

  /* Desktop más compacto */
  .desktop {
    padding: 35px 10px;
    gap: 1px;
  }

  .disk {
    margin-bottom: 15px;
  }

  .disk img {
    width: 60px;
  }
  
  .radar-disk{
    margin-bottom: 15px;
    margin-left: 7px;
    font-size: 13px;
  }

  .disk p {
    font-size: 13px;
    margin-top: 1px;
  }

  /* Dock más pequeño */
  .dock {
    bottom: 3px;
    padding: 4px 10px;
    border-radius: 15px;
    gap: 8px;
  }

  .dock-icon img {
    width: 50px;
    height: 50px;
  }

  /* Ventanas más adaptadas */
  .mac-window-header {
    height: 24px;
    padding: 0 8px;
  }

  .window-buttons .btn {
    width: 10px;
    height: 10px;
  }

  .btn.red::after {
    font-size: 8px;
  }

  .window-title {
    font-size: 11px;
  }

  /* -------------------------------------------------------------------------------------------------------------- */
  /* ------------------------------------------------- INICIO DE SESIÖN ------------------------------------------- */
  /* -------------------------------------------------------------------------------------------------------------- */

  .apple-menu {
    width: 90vw;
    max-width: 280px;
    left: 1px;
    top: 23px;
    padding: 15px;
  }

  .apple-menu h2 {
    font-size: 18px;
  }

  .apple-menu input {
    padding: 8px;
    font-size: 14px;
  }

  .apple-menu button {
    padding: 8px;
    font-size: 13px;
  }
.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-container {
  position: relative;
  width: 100%;
}

.password-container .login-input {
  padding-right: 50px; 
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.password-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.eye-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.eye-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 12px;
  border: 2px solid #666;
  border-radius: 50%;
  background: transparent;
}

.eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.eye-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 20px;
  height: 2px;
  background: #666;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.password-hidden .eye-pupil {
  opacity: 0;
}

.password-hidden .eye-slash {
  opacity: 1;
}

  /* --------------------------------------------------------------------------------------------------------------- */
  /* ------------------------------------------------- USUARIOS EN LINEA ------------------------------------------- */
  /* --------------------------------------------------------------------------------------------------------------- */

#onlineTitle {
  font-weight: 600;
  color: #4a90e2;
  margin: 8px 0 1px 12px;
  font-size: 14px;
}

#activeUsers .window-title {
  display: none;
}


ul.messenger-style {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.messenger-style li {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

ul.messenger-style li:hover {
  background-color: #f5f5f5;
}

ul.messenger-style img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

#activeUsers {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  height: 60vh !important;
  width: 60vw !important;
}

#activeUsersContent {
  padding: 0;
  background: #ffffff;
}


  /* -------------------------------------------------------------------------------------------------------------- */
  /* ---------------------------------------------------- CONTACTO ------------------------------------------------ */
  /* -------------------------------------------------------------------------------------------------------------- */

  .genie-window {
  width: 90vw;
  max-width: 700px;
  height: 55vh;
  max-height: 400px;
  top: 40% ;
  left: 50%;
  transform: translate(-50%, -50%);
}

  .contact-header-bar {
    height: 30px;
    padding: 4px 8px;
  }

  .retro-contact-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 4px 6px;
  background: #999;
  height: 22px;
  border-bottom: 2px solid #333;
}

  .contact-title {
    font-size: 17px;
  }

  .retro-contact-body {
  text-align: center;
  padding: 1px;
  font-size: 20px;
}

  .retro-form {
    padding: 12px;
    gap: 3px;
  }

  .retro-form label {
    font-size: 10px;
    padding: 1px;
  }

  .retro-form input,
  .retro-form textarea {
    font-size: 12px;
  }

  .retro-buttons button {
    font-size: 10px;
  }

  .retro-contact {
    width: 80vw;
    font-size: 13px;
  }

.retro-close-button {
 font-weight: bold;
 font-size: 16px;
 padding: 1px 1px;
 cursor: pointer;
 color: #222;
 line-height: 1;
 height: 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 border: none;
 background: none;
}
  #icon-close-contact,
  #icon-close-safari {
    width: 50px;
    top: 35px;
    left: 10px;
  }

  /* -------------------------------------------------------------------------------------------------------------- */
  /* ------------------------------------------------------- MERCH ------------------------------------------------ */
  /* -------------------------------------------------------------------------------------------------------------- */

  /*Evitar scroll*/
  #merch .mac-window-content {
    overflow: hidden;
  }

  .merch-banner {
  position: absolute;
  top: 30px; 
  left: 0;
  width: 100%;
  background-color: #ff0000;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  padding: 1px 1px;
  z-index: 12; 
  box-sizing: border-box;
  pointer-events: none; 
}

  .cart-icon {
    position: absolute;
    top: 9vh;
    right: 15px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  .cart-icon:hover {
    transform: scale(1.1);
  }

  .merch-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 5px;
    overflow: hidden; 
    margin-top: -50px;
    padding-top: 0 !important;
  }

  .merch-item {
    flex: 0 1 45%;
    max-width: 45%;
    padding: 10px;
    margin: 0;
    
  }

  /* SOLD OUT HOOVER
  .sold-out-badge {
  position: absolute;
  bottom: 20px;
  left: 8px;
  background-color: #e60000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  pointer-events: none;
}
*/
  .merch-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    line-height: 1.3;
  }

  .merch-gif {
    width: 35vw;
    height: auto;
    margin-bottom: 10px;
  }

  .merch-gif:hover {
    transform: scale(1.05);
  }

  .merch-item h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .merch-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ffffff;
  }

  /* Botones optimizados para touch */
  .merch-item button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    min-height: 44px;
    min-width: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
  }

  .merch-item button:hover {
    background: white;
    color: black;
  }

  /* BOTÖN DE COMPRA INHABILITADO */
  #merchDetail button{
    text-decoration: line-through;
    background: rgb(94, 94, 94);
    color: black;

  }

  .merch-detail-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
  }

  .back-icon {
    position: absolute;
    top: 2vh;
    left: 1px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  .back-icon:hover {
    transform: scale(1.1);
  }

  .cart-back-icon {
    display: block;
    position: absolute;
    top: 35px;
    left: 15px;
    width: 30px;
    height: auto;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1);
  }

  .cart-back-icon:hover {
    transform: scale(1.1);
  }

  /* Vista principal del producto */
  .merch-main-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0px;
    gap: 3px;
    flex: 1;
    order: 1;
    max-width: 70%;
    margin-left: 30px;
  }

  .merch-main-view img {
    max-width: 100%;
    width: 150px;
    height: auto;
    border-radius: 5px;
    margin-bottom: -1px;
  }

  .merch-main-view h3 {
    font-size: 20px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin: 0;
  }

  .merch-main-view h4 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
  }

  .size-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
  }

  .size-selector label {
    color: white;
    font-size: 14px;
    font-weight: 500;
  }

  .size-selector select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    min-height: 44px;
    min-width: 80px;
  }

  .merch-main-view button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    min-height: 44px;
    min-width: 120px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
  }

  .merch-main-view button:hover {
    background: rgb(68, 68, 68);
    color: rgb(255, 255, 255);
  }

  .merch-thumbs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    padding: 60px 0 0 0;
    order: 2;
    align-items: center;
    position: absolute;
    right: 0px;
    top: 4vh;
  }

  .merch-thumbs img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .merch-main-view img[src*="freelohan_blanca_tabla.png"],
  .merch-main-view img[src*="freelohan_negra_tabla.png"] {
    width: 73vw;
    height: auto;
    max-width: none;
  }

  .merch-thumbs img:hover,
  .merch-thumbs img.active {
    border-color: rgb(255, 255, 255);
    transform: scale(1.05);
  }

  .cart-dark-content {
  padding: 20px 15px;
    overflow-y: auto;
    height: calc(100vh - 100px);
  }

  .cart-title {
    font-size: 24px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
  }

  .cart-items-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 20px;
    padding-right: 5px;
  }

  .cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .cart-item-text {
    flex: 1;
    min-width: 0;
    color: white;
  }

  .cart-item-text h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-item-text p {
    font-size: 12px;
    margin: 0;
    color: #ffffff;
  }

  .cart-notification-badge {
  position: absolute;
  top: 8vh;
  right: 2vw;
  background: #ff4444;
  color: white;
  border-radius: 60%;
  width: 5vw;
  height: 3vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  z-index: 11;
  }

  .cart-notification-badge.hidden {
  display: none;
  }

  .remove-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .remove-btn:hover {
    background: #ff4444;
    color: white;
  }

  .cart-checkout-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    text-align: center;
  }

  .cart-total {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 0px;
  }

  .checkout-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #ffffff;
    color: black;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    min-height: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
  }

  .checkout-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
  }

  /* -------------------------------------------------------------------------------------------------------------- */
  /* ------------------------------------------------- SOUNDS OF MERCI -------------------------------------------- */
  /* -------------------------------------------------------------------------------------------------------------- */

#sets .mac-window-content {
  padding: 0 !important;
}

.itunes-main-content {
  flex-direction: row;
}

.itunes-sidebar {
  border-right: none;
  width: 30vw;
}

.itunes-top-controls {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.itunes-search-browse {
  display: none;
}

.itunes-time-volume {
  display: none;
}

.itunes-visualizer {
  display: flex;
  justify-content: center; 
  align-items: center;    
  width: 100%;
  padding: 10px 0;
}

.itunes-visualizer canvas {
  width: 50vw !important;
  max-width: none;
  height: auto !important;
  display: block;
}

  /* -------------------------------------------------------------------------------------------------------------- */
  /* -------------------------------------------------- SOCIAL MEDIA ---------------------------------------------- */
  /* -------------------------------------------------------------------------------------------------------------- */

#socialWindow {
  opacity: 0 !important;
  transition: opacity 0.2s ease-in-out !important;
}

#socialWindow.show {
  opacity: 1 !important;
}

.social-icons {
  position: absolute;        
  top: 33%;                  
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: nowrap;        
  justify-content: center;
  align-items: center;
  gap: 0px;                 
  padding: 0;
}

.social-icons img {
  width: 200px;               
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-left: -35px;
  margin-right: -35px;
}

  /* -------------------------------------------------------------------------------------------------------------- */
  /* --------------------------------------------------- ABOUT US ------------------------------------------------- */
  /* -------------------------------------------------------------------------------------------------------------- */

  .about-layout {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .ceo-image {
    width: 120px;
    align-self: center;
  }

  .about-right {
    text-align: center;
    justify-content: center;
  }

  .about-right h3 {
    font-size: 20px;
  }

  /* -------------------------------------------------------------------------------------------------------------- */
  /* ----------------------------------------------------- MOVIES ------------------------------------------------- */
  /* -------------------------------------------------------------------------------------------------------------- */

.itunes-main {
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.itunes-controls {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 8px 15px;
  gap: 15px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.itunes-controls-left,
.itunes-controls-center,
.itunes-controls-right {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.itunes-controls-left {
  justify-content: flex-start;
  display: none;
}

.itunes-controls-center {
  justify-content: center;
}

.itunes-controls-right {
  justify-content: flex-end;
  display: none;
}

#mercimetalic {
  height: 205px;
  width: auto;
}

.gallery-coverflow {
  height: 31vh;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to bottom, #000, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coverflow-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.coverflow-track {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 33px;
  transform-style: preserve-3d;
  will-change: transform;
  height: 100%;
}

.coverflow-item {
  flex: 0 0 calc(75% - 40px); 
  max-width: calc(75% - 40px);
  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.6s ease,
              filter 0.6s ease;
  transform-origin: center center;
  position: relative;
  cursor: pointer;
}

.coverflow-item iframe {
  width: 100%;
  max-height: 14vh; 
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.5),
    0 8px 15px rgba(0,0,0,0.3);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
}


.coverflow-item.center {
  transform: scale(1.05) translateZ(50px);
  opacity: 1;
  z-index: 5;
  filter: brightness(1.1);
}

.coverflow-item.center iframe {
  pointer-events: auto;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.6),
    0 10px 20px rgba(0,0,0,0.4);
}

.coverflow-item.left {
  transform: rotateY(25deg) scale(0.9) translateZ(-20px);
  opacity: 0.8;
  z-index: 3;
  filter: brightness(0.8);
}

.coverflow-item.right {
  transform: rotateY(-25deg) scale(0.9) translateZ(-20px);
  opacity: 0.8;
  z-index: 3;
  filter: brightness(0.8);
}

.coverflow-item.far-left,
.coverflow-item.far-right {
  transform: scale(0.75) translateZ(-40px);
  opacity: 0.5;
  z-index: 1;
  filter: brightness(0.6);
}

.coverflow-nav {
  width: 45px;
  height: 45px;
  font-size: 24px;
  font-weight: bold;
  touch-action: manipulation;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.coverflow-nav:hover,
.coverflow-nav:active {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.05);
}

.coverflow-nav.prev {
  left: 5px;
}

.coverflow-nav.next {
  right: 5px;
}

.video-title-list {
  background: #ffffff;
  overflow-y: auto;
  flex: 1;
  min-height: 0; 
}

.video-list-header, .video-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.video-row.selected {
  background: #4080ff !important;
  color: white !important;
}

.header-cell, .row-cell {
  flex: 1;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-cell.name, .row-cell.name {
  flex: 2;
}
.header-cell.time, .row-cell.time {
  flex: 0 0 50px;
  text-align: right;
}
.header-cell.artist, .row-cell.artist {
  flex: 1.5;
}
.header-cell.album, .row-cell.album {
  flex: 1.5;
}

.itunes-footer {
  font-size: 10px;
  text-align: center;
  padding: 8px 0;
  background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
  border-top: 1px solid #b8b8b8;
  flex-shrink: 0;
}


/*------------------------------------ Media queries para ajustes finos en móvil --------------------------------*/
  @media (max-width: 768px) {
    .coverflow-item {
      flex: 0 0 calc(85% - 40px);
      max-width: calc(85% - 40px);
    }
    
    .coverflow-item iframe {
      height: calc((100vw * 0.98 * 0.85 - 40px) * 9 / 16);
      max-height: 30vh;
    }
  }
}

/* OPTIMIZACIONES PARA DISPOSITIVOS TÁCTILES */
@media (hover: none) and (pointer: coarse) {
  .coverflow-nav:hover {
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1);
  }
  
  .video-row:hover {
    background: inherit;
  }
}



@media screen and (max-width: 340px) {
  .itunes-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .itunes-controls-left,
  .itunes-controls-center,
  .itunes-controls-right {
    justify-content: center;
    width: 100%;
  }
}

/* Breakpoint para dispositivos extra pequeños (hasta 320px) */
@media screen and (max-width: 320px) {
  
  .merch-item {
    padding: 12px;
  }

  .merch-gif {
    width: 160px;
  }

  .merch-main-view img {
    width: 200px;
  }

  .merch-thumbs img {
    width: 60px;
    height: 60px;
  }

  .cart-item {
    padding: 10px;
  }

  .checkout-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}


/*============================================== Tablets en orientación portrait ==============================*/

@media screen and (min-width: 481px) and (max-width: 768px) {
  
  .mac-window {
    width: 85vw;
    height: 75vh;
    max-height: 600px;
  }

  .merch-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .merch-item {
    width: 200px;
  }

  .social-icons {
    gap: 40px;
  }

  .social-icons img {
    width: 60px;
    height: 60px;
  }

  .dock-icon img {
    width: 45px;
  }

  .itunes-main-content {
    flex-direction: row;
  }

  .itunes-sidebar {
    width: 120px;
    border-right: 1px solid #999;
    border-bottom: none;
  }
}

/*====================================================== Landscape móviles =========================================*/

@media screen and (max-height: 500px) and (orientation: landscape) {
  
  .mac-window {
    height: 95vh !important;
    width: 90vw;
  }

  .desktop {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 15px;
  }

  .disk {
    margin-right: 20px;
    margin-bottom: 10px;
  }

  .dock {
    bottom: 2px;
    padding: 4px 10px;
  }

  .dock-icon img {
    width: 30px;
  }

  .top-bar {
    height: 18px;
    font-size: 10px;
  }

  .apple-icon {
    height: 12px;
    width: 12px;
  }
}

/*]================================================= Mejoras de usabilidad táctil ==========================================*/

@media (hover: none) and (pointer: coarse) {
  
  /* Elementos táctiles más grandes */
  .dock-icon {
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }

  .dock-icon:active {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .disk {
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }

  .disk:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .window-buttons .btn {
    width: 18px;
    height: 18px;
    margin: 2px;
  }

  .btn.red::after {
    font-size: 15px;
  }

  /* Botones más grandes */
  button {
    min-height: 44px;
    padding: 10px 15px;
  }

  .merch-item button,
  .checkout-btn,
  .retro-buttons button {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Inputs más grandes */
  input, textarea, select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Scroll suave */
  .mac-window-content,
  .cart-items-grid {
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevenir zoom en inputs (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="url"] {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 768px) {
  .mac-window:not(.show) {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}



