:root {
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --black: black;
  --primary: #fab10c;
  --secondary: #333136;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );

  --gaps: 1rem;
  --paddings: 1rem;
}

body {
  font-family: var(--font-sans-serif);
  background-color: var(--white);
  overflow-x: hidden;
  text-align: right;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*::::::::::::::: GALLERY :::::::::::::::*/

/*
.gallery {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: normal;
  width: 100vw;
  padding: 1rem;
  
  gap: 1rem;
}

.picture {
  
  overflow: hidden;
  max-height: 100vh;
  max-width: 23vw;
}
*/

.masonry {
  overflow: hidden;
  column-gap: 1rem;
  column-fill: initial;
  padding: 1rem;
}

.brick {
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
  max-height: 100vh;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 2s;
}

.brick img,
video.brick {
  width: 100%;
  height: auto;
  object-fit: contain;
}
iframe.brick {
  width: 100%;
  height: 80vh;
  transform: translate3d(0, 0, 0);
  border: none;
outline: 1px solid var(--gray);
}

/* masonry on tablets */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .masonry {
    column-count: 2;
  }
}

/* masonry on big screens */
@media only screen and (min-width: 1024px) {
  .masonry {
    column-count: 3;
  }
}

/*::::::::::::::: HEADER :::::::::::::::*/

.header {
  font-family: "Playfair Display", serif;
  text-align: left;
  flex-direction: column;
}

.header,
.footer {
  display: flex;
  background-color: var(--white);
  height: 3rem;
}

/* header mobile */
@media only screen and (min-width: 460px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.header .nav {
  position: relative;
}

.a {
  text-decoration: none;
  color: var(--gray);
  cursor: pointer;
}

.header .nav .a{
  padding: 0 2rem;
  z-index: 20;
}
.footer .a {
  padding: 0 1rem;
}

.header .nav .active {
  font-weight: bold;
}

.header .logo {
  z-index: 1000;
  width: 100px;
  height: auto;
}

.header .name {
  font-size: 1.5rem;
  padding-left: 0.9rem;
  margin-left: 1rem;
  box-shadow: 0.5rem 0 inset #f0f0f0;
}

.footer .a:hover {
  color: black;
}

.footer .a:hover .icon {
  fill: black;
}

.icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  margin-bottom: -0.1rem;
  fill: var(--gray);
}
/*::::::::::::::: IMG INTRO :::::::::::::::*/

.img.intro {
  width: auto;
  height: 70vh;
}

/*::::::::::::::: SLIDER :::::::::::::::*/

.slider {
  width: 100%;
  height: calc(100vh - 2rem);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: center;
}

.radio {
  /*position: relative;
  top: 80%;
  left: 50%;*/
  width: 1rem;
  height: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 2rem 0.5rem;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  appearance: none;
  backface-visibility: hidden;
}

.radio:checked,
.radio:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 1);
  box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);

  animation: check 0.4s linear forwards;
}
.radio:checked:nth-of-type(1) ~ .slides {
  left: 0%;
}
.radio:checked:nth-of-type(2) ~ .slides {
  left: -100vw;
}
.radio:checked:nth-of-type(3) ~ .slides {
  left: -200vw;
}
.radio:checked:nth-of-type(4) ~ .slides {
  left: -300vw;
}

.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 400vw;
  height: 100%;
  transition: left 0.4s;
  display: flex;
  flex-flow: row nowrap;
}

.slide {
  position: relative;
  width: 100vw;
  text-align: right;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}

.slide div {
  margin-left: -1rem;
  width: 80vw;
}

.slide .button {
  appearance: none;
  border: none;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  color: var(--white);
  background-color: var(--gray-dark);
  align-self: center;
}
.slide .title,
.slide p {
  max-width: 35rem;
  margin: auto;
}

.slide .title {
  color: var(--gray);
  width: 100%;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 1rem;
}

.slide p {
  line-height: 1.5rem;
}

@keyframes check {
  50% {
    box-shadow: 0 0 0 0.2rem #333, 0 0 0 0.5rem rgba(51, 51, 51, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}

.round-shape-bg {
  background-image: url(./images/round-shape.svg);

  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/*::::::::::::::: FOOTER :::::::::::::::*/

.footer {
  display: flex;
  justify-content: flex-end;
}

/*::::::::::::::: UTILITIES :::::::::::::::*/
.halfwidth {
  width: 50vw;
}
.halfheight {
  height: 50%;
}

.sticky {
  position: absolute;
  width: calc(100vw - 1rem);
  top: 1.5rem;
  left: 0;
  z-index: 50;
}

/*::::::::::::::: MEDIA QUERIES :::::::::::::::
@media screen and (min-width: 800px) {
  .section.galery .picture{
    width: 50vw;
  }
  
}
*/

/*::::::::::::::: PICTURES AND IMAGES :::::::::::::::*/

@keyframes lazy-kf {
  from {
    opacity: 0;
    filter: saturate(0);
  }
  to {
    opacity: 1;
    filter: saturate(1);
  }
}

img[loading="lazy"] {
  animation: lazy-kf 5s;
}

/*::::::::::::::: PICTURES AND IMAGES :::::::::::::::*/

.suggestion {
  padding: 1rem;
  margin: 0;
  width: 100%;
  height: 2rem;
  position: absolute;
  top: 0;
  z-index: 1;
}

/*::::::::::::::: I18N :::::::::::::::*/
.lang_switch {
  margin: 0;
  padding: 0;
  height: 0;
  width: 0;
  line-height: 1rem;
  appearance: none;
}

.lang_switch + label {
  cursor: pointer;
  /*float: right;*/
  border-radius: 0 0 0.25rem 0.25rem;
  font-size: 1rem; /* Tamaño del texto de las pestañas */
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  padding: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 2000;
}
.lang_switch + label ~ label {
  margin-right: 1rem;
}

.lang_switch:checked + label {
  background: #f1f1f1; /* Fondo de las pestañas al presionar */
  color: #444; /* Color de las pestañas al presionar */
}

.lang_switch:hover + label {
  color: black;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

:lang(es),
:lang(en),
:lang(pt) {
  display: none;
  opacity: 0;
  transition: all linear 1s;
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lang_switch#es:checked ~ * *:lang(es),
.lang_switch#en:checked ~ * *:lang(en),
.lang_switch#pt:checked ~ * *:lang(pt) {
  display: block;
  opacity: 1;
  animation: appear 1s ease forwards;
}
