/* ========================================
   SHACKO — LITTLELINK PERSONALIZADO
   ======================================== */

:root {
  --shacko-bg: #181818;
  --shacko-button-bg: #121212;
  --shacko-lime: #D4FC47;
  --shacko-orange: #CD3703;

  --font-main: 'Archivo', system-ui, -apple-system, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Fondo general */
html,
body {
  min-height: 100%;
  background: var(--shacko-bg) !important;
}

body {
  color: var(--shacko-lime);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Los controles de formulario no heredan fuente por defecto */
button,
input,
textarea,
select {
  font-family: var(--font-main);
}

/* Contenedor principal */
.shacko-main {
  width: 100%;
}

/* Logo */
.shacko-logo {
  display: block;
  width: 128px;
  height: 128px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 24px;
}

/* Título */
.shacko-title {
  color: var(--shacko-lime) !important;
  font-family: var(--font-main);
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 30px;
}

/* Contenedor de botones */
.shacko-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  row-gap: 20px;

  width: calc(100% - 12px);
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 8px;
}

/* Botones */
.shacko-buttons .shacko-button {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  justify-items: center;
  column-gap: 12px;

  width: 100%;
  min-height: 68px;
  margin: 0 !important;
  padding: 14px 18px;

  background: var(--shacko-button-bg) !important;
  color: var(--shacko-orange) !important;

  border: 2px solid var(--shacko-lime) !important;
  border-radius: 16px;

  box-shadow: 4px 5px 0 var(--shacko-lime) !important;

  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

/* Texto centrado, independientemente del icono */
.shacko-buttons .shacko-button span {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  text-align: center;
}

/* Iconos en la columna izquierda */
.shacko-buttons .shacko-button .icon {
  grid-column: 1;
  grid-row: 1;

  display: block;
  width: 24px;
  height: 24px;
  margin: 0;

  filter:
    brightness(0)
    saturate(100%)
    invert(19%)
    sepia(98%)
    saturate(3844%)
    hue-rotate(9deg)
    brightness(82%)
    contrast(104%);
}

/* Hover: fondo lima y texto naranja */
.shacko-buttons .shacko-button:hover {
  background: var(--shacko-lime) !important;
  color: var(--shacko-orange) !important;

  border-color: var(--shacko-lime) !important;
  box-shadow: 2px 3px 0 var(--shacko-lime) !important;
  transform: translate(2px, 2px);
}

.shacko-buttons .shacko-button:hover .icon {
  filter:
    brightness(0)
    saturate(100%)
    invert(19%)
    sepia(98%)
    saturate(3844%)
    hue-rotate(9deg)
    brightness(82%)
    contrast(104%);
}

.shacko-buttons .shacko-button:focus-visible {
  outline: 2px solid var(--shacko-orange);
  outline-offset: 5px;
}

/* Ajustes para móviles */
@media (max-width: 600px) {
  .shacko-logo {
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
  }

  .shacko-title {
    font-size: 1.25rem;
    margin-bottom: 28px;
  }

  .shacko-buttons {
    width: calc(100% - 12px);
    gap: 18px;
    row-gap: 18px;
  }

  .shacko-buttons .shacko-button {
    min-height: 62px;
    padding: 12px 14px;
    border-radius: 14px;
    column-gap: 8px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shacko-buttons .shacko-button {
    transition: none;
  }
}


/* ========================================
   BOTÓN Y MENÚ PARA COMPARTIR
   ======================================== */

.shacko-share-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.shacko-share {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  padding: 0;

  color: #CD3703;
  background: #121212;
  border: 2px solid #D4FC47;
  border-radius: 14px;
  box-shadow: 3px 4px 0 #D4FC47;

  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.shacko-share:hover {
  background: #D4FC47;
  color: #CD3703;
  transform: translate(2px, 2px);
  box-shadow: 1px 2px 0 #D4FC47;
}

.shacko-share:focus-visible {
  outline: 2px solid #CD3703;
  outline-offset: 5px;
}

.shacko-share svg {
  display: block;
  width: 23px;
  height: 23px;
}

.shacko-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: 220px;
  padding: 8px 0;

  background: var(--shacko-button-bg);
  border: 2px solid var(--shacko-lime);
  border-radius: 16px;
  box-shadow: 4px 5px 0 var(--shacko-lime);

  display: none;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.shacko-share-menu.is-open {
  display: flex;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 10px 16px;

  color: var(--shacko-orange);
  background: transparent;
  border: none;

  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.share-option:hover,
.share-option:focus-visible {
  background: var(--shacko-lime);
  color: var(--shacko-orange);
  outline: none;
}

.share-option .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;

  filter:
    brightness(0)
    saturate(100%)
    invert(19%)
    sepia(98%)
    saturate(3844%)
    hue-rotate(9deg)
    brightness(82%)
    contrast(104%);
}

.share-option:hover .icon,
.share-option:focus-visible .icon {
  filter:
    brightness(0)
    saturate(100%)
    invert(19%)
    sepia(98%)
    saturate(3844%)
    hue-rotate(9deg)
    brightness(82%)
    contrast(104%);
}

@media (max-width: 600px) {
  .shacko-share-container {
    top: 12px;
    right: 12px;
  }

  .shacko-share {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .shacko-share-menu {
    top: calc(100% + 6px);
    width: 200px;
  }

  .share-option {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shacko-share,
  .shacko-share-menu,
  .share-option {
    transition: none;
  }
}


/* ========================================
   SUBMENÚ DE IDIOMA (Sitio Web)
   ======================================== */

.shacko-lang-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.shacko-buttons .shacko-lang-toggle {
  cursor: pointer;
  font-family: var(--font-main);
  -webkit-appearance: none;
  appearance: none;
}

.shacko-buttons .shacko-lang-toggle .shacko-lang-chevron {
  grid-column: 3;
  grid-row: 1;
  width: 20px;
  height: 20px;
  color: var(--shacko-orange);
  transition: transform 220ms ease;
  pointer-events: none;
}

.shacko-lang-toggle[aria-expanded="true"] .shacko-lang-chevron {
  transform: rotate(180deg);
}

.shacko-lang-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  padding-right: 6px;
  padding-bottom: 0;

  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  visibility: hidden;

  transition:
    max-height 280ms ease,
    opacity 200ms ease,
    margin-top 280ms ease,
    padding-bottom 280ms ease,
    visibility 0s linear 280ms;
}

.shacko-lang-menu.is-open {
  max-height: 240px;
  opacity: 1;
  margin-top: 12px;
  padding-bottom: 6px;
  visibility: visible;

  transition:
    max-height 280ms ease,
    opacity 200ms ease,
    margin-top 280ms ease,
    padding-bottom 280ms ease,
    visibility 0s;
}

.shacko-buttons .shacko-lang-option {
  grid-template-columns: minmax(0, 1fr);
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--shacko-lime) !important;
  font-size: 1rem;
}

.shacko-buttons .shacko-lang-option span {
  grid-column: 1;
  grid-row: 1;
}

.shacko-buttons .shacko-lang-option:hover {
  box-shadow: 1px 1px 0 var(--shacko-lime) !important;
}

@media (max-width: 600px) {
  .shacko-lang-menu {
    padding-left: 12px;
    gap: 10px;
  }
  .shacko-buttons .shacko-lang-option {
    min-height: 50px;
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shacko-lang-menu,
  .shacko-lang-chevron {
    transition: none;
  }
}

/* ========================================
   ANIMACIÓN WEBP
   ======================================== */

.shacko-animation-wrap {
  display: flex;
  justify-content: center;
  align-items: center;

  width: calc(100% - 12px);
  max-width: 520px;
  margin: 28px auto 8px;
}

.shacko-animation {
  display: block;
  width: 100%;
  max-width: 256px;   /* tamaño en escritorio */
  height: auto;

  /* opcional: mismo borde y sombra que los botones */
  /* border: 2px solid var(--shacko-lime); */
  /* border-radius: 16px; */
  /* box-shadow: 4px 5px 0 var(--shacko-lime); */
}

@media (max-width: 600px) {
  .shacko-animation-wrap {
    margin-top: 22px;
  }

  .shacko-animation {
    max-width: 200px;  /* tamaño en móvil */
  }
}

@media (prefers-reduced-motion: reduce) {
  .shacko-animation {
    /* si quieres respetar la preferencia de movimiento reducido,
       podrías reemplazar la animación por un frame estático */
  }
}