/*
Theme Name: Windows 95 Browser
Theme URI: https://example.com/windows95-browser
Author: Plantilla Nordie
Description: A single-page Windows 95–inspired browser shell with an editable taskbar and clock for easy templating.
Version: 1.0
Tags: retro, win95, single-page
License: GPL-2.0-or-later
Text Domain: windows95-browser
*/

@font-face {
  font-family: 'W95FA';
  src: url('assets/Fonts/W95FA.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'FSEX300';
  src: url('assets/Fonts/FSEX300.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --desktop-gradient: radial-gradient(circle at 30% 20%, #65b6c3 0%, #15858c 35%, #005763 75%);
  --desktop-highlight: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.32), transparent 40%);
  --desktop-secondary-highlight: radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.18), transparent 45%);
  --taskbar-color: #c7c7c7;
  --taskbar-border: #5f5f5f;
  --taskbar-highlight: linear-gradient(180deg, #f6f6f6 0%, #c1c1c1 50%, #a6a6a6 100%);
  --start-button-color: #e9e9e9;
  --start-border-light: #ffffff;
  --start-border-dark: #8b8b8b;
  --desktop-custom-bg: none;
}

html {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #004b59;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'W95FA', 'VT323', 'Lucida Sans Unicode', 'Tahoma', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  background: #004b59;
  color: #1c1c1c;
  padding-top: env(safe-area-inset-top, 0);
  overflow: hidden;
}

.win95-desktop {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 48px;
  background-image: var(--desktop-custom-bg), var(--desktop-gradient);
  background-size: cover, cover;
  background-position: center center, 30% 20%;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 8px solid #000;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 0 200px rgba(0, 0, 0, 0.25);
  min-height: calc(100vh - 40px);
  background-attachment: fixed;
}

.win95-home-layer {
  height: 100%;
  width: 100%;
  background:
    var(--desktop-highlight),
    var(--desktop-secondary-highlight);
}

