/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    main.css
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

:root {

  /* Colores */
  --color-primary: #8b7f8f;
  --color-secondary: #0e0e0e;
  /*--color-tertiary: #7f7f7f;*/
  --color-tertiary: #2b272d;

  /* Sizes */
  --max-width: 100svw;
  --section-height: 100svh;
  --header-height: 60px;
  --footer-height: 60px;
  --logo-height: calc(var(--header-height) - 14px);
  --logo-footer: 40px;

  /* Espaciado */
  --content-margin: 1rem;
  --content-padding: 1rem;

  /* Efectos */
  --transition-speed: 0.6s;
  --shadow-light: rgba(139, 127, 143, 0.4);

  /* Custom */
  /*--mark-size: 8px; /* Para barra before */
}

@media (max-width: 768px) {
  :root {
    --footer-height: 50px;
    --logo-footer: 30px;
    /*--logo-height: 65px;*/
    --content-margin: 0.85rem;
    --content-padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    /*--logo-height: 60px;*/
    --content-margin: 0.75rem;
    --content-padding: 0.75rem;
  }
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/


/* === CSS Reset & Base Styles === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100svw;
  /*height: 100svh;*/
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  background-color: var(--color-secondary);
  color: #fff;
}

/* Optional: Hide scrollbar for WebKit */
body::-webkit-scrollbar {
  display: none;
}



/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/* HTML REDEFINED */

main {
  margin-top: var(--header-height);
}

strong {
  color: var(--color-tertiary)
}

p {
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-align: center;
}

section {
  position: relative;
  height: var(--section-height);
  /*width: 100%;*/
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}


