/*
 * Version: 1.0.0 (2026-01-19)
 * Notes:
 * Author: Matias Virasoro
 */

/* ==========================
   Base
========================== */
body {
  background-color: var(--lascholas-color);
}

/* ==========================
   Home (logo + buttons)
========================== */

.logo {
  display: flex;
  height: calc(100vh - 75px);
  align-items: center;
  justify-content: center;
  background-color: var(--lascholas-color);
  padding-top: 40px;
}

.logo img {
  width: 75%;
}

.multi-button {
  text-align: -webkit-center;
  font-size: 0.75em;
  padding: 10px;
  background-color: var(--lascholas-color);
}
.multi-button h2 {
  text-align: center;
  background-color: #e0e5ec;
  border-radius: 10px;
  border: none;
  width: 150px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  color: black;
}
.multi-button h2:hover {
  background-color: var(--lascholas-button);
  color: white;
}
.multi-button a,
.multi-button a:visited,
.multi-button a:focus,
.multi-button a:active {
  text-decoration: none;
  color: inherit;
  outline: 0;
}

.languaje {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.langbutton {
  margin: 1%;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================
   Footer
========================== */
.footer {
  display: flex;
  background-color: #000;
  color: white;
  justify-content: center;
  padding-bottom: 20px;
  padding-left: 5%;
  padding-right: 5%;
  flex-wrap: wrap;
}
.box {
  color: white;
  text-align: center;
  align-self: center;
  max-width: fit-content;
  padding: 5px 15px;
}
.boxtext {
  color: white;
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-align: left;
  line-height: 1.5em;
  align-self: flex-start;
  max-width: fit-content;
  align-content: flex-start;
  padding: 5px 15px;
}
.boxicons {
  color: white;
  text-align: center;
  align-self: center;
  max-width: fit-content;
  padding: 5px 15px;
  flex: 3;
}
.boxtext .header {
  font-size: 18px;
}
.boxtext a,
.boxtext a:visited,
.boxtext a:focus,
.boxtext a:active {
  text-decoration: none;
  color: inherit;
  outline: 0;
}
.boxtext a:hover {
  text-decoration: underline;
}
.boxicons a,
.boxicons a:visited,
.boxicons a:focus,
.boxicons a:active {
  text-decoration: none;
  color: inherit;
  outline: 0;
  font-size: 24px;
}

/* ==========================
   Slideshow (fit al menu)
========================== */
.slideshow-container {
  position: relative; /* pill + flechas */
  margin: 0 auto;

  /* clave: que el contenedor abrace el ancho real del menu */
  width: fit-content;
  max-width: calc(100vw - 20px); /* no se pasa del viewport */
}

/* Slides */
.mySlides {
  display: none;
  justify-content: center;
}

/* Imagen del menu */
.mySlides img {
  max-width: calc(100vw - 20px);
  height: calc(100vh - 50px);
  padding: 10px;
}

/* Dots */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active,
.dot:hover {
  background-color: var(--lascholas-button);
}

/* Fade */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ==========================
   MENU QR – Flechas (posición precisa)
========================== */
:root {
  --menuqr-accent: var(--lascholas-button);

  /* Ajustes reales */
  --menu-img-padding: 10px; /* padding real del img */
  --arrow-distance: 5px; /* distancia deseada al menú */
}

/* Base flechas */
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: var(--lascholas-button);
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

/* POSICIÓN REAL (5px desde la imagen) */
.slideshow-container .prev {
  left: calc(var(--menu-img-padding) + var(--arrow-distance));
}
.slideshow-container .next {
  right: calc(var(--menu-img-padding) + var(--arrow-distance));
}

/* Mostrar al interactuar */
.slideshow-container:hover .prev,
.slideshow-container:hover .next,
.slideshow-container:focus-within .prev,
.slideshow-container:focus-within .next,
.slideshow-container:active .prev,
.slideshow-container:active .next {
  opacity: 1;
  pointer-events: auto;
}

/* Hover */
.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Click/tap (accent) */
.slideshow-container .prev:active,
.slideshow-container .next:active {
  background: var(--menuqr-accent);
  border-color: rgb(0, 0, 0);
  color: #fff;
  transform: translateY(-50%) scale(0.96);
}

/* ==========================
   Language pill – FINAL (inside slideshow)
========================== */
.lang-pill--inside {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;

  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
}

.lang-pill--inside .lang-pill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 180ms ease,
    transform 120ms ease,
    box-shadow 180ms ease;
}

.lang-pill--inside .flag-svg {
  width: 26px;
  height: 18px;
  display: block;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

/* Inactivo */
.lang-pill--inside .lang-pill__btn:not(.is-active) {
  background: transparent;
}
.lang-pill--inside .lang-pill__btn:not(.is-active) .flag-svg {
  filter: grayscale(100%);
  opacity: 0.6;
}

/* Activo */
.lang-pill--inside .lang-pill__btn.is-active {
  background: #ffffff;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15);
}
.lang-pill--inside .lang-pill__btn.is-active .flag-svg {
  filter: none;
  opacity: 1;
}

/* Hover / active solo para inactivo */
.lang-pill--inside .lang-pill__btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.04);
}
.lang-pill--inside .lang-pill__btn:not(.is-active):active {
  transform: scale(0.97);
}