.win95-grid {
  position: absolute;
  inset: 24px 32px 72px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.win95-taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 40px;
  background: #c2c2c2;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid var(--taskbar-border);
  border-left: 2px solid #ffffff;
  border-right: 2px solid var(--taskbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  box-shadow:
    inset 0 2px #ffffff,
    inset 0 -1px rgba(0, 0, 0, 0.3);
}

.win95-float-cta {
  position: fixed;
  right: 12px;
  bottom: calc(40px + 18px + env(safe-area-inset-bottom, 0));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 2px solid #121212;
  background: #e9e9e9;
  color: #111;
  text-decoration: none;
  font-family: 'FSEX300', 'VT323', 'W95FA', sans-serif;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 7px 0 #111,
    0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.win95-float-cta:hover,
.win95-float-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 9px 0 #111,
    0 14px 26px rgba(0, 0, 0, 0.38);
}

.win95-float-cta:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #111,
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.start-button {
  border: 2px solid var(--start-border-dark);
  border-top-color: var(--start-border-light);
  border-left-color: var(--start-border-light);
  height: 35px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    1px 1px 0 #fff,
    -1px -1px 0 #a0a0a0;
}

.start-button-img {
  width: 100%;
  height: 30px;
  object-fit: contain;
  display: block;
}

.start-button:active {
  transform: translate(1px, 1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 0 transparent;
  border-top-color: #8b8b8b;
  border-left-color: #8b8b8b;
}

.start-button--active {
  transform: translate(1px, 1px);
  border-top-color: #8b8b8b;
  border-left-color: #8b8b8b;
}

.start-menu {
  position: fixed;
  bottom: 42px;
  left: 4px;
  width: 200px;
  background: #c4c4c4;
  border: 2px solid var(--taskbar-border);
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: none;
  z-index: 60;
}

.start-menu--visible {
  display: block;
}

.start-menu__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 6px;
}

.start-menu__item {
  border: none;
  background: #f2f2f2;
  color: #0a0a0a;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 16px;
  text-align: left;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  border: 2px solid transparent;
}

.start-menu__item img {
  width: 28px;
  height: auto;
  display: block;
}

.start-menu__item span {
  flex: 1;
}

.start-menu__item:hover,
.start-menu__item:focus-visible {
  background: #ffffff;
  border-color: #7a7a7a;
}

.start-menu__item:focus-visible {
  outline: none;
}

.win95-clock {
  font-size: 18px;
  padding: 4px 12px;
  background: #c2c2c2;
  border: 2px solid var(--taskbar-border);
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px rgba(0, 0, 0, 0.2);
}

.win95-taskbar__windows {
  flex: 1;
  display: flex;
  gap: 4px;
  padding: 0 6px;
  overflow-x: auto;
  align-items: center;
}

.win95-taskbar__window {
  border: 2px solid #b0b0b0;
  border-color: #fff #7f7f7f #7f7f7f #fff;
  background: linear-gradient(180deg, #f7f7f7, #bfbfbf);
  padding: 0 10px;
  min-width: 200px;
  height: 32px;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-transform: none;
  text-align: left;
}

.win95-taskbar__window:active {
  transform: translate(1px, 1px);
  box-shadow: inset 0 1px #fff;
}

.win95-taskbar__window-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.win95-taskbar__window-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  color: #000;
}

.win95-instructions {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

.desktop-items {
  position: absolute;
  top: 80px;
  left: 40px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  grid-auto-columns: minmax(68px, auto);
  column-gap: 110px;
  row-gap: 140px;
  pointer-events: auto;
  z-index: 2;
}

.desktop-folder {
  width: 72px;
  padding: 0px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0);
  color: #ffffff;
  font-size: 16px;
  font-family: 'W95FA', 'VT323', 'Lucida Sans Unicode', sans-serif;
  text-align: center;
  cursor: grab;
  pointer-events: auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
  transform: translate(0, 0);
  border: none;
  justify-content:flex-end;
}

.desktop-folder img {
  width: 64px;
  height: auto;
}

.desktop-folder:hover {
  transform: translate(0, -2px);
}

.desktop-folder--active {
  padding: 0px 0px 0px;
  color: #ffffff;
  background-color: #0c1f76;
}

.desktop-folder--active span {
  color: #ffffff;
    background-color: #0c1f76;
}

/* ----- Desktop + smaller tablets (up to 1024px) ----- */
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  .win95-desktop {
    min-height: 100vh;
    padding-bottom: 120px;
    background-attachment: fixed;
    background-position: center top, 30% 20%;
    padding-top: env(safe-area-inset-top, 0);
  }

  .desktop-items {
    top: calc(60px + env(safe-area-inset-top, 0));
    left: 16px;
    column-gap: 80px;
    row-gap: 110px;
  }

  .desktop-folder {
    width: 60px;
    font-size: 14px;
    gap: 6px;
  }
}

@media (min-width: 641px) {
  .win95-desktop {
    cursor: url('assets/IMG/mouse.png') 10 2, auto !important;
  }
  body {
    cursor: url('assets/IMG/mouse.png') 10 2, auto !important;
  }
}