@media (max-width: 768px) {
  h3 {
    font-size: 1rem;
  }
  p {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  p {
    margin: var(--content-margin);
  }
}

.hidden { display: none !important; } /* usado en footer boton a top */



/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

header {
  /*position: relative;*/
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  backdrop-filter: blur(12px);
  z-index: 900;
}

header .logo {
  display: block;
  background-image: url('/resources/logos/grey-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: var(--logo-height);
  aspect-ratio: 2 / 1;
}

.header-nav {
  height: 100%;
  /*position: relative;*/
  background: var(--color-tertiary);
  padding: 0 var(--content-padding);
  /*margin: var(--content-margin) var(--content-margin) 0 var(--content-margin); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*border-radius: 1rem;*/
}


/* Panel de hamburguesa */
.hamburger {
  display: none;
  /*display: flex !important;*/
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  /*z-index: 110; /* above the menu */
}
.hamburger span {
  width: 100%;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.header-nav.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header-nav.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.header-nav.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


.nav-menu {
  position: relative;
  padding: 1rem 0;
  /*z-index: 1000;*/
}
.nav-menu ul {
  display: flex;
  flex-direction: flex;
  gap: 1rem;
  text-align: center;
}
.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.header-nav.open .nav-menu {
  display: flex;
}


@media (max-width: 1200px) {
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,14,14,0.95);
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1000;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


@media (max-width: 768px) {
  header .logo {
    aspect-ratio: 1/1;
    background-image: url('/resources/logos/loguito.svg');
  }
  .header-nav {
    /*flex-direction: column;*/
    padding: 0.75rem var(--content-padding);
  }
}

@media (max-width: 480px) {
  .header-nav a { font-size: 0.8rem; }
}


/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

footer {
  height: var(--footer-height);
  width: 100%;
  color: #ccc;
  padding: var(--content-padding);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-tertiary);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

footer .logo {
  height: var(--logo-footer);
  width: var(--logo-footer);
  display: inline-block;
  background-size: cover;
  cursor: pointer;
}

footer .social {
  display: flex;
  gap: 0.4rem;
}

.logo.pasajeraentranx {
  background-image: url("/resources/logos/loguito.svg");
  background-size: contain;  /* or 'cover', depending on effect */
  background-repeat: no-repeat;
  background-position: center;
  width: var(--logo-footer);
  height: var(--logo-footer);
  display: inline-block;  /* if used inline */
}

.logo.instagram {
  background-color: var(--color-primary);
  mask: url("/resources/logos/ig_logo.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/ig_logo.svg") no-repeat center/contain;
}

.logo.back-to-top {
  position: fixed;
  right: var(--content-padding);
  bottom: var(--content-padding);
  background-color: var(--color-primary);
  mask: url("/resources/logos/arrow-up.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/arrow-up.svg") no-repeat center/contain;
}


@media (max-width: 768px) {

}

@media (max-width: 480px) {
}





/**************************************/
/*************** MODAL ***************/

.list-group {
  border: none !important;
}

.list-group-item {
  border: none;
  border-bottom: 2px solid white !important;
  background-color: transparent !important;
}







/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

.section-content {
  max-width: 90%;
  height: 80%;
  position: relative;
  /*padding: var(--content-padding);*/
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: left;
  animation: slideInLeft 0.8s ease-out both;
}
/* Section content typography */
.section-content h2 {
  font-size: 2.4rem;
  padding: 0 0 calc(var(--content-padding)/2) 0;
  color: var(--color-primary);
}
.section-content h3 {
  color: var(--color-primary);
  text-align: center;
}
.section-content p {
  margin: 0.6rem 0;
}
.section-content ul {
  margin: 1rem 0;
  padding-left: 1.4rem;
}
.section-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/* Mobile breakpoint */
@media (max-width: 768px) {
  /* Section content takes more width, less padding */
  .section-content {
    height: 100%;
    padding: 1.5rem 0;
    /*margin: 0 var(--content-margin) !important;*/
    animation-name: fadeIn !important;
  }

  .section-content ul li { font-size: 0.8rem; }
  .section-content ul { padding-left: 1.2rem; }
}

@media (max-width: 480px) {

  .section-content ul li { font-size: 0.8rem !important; }
  .section-content ul { padding-left: 1.2rem !important; }
}


/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  text-decoration: none;
  border-radius: 0.425rem;
  font-weight: 800;
  /*transition: background var(--transition-speed), transform var(--transition-speed);*/
  /*box-shadow: 0 4px 12px var(--shadow-light);*/
}

.btn:hover {
  background: var(--color-tertiary);
  transform: translateY(-2px);
}












/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    index.css
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/


/**************************************/
/*************** PORTADA **************/

#portada {
  height: calc(var(--section-height) - var(--header-height));
}

/* ----------------------------------------
    Common Styles for Images & Videos
    ---------------------------------------- */
.image-item {
  position: absolute;
  cursor: pointer;
  /*z-index: 1;*/
  /*mix-blend-mode: lighten; /* optional: blend layers a bit */
}

.image-item img,
.image-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.375rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* hide default controls (shouldn’t appear on muted autoplay) */
.image-item video::-webkit-media-controls,
.image-item video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* ----------------------------------------
    Positioning + Rotation + Sizing
    ---------------------------------------- */
.item1 {
  bottom: 14%;
  left: 8%;
  width: clamp(60px, 18vw, 180px);
  height: clamp(60px, 30vh, 320px);
  z-index: 20;
}

.item2 {
  top: 8%;
  left: 18%;
  width: clamp(60px, 12vw, 220px);
  height: clamp(60px, 36vh, 300px);
  z-index: 10;
}

.item3 {
  top: 40%;
  left: 24%;
  width: clamp(60px, 44vw, 400px);
  height: clamp(60px, 36vh, 400px);
  z-index: 1;
}

.item4 {
  top: 8%;
  right: 24%;
  width: clamp(60px, 48vw, 400px);
  height: clamp(60px, 36vh, 400px);
  /*z-index: 10;*/
}

.item5 {
  bottom: 8%;
  right: 16%;
  width: clamp(60px, 18vh, 340px);
  height: clamp(60px, 24vh, 340px);
  z-index: 20;
}

.item6 {
  top: 26%;
  right: 8%;
  width: clamp(60px, 20vw, 200px);
  height: clamp(60px, 42vh, 440px);
  /*z-index: 30;*/
}

/* ----------------------------------------
    Hover / Focus Effects
    ---------------------------------------- */

.flip-card:hover {
  transform: scale(1.08);
  /*transition: transform 0.4s ease, filter 0.4s ease;*/
  /*z-index: 40;*/
}

.flip-card {
  position: absolute;
  perspective: 1000px;
}

/* 2) Inner wrapper preserves 3D, sets up transition */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* 4) Front & back faces share container but only one is visible at a time */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.375rem;
  overflow: hidden;
}

/* 5) Front stays as-is */
.flip-card-front {
  /*z-index: 0;*/
}

/* 6) Back is hidden until flipped; rotate it 180° so it shows upright once flipped */
.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tertiary);   /* or whatever back-face background you like */
  /*color: #fff;*/
  padding: 1rem;
  text-align: center;
  font-family: sans-serif;
  cursor: pointer;
}

