:root {
  --bg: #070b16;
  --panel: rgba(10, 14, 28, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --inactive: rgba(255, 255, 255, 0.55);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --radius-pill: 999px;
}

/* Reset básico */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

/* Accesibilidad SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contenedor principal */
.viewer {
  position: fixed;
  inset: 0;
  background: #050814;
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* IMAGENES (CLAVE) */
.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.slide img {
  object-fit: contain; /* 👈 NO recorta nada */
  object-position: center center;
  background: #050814;
}

/* Selector idioma */
.language-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--inactive);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Fallback */
.fallback {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 12px;
  padding: 10px;
  border-radius: 10px;
  display: none;
}

.fallback.show {
  display: block;
}

/* TABLET */
@media (max-width: 1024px) {
  .slide img {
    object-fit: contain;
  }

  .language-switcher {
    top: 14px;
    right: 14px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .slide img {
    object-fit: contain;
  }

  .language-switcher {
    top: 12px;
    right: 12px;
  }

  .lang-btn {
    font-size: 11px;
    padding: 7px 9px;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .language-switcher {
    top: 10px;
    right: 10px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}