/* ----- Mobile-specific overrides (up to 640px) ----- */
@media (max-width: 640px) {
  body {
    padding-bottom: 40px;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .win95-desktop {
    min-height: 100vh;
    padding-bottom: 160px;
    padding-top: env(safe-area-inset-top, 0);
    justify-content: flex-start;
    align-items: flex-start;
    background-attachment: fixed;
  }

  .desktop-items {
    top: calc(50px + env(safe-area-inset-top, 0));
    left: 8px;
    column-gap: 16px !important;
    row-gap: 40px !important;
    grid-template-rows: repeat(4, auto) !important;
    width: calc(68% - 16px);
    right: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    justify-content: flex-start;
    justify-items: flex-start;
  }

  .desktop-folder {
    width: 50px;
    gap: 4px;
  }

  .desktop-folder span {
    font-size: 16px;
  }

  .start-menu {
    left: 4px;
    width: 180px;
    box-sizing: border-box;
    padding-bottom: 4px;
  }

  .win95-taskbar {
    height: 52px;
    padding: 0 6px;
  }

  .win95-float-cta {
    right: 12px;
    left: auto;
    bottom: calc(52px + 17px + env(safe-area-inset-bottom, 0));
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    font-size: 0;
    border-radius: 14px;
  }

  .win95-float-cta::before {
    content: '✉';
    font-size: 26px;
    line-height: 1;
    font-family: 'W95FA', 'VT323', sans-serif;
  }

  .win95-taskbar__windows {
    padding: 0 2px;
    gap: 2px;
  }

  .win95-taskbar__window {
    min-width: 120px;
    font-size: 12x;
    padding: 0 6px;
  }

  .win95-window {
    top: calc(40px + env(safe-area-inset-top, 0));
    width: min(96vw, 440px);
    max-height: calc(100vh - 140px);
    padding-bottom: 12px;
  }

  .win95-window[data-window-key="musica"] {
    max-height: calc(100vh - 180px);
  }

  .win95-window,
  .win95-window--active {
    left: 12px;
    transform: none;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .win95-window__frame {
    border-radius: 0;
  }

  .win95-window__titlebar {
    padding: 4px 8px;
  }

  .win95-window__title {
    font-size: 14px;
    gap: 4px;
  }

  .win95-window__content {
    padding: 8px;
  }

  .win95-window--snake {
    display: none;
  }

  .win95-window--snake-mobile {
    display: block;
  }

  .win95-window[data-window-key="paint"] .win95-paint__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .win95-paint__btn[data-paint-clear],
  .win95-paint__btn[data-paint-save] {
    width: 100%;
    justify-content: center;
  }

  .win95-paint__btn[data-paint-clear] {
    order: -1;
  }

  .win95-paint__btn[data-paint-save] {
    order: 2;
  }

  .win95-paint__name {
    order: 1;
    width: 100%;
  }

  .win95-window[data-window-key="paint"] {
    overflow: hidden;
    touch-action: none;
  }

  .win95-window[data-window-key="paint"] .win95-paint__canvas-wrapper,
  .win95-window[data-window-key="paint"] canvas {
    touch-action: none;
    overflow-x: hidden;
  }


  .win95-window--paint-mobile-fixed {
    touch-action: none;
  }

  .win95-window__grid,
  .win95-window__text-grid {
    gap: 12px;
  }

  .win95-paint__sizes {
    display: none;
  }

  .win95-paint__name,
  .win95-paint__btn[data-paint-save] {
    display: none;
  }

  .win95-paint__btn[data-paint-tool="eraser"] {
    display: none;
  }

  .win95-paint__palette button:nth-last-child(-n+5) {
    display: none;
  }

  .win95-window[data-window-key="musica"] {
    max-height: calc(100vh - 320px) !important;
  }

  .win95-window[data-window-key="configuracion"] {
    max-height: calc(100vh - 320px) !important;
  }

  .win95-contact-detail__button {
    width: 100%;
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .win95-contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }

  .win95-contact-form__panel input,
  .win95-contact-form__panel textarea {
    font-size: 14px;
  }

  .win95-background-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .win95-gallery__frame {
    min-height: 200px;
  }

  .win95-music__primary {
    flex-direction: column;
    align-items: flex-start;
  }

  .win95-music__cover {
    width: 88px;
    height: 88px;
  }

  .win95-music__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .win95-music__play {
    width: 48px;
    height: 48px;
  }

  .win95-paint__canvas-wrapper canvas {
    width: 90%;
    height: auto;
  }

  .win95-lightbox {
    padding: 32px 12px;
  }
}

/* ----- Ultra-mobile tweaks (up to 480px) ----- */
@media (max-width: 480px) {
  body {
    padding-bottom: 32px;
  }

  .win95-taskbar {
    height: 40px;
  }

  .win95-float-cta {
    bottom: calc(40px + 15px + env(safe-area-inset-bottom, 0));
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 12px;
  }

  .win95-float-cta::before {
    font-size: 23px;
  }

  .desktop-items {
    top: calc(40px + env(safe-area-inset-top, 0));
    left: 8px;
    right: 8px;
    column-gap: 14px !important;
    row-gap: 20px !important;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    margin: 0;
  }

  .desktop-folder {
    width: 100%;
    gap: 10px;
  }

  .win95-window__controls {
    gap: 3px;
  }

  .win95-window__toolbar,
    .win95-window__status {
    padding: 2px 6px;
  }

  .win95-window__grid,
  .win95-window__text-grid {
    gap: 10px;
  }

  .win95-note,
  .win95-window__content {
    padding: 8px;
  }

  .win95-window__status-action,
  .win95-window__status-handle {
    width: 48px;
    height: 28px;
    font-size: 10px;
  }

  .win95-lightbox__frame {
    padding: 18px;
  }

  .win95-lightbox__close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .win95-snake-mobile-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .win95-snake-mobile-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #121212;
    background: #d4d4d4;
    color: #121212;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 0 1px #fff;
    position: relative;
    font-size: 0;
  }

  .win95-snake-mobile-controls button:active {
    transform: translateY(1px);
  }

  .win95-snake-mobile-controls button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-bottom-color: #121212;
  }

  .win95-snake-mobile-controls button[data-snake-dir='left']::after {
    border-bottom-color: transparent;
    border-right-color: #121212;
  }

  .win95-snake-mobile-controls button[data-snake-dir='right']::after {
    border-bottom-color: transparent;
    border-left-color: #121212;
  }

  .win95-snake-mobile-controls button[data-snake-dir='down']::after {
    border-bottom-color: transparent;
    border-top-color: #121212;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.win95-window-manager {
  position: absolute;
  inset: 0px 0px 43px;
  pointer-events: none;
  z-index: 20;
}

.win95-window {
  position: absolute;
  top: 80px;
  left: 120px;
  width: 520px;
  min-height: 360px;
  background: #d7d7d7;
  border: 3px solid #8f8f8f;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform-origin: top left;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.win95-window--snake-mobile {
  display: none;
}

.win95-window[data-window-key="configuracion"] {
  max-height: calc(100vh - 60px);
}

.win95-window[data-window-key="configuracion"] .win95-window__frame {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (max-width: 1024px) {
  .win95-window {
    width: min(92vw, 520px);
    max-height: calc(100vh - 120px);
    top: calc(70px + env(safe-area-inset-top, 0));
    left: 50%;
    transform: translateX(-50%);
  }

  .win95-window[data-window-key="configuracion"] .win95-window__content {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 10px 10px 14px;
  }

  .win95-background-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .win95-background__option {
    border-width: 2px;
    padding: 6px;
  }
}

@media (max-width: 640px) {
  .win95-window {
    top: calc(50px + env(safe-area-inset-top, 0));
    width: min(96vw, 480px);
    max-height: calc(100vh - 160px);
    left: 50%;
    transform: translateX(-50%);
  }

  .win95-window[data-window-key="configuracion"] .win95-window__content {
    max-height: calc(100vh - 200px);
  }
}

.win95-window--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  flex: 1;
  overflow: auto;
  display: flex;
  min-height: 0;
  flex-direction:column;
}

.win95-window--maximized {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
}

.win95-window--minimized {
  display: none;
}

.win95-window__frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #dcdcdc;
  border: 2px solid #c2c2c2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  min-height: 0;
}