.message {
  color: var(--color-primary);
}

/* ----------------------------------------
    Responsive Tweaks
    ---------------------------------------- */
@media (max-width: 768px) {
  .image-collage { height: 120vh; }

  /*.item1 { top: 65%; left: 8%; }
  .item2 { top: 50%; left: 20%; }
  .item3 { top: 5%;  left: 25%; }
  .item4 { top: 55%; left: 35%; }
  .item5 { top: 45%; left: 55%; }
  .item6 { top: 12%; right: 8%; }*/

  .image-item img,
  .image-item video {
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  }
}


/**************************************/
/************** PROYECTOS *************/

@media (max-width: 768px) {
  .section-content {
    flex-direction: column;
    text-align: center;
  }
}

.project-card {
  color: var(--color-primary) !important;
  border-radius: 0.375rem;
  width: 100%;
  height: 90%;
}

.tattoo-card {
  /*max-width: 600px;*/
  /*margin: 2rem auto;*/
  height: 100%;
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--color-tertiary);
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: flex;
/*  flex-direction: column;*/
}

.tattoo-card:hover {
  transform: scale(1.01);
}

.tattoo-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #888;
  padding-bottom: 0.5rem;
}

.tattoo-card .info {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#proyecto1 .info, #proyecto3 .info {
  padding: 0 1.8rem 0 0;
}

#proyecto2 .info {
  padding: 0 0 0 1.8rem;
}

@media (max-width: 768px) {
  
  #proyecto1 .info, #proyecto3 .info {
    padding: 0 0 1.8rem 0;
  }
  
  #proyecto2 .info {
    padding: 1.8rem 0 0 0;
  }
}

.tattoo-card .title {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 800;
  margin: 0 0 0.6rem 0;
  text-align: center;
}
  
.tattoo-card .details {
  font-size: 0.8rem;
  /*margin-bottom: 1rem;*/
  color: var(--color-primary);
  font-style: italic;
  text-align: center;
}

.tattoo-card .description {
  font-size: 0.8rem;
  line-height: 1.6;
  /*margin-bottom: 1.5rem;*/
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .tattoo-card {
    padding: 1.5rem;
  }

  .tattoo-card h2 {
    font-size: 1.5rem;
  }

  .tattoo-card .description,
  .tattoo-card .details li {
    font-size: 0.7rem;
  }
}

/*
.slideshow-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.mini-gallery.slideshow {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
  height: 100%;
}

.mini-gallery.slideshow .media {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.mini-gallery.slideshow img,
.mini-gallery.slideshow video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
}

.slideshow-container .prev {
  left: 0.5rem;
}

.slideshow-container .next {
  right: 0.5rem;
}

@media (max-width: 480px) {
  .slideshow-container {
    width: 90%;
  }
  .mini-gallery.slideshow .media {
    height: 200px;
  }
}
*/

/* Slideshow Container */
.slideshow-container {
  position: relative;
  width: 50%;
  height: 100%;
/*  flex: 1 1 auto !important;*/
  overflow: hidden;
  border-radius: 1rem;
}

/* The sliding gallery: use flex to arrange “media” items side by side */
.mini-gallery.slideshow {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: calc(100% * 4); /* 4 slides: adjust “4” if you add/remove slides */
}

/* Each individual slide */
.mini-gallery.slideshow .media {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000; /* fallback background */
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Images and videos should fill their parent */
.mini-gallery.slideshow img,
.mini-gallery.slideshow video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Prev / Next Buttons */
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /*background: rgba(0, 0, 0, 0.5);*/
  background-color: transparent;
  border: none;
  color: var(--color-tertiary);
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 0.25rem;
  z-index: 10;
  transition: background 0.2s ease;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background: var(--color-tertiary);
  color: var(--color-primary);
}


/* Positioning the buttons */
.slideshow-container .prev {
  left: 0.5rem;
}

.slideshow-container .next {
  right: 0.5rem;
}

/* Hiding buttons on very small screens to avoid overlap */
@media (max-width: 1200px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    display: none;
    /*font-size: 1.5rem;
    padding: 0.25rem 0.5rem;*/
  }
}

.slideshow-container > .mini-gallery.slideshow {
/*  position: absolute;
  top: 0;
  left: 0;*/
  height: 100%;
  width: 100%
}