/* =========================
   Reservation button (Action)
========================= */
.lang-pill__btn--action {
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(0, 0, 0, 0.35);
  color: #000;
}

.lang-pill__btn--action:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Icon inside pill (Reservation) */
.lang-pill__btn--action .icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================
   Tooltip (single, no arrow)
   Uses data-tooltip=""
========================= */
.lang-pill__btn[data-tooltip] {
  position: relative;
}

/* Caja tooltip */
.lang-pill__btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  white-space: nowrap;

  background: rgba(0, 0, 0, 0.92);
  color: #fff;

  font-size: 12px;
  line-height: 1;

  padding: 8px 10px;
  border-radius: 10px;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;

  transition:
    opacity 140ms ease,
    transform 140ms ease;
  z-index: 9999;
}

/* Mostrar tooltip */
.lang-pill__btn[data-tooltip]:hover::after,
.lang-pill__btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: sin tooltip */
@media (max-width: 768px) {
  .lang-pill__btn[data-tooltip]::after {
    display: none;
  }
}

/* ==========================
   Responsive
========================== */
@media all and (max-width: 900px) {
  .footer {
    flex-wrap: wrap;
    padding-left: 0px;
    padding-right: 0px;
  }
  .box,
  .boxtext,
  .boxicons {
    flex: 1 1 100%;
    text-align: center;
    max-width: inherit;
    padding: 10px;
  }
  .mySlides img {
    height: auto;
    padding: 10px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

.lang-pill--inside {
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

/* fuerza activo arriba */
.lang-pill--inside .lang-pill__btn.is-active {
  order: 0;
}
.lang-pill--inside .lang-pill__btn:not(.is-active) {
  order: 1;
}

/* =========================
   Logo – Premium reveal
========================= */

.logo img {
  opacity: 0;
  transform: translateY(6px);
  animation: logoReveal 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) 250ms forwards;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .logo img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================
   FORCE Reservation = BLACK
   (override final)
========================= */

/* Solo el botón Reservation (lang-pill--inside) */
.lang-pill--inside .lang-pill__btn.lang-pill__btn--action {
  background: #00000075 !important;
  border: 1px solid #000 !important;
  color: #fff !important;
}

/* que el svg se vea blanco */
.lang-pill--inside .lang-pill__btn.lang-pill__btn--action .icon-svg {
  filter: invert(1) !important;
  opacity: 1 !important;
}

/* hover */
.lang-pill--inside .lang-pill__btn.lang-pill__btn--action:hover {
  background: #111 !important;
}

/* =========================
   Reservation – micro interactions (premium)
========================= */

/* 1) Pressed / tap feedback */
.lang-pill__btn--action:active {
  transform: scale(0.96);
  background: #000;
}

/* 2) Subtle glow */
.lang-pill__btn--action {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lang-pill__btn--action:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* 3) Tooltip Apple-like */
.lang-pill__btn[data-tooltip]::after {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* iPhone / mobile adjustments */
@media (max-width: 480px) {
  .logo {
    padding-top: 0;            /* sin padding */
    height: 74vh;              /* deja espacio para las pills */
    align-items: center;       /* centra vertical */
    justify-content: center;   /* centra horizontal */
  }
}