.win95-window__titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0c3f9d;
  color: #ffffff;
  padding: 6px 10px;
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.4);
  padding-right: 4px;
}

.win95-window__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.win95-window__title img {
  width: 20px;
  height: 20px;
}

.win95-window__controls {
  display: flex;
  gap: 5px;
}

.win95-window__control {
  width: 26px;
  height: 22px;
  border: 2px solid #fff;
  border-color: #fff #0a3779 #0a3779 #fff;
  background: linear-gradient(180deg, #e9e9e9, #b1b1b1);
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.win95-window__control img {
  width: 28px;
  height: 28px;
  display: block;
}

.win95-window__control:active {
  transform: translate(1px, 1px);
  box-shadow: inset 0 0 0 #fff;
}

.win95-window__toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 3px 0px;
  background: #d4d4d4;
  border-bottom: 2px solid #b0b0b0;
}

.win95-window__sort {
  border: none;
  background: #c2c2c200;
  font-family: 'W95FA', 'VT323', sans-serif;
  cursor: pointer;
  font-size: 16px;
  padding-left: 18px;
  color: #111;
  -webkit-text-fill-color: #111;
}

.win95-window__search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #d4d4d4;
  border: 2px inset #b5b5b5;
  padding: 6px 4px;
}

.win95-window__search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'W95FA', 'VT323', sans-serif;
}