@media (max-width: 768px) {
  .tattoo-card {
    flex-direction: column;
  }
  .tattoo-card .info {
    width: 100%;
  }
  .slideshow-container {
    width: 100%;
  }
}





/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    catalogo.css
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/*
footer {
  position: fixed;
  bottom: 0;
}*/

#catalogo {
  flex-direction: column;
  gap: calc(var(--content-padding) * 2);
  justify-content: start;
  padding: var(--content-padding) calc(var(--content-padding)*2);
  height: calc(100svh - var(--header-height) - var(--footer-height));
}

.filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-tertiary);
  padding: var(--content-padding) calc(var(--content-padding)*2);
  /*margin: var(--content-margin) 0 0 0;*/
  border-radius: 8px;
}
.filters label {
  margin-right: 0.25rem;
  font-weight: bold;
  color: var(--color-tertiary);
}
.filters select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--color-tertiary);;
  border-radius: 4px;
  background: var(--color-primary);
  color: var(--color-tertiary);
  max-width: 200px;
}

.category-filter, .location-filter, .size-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.catalogo-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: scroll;
  /*margin: var(--content-margin) 0;*/
  /*padding: 0 calc(var(--content-padding)*2);*/
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card {
  /*width: 280px;
  max-width: 400px;*/
  flex: 1 1 calc(25% - 1rem);
  background-color: var(--color-tertiary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid var(--color-tertiary);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.card:hover {
  cursor: pointer;
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;          /* 1:1 aspect for the wrapper */
  background-image: url('/resources/logos/loguito.svg');
  background-size: 60% auto; /* or use 'contain' */
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.image-wrapper img.loaded {
  opacity: 1;
}



@media (max-width: 768px) {
  .card {
    /*max-width: 200px;*/
    flex: 1 1 calc(33.33% - 1rem);
  }
  /*.filters {
    flex-direction: column;
  }*/
  .filters select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card {
    /*max-width: 120px;*/
    flex: 1 1 calc(48% - 1rem);
  }
}






.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #111;
  padding: 1rem;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: white;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.modal-content img {
  max-height: 60vh;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.modal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-primary);
}

.modal-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background-color: transparent;
}







/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    juego.css
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/


#juego {
  flex-direction: column;
  height: calc(100svh - var(--header-height) - var(--footer-height));
}


#puzzle-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#puzzle-container {
  aspect-ratio: 1/1;
  max-height: 70%;
  max-width: 80%;
  /*height: 100%;*/
  display: none; /* primero no se muestra */
  grid-gap: 2px;
  padding: 1.2rem;
}
  
#puzzle-container canvas {
  width: 100%;
  height: 100%;
  /* crop/excess parts won’t matter since it’s the exact slice */
  object-fit: cover;
  cursor: move;
}

#controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

#instagram-input {
  width: 100%;
  /*style="padding:.25em; font-size:1em;"*/
}

/*
#start-btn, #restart-btn {
  width: 100%;
  background-color: var(--color-primary) !important;
  color: black;
  padding: 0.2rem;
  margin: 0.6rem 0 0 0;
  font-weight: 800;
}
*/


#results {
  display: none;
  width: 100%;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

#ranking {
  display: flex;
  width: 100%;
  max-width: 300px;
  height: 30vh;
  padding: 0 1.2rem;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--color-primary);
  color: var(--grey);
  border-radius: 10px;
}

#ranking h3 {
  margin: 0.6rem;
}

.rank-content {
  width: 100%;
  overflow-y: scroll;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 0 0.6rem 0;
  padding: 0;
}

#rank-list {
  text-align: right;
}

#rank-list li {
  padding: 0 0.4rem;
}

#rank-list li:first-child {
  font-weight: 800;
  background-color: var(--color-primary);
  border-radius: 0.375rem;
  color: var(--color-tertiary);
}


@media (max-width: 760px) {

}





/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    disponibles.css
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

#disponibles {
  position: relative;
  width: 100vw;
  height: calc(100svh - var(--header-height) - var(--footer-height));
  overflow: hidden;
  /*background: #000; /* Optional: dark background to highlight PNGs */
  /*background-color: transparent;*/
}

.floating-tattoo {
  position: absolute;
  width: 200px; /* Adjust size as needed */
  top: 0; left: 0;       /* baseline for translate() */
  will-change: transform;
  transition: transform 0.2s;
  touch-action: none; /* Prevent scrolling on mobile touch */
}


@media (max-width: 760px) {
  .floating-tattoo {
    width: 120px;
  }
}