.win95-window__content {
  flex: 1;
  background: #ffffff;
  padding: 10px;
  border-bottom: 2px solid #7a7a7a;
  display: flex;
  min-height: 0;
  overflow: auto;
}

.win95-social-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.win95-social-links__item {
  width: 60px;
  height: 60px;
  border: 2px solid #c8c8c8;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.win95-social-links__item:hover,
.win95-social-links__item:focus-visible {
  border-color: #5f5f5f;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.45);
}

.win95-social-links__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.win95-window__grid,
.win95-window__text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 18px;
  width: 100%;
  align-content: start;
  justify-content: flex-start;
  justify-items: start;
}

.win95-note {
  flex: 1;
  background: #f7f7f7;
  border: 2px inset #c8c8c8;
  box-shadow: inset 0 0 0 1px #fff;
  padding: 20px;
  overflow: auto;
  font-family: 'FSEX300', 'W95FA', 'VT323', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #121212;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 100%;
}





.win95-note__heading {
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0.05em;
}

.win95-note__title {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0.05em;
  color: #0a0a0a;
}

.win95-note__paragraph {
  margin: 0;
}

.win95-note__list {
  margin: 0;
  padding-left: 1.5em;
}

.win95-note__list li {
  margin-bottom: 4px;
}

.win95-contact-detail {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  font-size: 18px;
  color: #111;
  font-family: 'FSEX300', 'VT323', 'W95FA', sans-serif;
}

.win95-contact-detail__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 100%;
}

.win95-contact-detail__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  padding: 12px 18px;
  background: linear-gradient(180deg, #1f3460 0%, #0b1a38 100%);
  border: 2px solid #1a1f3d;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

.win95-contact-detail__button:hover,
.win95-contact-detail__button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(12, 36, 70, 0.45);
}

.win95-contact-form {
  font-family: 'FSEX300', 'VT323', 'W95FA', sans-serif;
  color: #111;
  padding: 12px;
}

.win95-window--contact-form {
  width: 420px;
  height: 420px;
}

.win95-contact-form p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

.win95-contact-form__panel {
  border: 2px inset #c6c6c6;
  background: #f6f6f6;
  padding: 18px;
  box-shadow: inset 0 1px 0 #fff;
  padding-right: 40px;
}

.win95-contact-form__panel input[type="text"],
.win95-contact-form__panel input[type="email"],
.win95-contact-form__panel input[type="tel"],
.win95-contact-form__panel textarea {
  width: 100%;
  border: 2px inset #b2b2b2;
  background: #fff;
  padding: 8px;
  margin-bottom: 12px;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 16px;
  color: #111;
  resize: vertical;
}

.win95-contact-form__panel textarea {
  min-height: 120px;
}

.win95-contact-form__panel input[type="submit"],
.win95-contact-form__panel .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ededed 0%, #c8c8c8 100%);
  border: 2px solid #7b7b7b;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.6),
    1px 1px 0 #fff;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.win95-contact-form__panel input[type="submit"]:hover,
.win95-contact-form__panel .wpcf7-submit:hover,
.win95-contact-form__panel input[type="submit"]:focus-visible,
.win95-contact-form__panel .wpcf7-submit:focus-visible {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(15, 35, 80, 0.6);
}

.win95-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  padding: 12px;
}

.win95-contact-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #d6dbe6;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  cursor: pointer;
  text-transform: none;
  font-family: 'W95FA', 'VT323', sans-serif;
  letter-spacing: 0.2em;
  color: #0f1225;
}

.win95-contact-grid__item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.win95-contact-grid__item span {
  margin-top: 4px;
}


.win95-background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.win95-background__option {
  border: 2px solid #e1e1e1;
  border-radius: 14px;
  padding: 10px;
  background: #f0ecec;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: #000000;
  font-family: 'W95FA', 'VT323', sans-serif;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.win95-background__option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.win95-background__option span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.win95-background__option--active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.win95-gallery {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.win95-gallery__frame {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #ffffff;
  border: 2px inset #c2c2c2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win95-gallery__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.win95-gallery__controls {
  display: flex;
  gap: 12px;
}

.win95-gallery__button {
  border: 2px solid #8a8a8a;
  background: linear-gradient(180deg, #f2f2f2, #c9c9c9);
  color: #111;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 16px;
  padding: 6px 18px;
  cursor: pointer;
  box-shadow: inset 0 1px #fff, inset 0 -1px #6d6d6d;
}

.win95-gallery__button:active {
  transform: translate(1px, 1px);
}

.win95-window--gallery {
  width: 760px;
  min-height: 520px;
}

.win95-window--always-front {
  z-index: 9999999 !important;
}

.win95-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  z-index: 999999;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.win95-lightbox--visible {
  opacity: 1;
  visibility: visible;
}

.win95-lightbox__frame {
  background: #0c0c0c;
  border: 8px solid #ffffff;
  padding: 24px;
  width: min(96vw, 1000px);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.win95-lightbox__image {
  max-width: 100%;
  max-height: calc(92vh - 180px);
  object-fit: contain;
  background: #ffffff;
  border: 5px solid #ffffff;
  box-shadow: inset 0 0 0 2px #000, 0 10px 40px rgba(0, 0, 0, 0.4);
  align-self: center;
  display: block;
}

.win95-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #e7302d;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 0;
}

.win95-lightbox__controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  pointer-events: auto;
}

.win95-lightbox__button {
  border: 2px solid #ffffff;
  background: #111;
  color: #ffffff;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 16px;
  padding: 8px 26px;
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px #111 inset, inset 0 1px #fff;
  transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease;
}

.win95-lightbox__button:active {
  transform: translateY(1px) scale(0.98);
  background: #fff;
  color: #111;
}

.win95-window--gallery.win95-window--gallery--fullscreen .win95-gallery__controls {
  display: none;
}

.win95-window--snake .win95-window__content {
  background: linear-gradient(180deg, #9ec53d 0%, #7ea42b 100%);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.win95-snake {
  background: #bfe248;
  border: 6px solid #1c1c1c;
  border-top-color: #232323;
  border-left-color: #dedede;
  padding: 16px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    inset 0 0 0 4px #1d1d1d,
    inset 0 10px 0 rgba(255, 255, 255, 0.2);
}

.win95-snake__score {
  background: #121b05;
  color: #a6ff30;
  font-size: 2rem;
  text-align: center;
  padding: 10px 0;
  border-radius: 4px;
  letter-spacing: 0.4em;
  font-family: 'VT323', 'W95FA', sans-serif;
  box-shadow: inset 0 0 0 2px #0c0c0c;
}

.win95-snake__board {
  background: #97be2f;
  border: 4px solid #111;
  padding: 6px;
}

.win95-snake__board canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: inset 0 0 0 12px rgba(0, 0, 0, 0.2);
}

.win95-snake__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.win95-snake__start {
  padding: 8px 28px;
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: 'W95FA', 'VT323', sans-serif;
  background: #0c0c0c;
  color: #f6f6f6;
  border: 2px solid #fff;
  box-shadow:
    inset 0 -3px 0 #000,
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.win95-snake__start:active {
  transform: translateY(1px);
}

.win95-music {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.win95-music__primary {
  display: flex;
  gap: 12px;
  align-items: center;
}

.win95-music__cover {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #e7e5e5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.win95-music__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: #3b4c67;
}

.win95-music__title {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: 'W95FA', 'VT323', sans-serif;
}

.win95-music__subtitle {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5a687c;
}

.win95-music__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.win95-music__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #0f1225;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 12px rgba(15, 17, 37, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  padding: 0;
  position: relative;
}

.win95-music__play-icon {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.win95-music__play.is-playing .win95-music__play-icon {
  opacity: 0;
}

.win95-music__play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  opacity: 1;
}

.win95-music__play.is-playing::after {
  width: 0;
  border: none;
  height: 22px;
  width: 9px;
  left: calc(50% - 4px);
  top: calc(50% - 11px);
  background: transparent;
  border: none;
  box-shadow: 9px 0 0 #fff, -9px 0 0 #fff;
}

.win95-music__controls input[type='range'] {
  flex: 1;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #d6dce6;
  width: 100%;
}

.win95-music__controls input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f1225;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.win95-music__controls input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f1225;
  border: 2px solid #fff;
}

.win95-music__stations {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 12px;
  border: 2px solid #e0e3ec;
}

.win95-music__station-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #4a5b71;
}

.win95-music__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.win95-music__track {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #0f1225;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.win95-music__track--active {
  border-color: #0f1225;
  background: #eceff9;
}

.win95-music__track strong {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.win95-music__track small {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5c6378;
}

.win95-paint__toolbar {
  gap: 10px;
}

.win95-paint__btn {
  border: 2px solid #d9dce7;
  padding: 6px 14px;
  background: #fff;
  font-family: 'W95FA', 'VT323', sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}

.win95-paint__btn--secondary {
  background: #fde9e9;
  border-color: #f5c6c6;
}

.win95-paint__btn:hover,
.win95-paint__btn.is-active,
.win95-paint__size:hover,
.win95-paint__size.is-active {
  border-color: #0c1224;
  box-shadow: inset 0 0 0 1px rgba(12, 18, 36, 0.35);
}

.win95-paint__content {
  flex-direction: column;
  gap: 18px;
}

.win95-paint__canvas-wrapper {
  background: #fdf6f0;
  border: 3px solid #d6dbe6;
  padding: 10px;
  display: flex;
  justify-content: center;
  width: auto;
  background-color: #fff;
}

.win95-paint__canvas-wrapper canvas {
  width: 460px;
  height: 300px;
  display: block;
  border:3px solid #d6dbe6;
}

.win95-paint__palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 8px;
  width: 100%;
}

.win95-paint__color {
  width: 100%;
  padding-top: 87%;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  outline: none;
}

.win95-paint__color::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  border: 2px solid transparent;
}

.win95-paint__color.is-active {
  border-color: #0c1224;
}

.win95-paint__size {
  border: 2px solid #d9dce7;
  padding: 4px 10px;
  background: #fff;
  cursor: pointer;
  letter-spacing: 0.15em;
  font-family: 'W95FA', 'VT323', sans-serif;
}

.win95-paint__size.is-active {
  border-color: #0c1224;
}

.win95-note::-webkit-scrollbar,
.win95-window__content::-webkit-scrollbar {
  width: 26px;
}

.win95-note::-webkit-scrollbar-track,
.win95-window__content::-webkit-scrollbar-track {
  background: #d4d4d4;
  border: 2px solid #dcdcdc;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.win95-note::-webkit-scrollbar-thumb,
.win95-window__content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b8b8b8, #7f7f7f);
  border: 2px solid #fff;
  border-right-color: #5a5a5a;
  box-shadow: inset 0 0 0 1px #fff;
  border-radius: 2px;
}

.win95-note::-webkit-scrollbar-thumb:hover,
.win95-window__content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e2e2e2, #a0a0a0);
}

.win95-note::-webkit-scrollbar-button:single-button,
.win95-window__content::-webkit-scrollbar-button:single-button {
  background: linear-gradient(180deg, #dcdcdc, #b8b8b8);
  border: 1px solid #7a7a7a;
  border-radius: 2px;
}

.win95-note::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: linear-gradient(0deg, transparent 15px, #5a5a5a 15px);
}

.win95-note::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: linear-gradient(180deg, transparent 15px, #5a5a5a 15px);
}

.win95-note,
.win95-window__content {
  scrollbar-width: thin;
  scrollbar-color: #888 #d4d4d4;
}

.win95-window__grid-item {
  border: none;
  background: #ffffff;
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-height: 80px;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 14px;
  text-align: center;
  color: #111;
  -webkit-text-fill-color: #111;
}

.win95-window__grid--single-column {
  justify-content: flex-start;
  align-items: flex-start;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 12px;
}

.win95-window[data-window-key="contacto"] .win95-window__grid {
  grid-template-columns: repeat(auto-fit, minmax(100px, max-content));
  gap: 8px 6px;
  justify-content: flex-start;
}

.win95-window__grid-item img {
  width: 48px;
  height: auto;
}

.win95-window__grid-item:focus-visible {
  outline: 2px dashed #0c3f9d;
}

.win95-window__grid-item:hover {
  transform: translateY(-4px);
}

.win95-window__grid-item--dragging {
  transition: none;
  cursor: grabbing;
}

.win95-window__grid-item[hidden] {
  display: none;
}

.win95-window__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 28px;
  background: #c2c2c2;
  color: #040404;
  border-top: 2px solid #5a0c7b;
  padding-right: 0px;
}




.win95-window__status-text {
  font-size: 16px;
}

.win95-window__status-text--prompt {
  font-style: italic;
}

.win95-window__status-action,
.win95-window__status-handle {
  border: 2px solid #2d8b8b;
  background: linear-gradient(180deg, #5eeaff, #1c8b99);
  width: 62px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'W95FA', 'VT323', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0e0e0e;
  border-radius: 2px;
}

.win95-window__resize-handle {
  cursor: se-resize;
  border: none;
  box-shadow: none;
  background: transparent;
  width: 0;
  height: 0;
}

/* AGRANDA Y ACHICA*/

.win95-window__status-action.win95-window__resize-handle,
.win95-window__status-handle.win95-window__resize-handle {
  width: 10%;
  height: 85%;
  background-color: #c2c2c2;
  border-left: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #000000;
  border-right: 2px solid #000000;
}

.win95-window__toolbar button,
.win95-window__status-action,
.win95-window__status-handle {
  font-family: 'W95FA', 'VT323', sans-serif;
}


.win95-window__content-hidden {
  display: none;
}

.win95-window--minimized .win95-window__toolbar,
.win95-window--minimized .win95-window__content,
.win95-window--minimized .win95-window__status {
  display: none;
}

@media (max-width: 640px) {
  .win95-window {
    width: calc(100% - 40px);
    left: 20px;
    top: 60px;
    padding-bottom: 0px;
  }

  .win95-window__content {
    padding: 12px;
  }


  .win95-clock {
    font-size: 18px;
  }
}
