:root {
  --primary-color: #E8DAEF;
  /* Lavanda pastel */
  --complementary-color: #D6EAF8;
  /* Celeste pastel */
  --analog-primary-color: #FADBD8;
  /* Rosa claro pastel */
  --analog-complementary-color: #F5CBA7;
  /* Melocotón pastel */
  --triadic-color: #D5F5E3;
  /* Verde menta pastel */
  --yellow-color: 245, 239, 223;

  --secondary-color: #f7ede2;
  --light: hsl(0, 0%, 100%);

  --accent-color: #A3E4D7;
  /* Verde agua para acentos */
  --text-color: #8c2c54;
  /* Gris medio */
  --muted-color: #D5DBDB;
  /* Tonalidad suave para bordes */
  --highlight-color: #FCF3CF;
  /* Amarillo pastel */
  --logo-color: #8c2c54;

  --font-family-spartan: "League Spartan", system-ui, sans-serif;
  --font-family-1: "MuseoModerno", system-ui, sans-serif;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  background-color: rgb(var(--yellow-color));
  color: var(--text-color);
  margin: 0;
  font-family: var(--font-family-1) !important;
  font-size: 20px;
}

.font-title {
  font-family: var(--font-family-spartan);
  font-size: 48px;
  font-weight: 700;
  animation:
    enhance-header linear both,
    reduce-title linear both;
  animation-timeline: scroll(root);
  animation-range: 0 200px;
}

.font-cita {
  font-family: "Merryweather";
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: italic;
  font-size: 4em;
  text-align: center;
  margin: 16px;
}

@keyframes reduce-title {
  to {
    font-size: 20px;
    /* Tamaño más pequeño para el título */
  }
}

@keyframes reduce-title-vertical {
  to {
    font-size: 7px;
    /* Tamaño más pequeño para el título */
  }
}

@keyframes reduce-container-main {
  to {
    height: calc(100vh - 75px);
  }
}

@keyframes reduce-container-main-contact {
  to {
    height: calc(100vh);
  }
}

.color-title {
  color: var(--logo-color);
}

.container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 165px 1fr 100px;
  grid-template-areas:
    "header header header"
    "main main main"
    "footer footer footer";

  animation: enhance-header linear both;
  animation-timeline: scroll(root);
  animation-range: 0 200px;
}

@keyframes enhance-header {
  to {
    grid-template-rows: 75px 1fr 100px;
  }
}

.header {
  grid-area: header;
  background-color: var(--logo-color);
  color: var(--secondary-color);
  display: grid;
  grid-template-columns: 0.5fr 2fr 0.5fr;
  grid-template-areas: "menu title rrss";
  position: sticky;
  z-index: 2;
  top: 0;
}

.title {
  grid-area: title;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.vertical-align {
  writing-mode: vertical-lr;
  font-size: 14px;
  animation:
    enhance-header linear both,
    reduce-title-vertical linear both;
  animation-timeline: scroll(root);
  animation-range: 0 200px;
}

.menu-rrss {
  grid-area: rrss;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rrss-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  min-width: 100%;
  padding-right: 20px;
}

.icon-svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary-color);
  box-sizing: border-box;
}

.menu {
  grid-area: menu;
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu-logo {
  font-size: 46px;
}

.transparent {
  background-color: transparent;
  cursor: pointer;
  color: var(--light);
  border: none;
}

.overlay {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: var(--analog-primary-color);
  opacity: 0.9;
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  height: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay .custom-anchor {
  background-color: var(--logo-color);
  color: var(--light);

  &:hover {
    color: var(--analog-complementary-color);
  }
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: var(--text-color);
  display: block;
  transition: 0.3s;
}

.encargos {

  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay a:hover,
.overlay a:focus {
  color: var(--secondary-color);
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

.footer {
  grid-area: footer;
  background-color: var(--logo-color);
  color: var(--secondary-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  min-width: 33%;
  text-align: center;
}

.anchor-footer {
  font-size: 12px;

  &:hover {
    color: var(--complementary-color);
  }
}

.anchor-container-main {
  width: 100%;
  height: 100%;
}

.no-decorations {
  text-decoration: none;
}

.color-anchor {
  color: var(--light);
}

.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.full-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  /* Para evitar subrayados en el texto */
  color: inherit;
  /* Mantiene el color del texto */
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }

  @keyframes reduce-title {
    to {
      font-size: 20px;
      /* Tamaño más pequeño para móvil */
    }
  }

  .title-web {
    font-size: 24px;
    color: var(--light);
    animation: reduce-title linear both;
    animation-timeline: scroll(root);
    animation-range: 0 50px;
  }
}

.container-main {
  width: 100%;
  height: calc(100vh - 165px);
}

.container-main.contact {
  height: calc(100vh - 165px);
  animation:
    reduce-container-main-contact linear both;
  animation-timeline: scroll(root);
  animation-range: 0 200px;
}



.projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--second-bg-color);
  font-weight: 400;
}

.title-section {
  font-size: 100px;
}

.container-projects {
  min-width: 95vw;
  display: flex;
  justify-content: center;
  height: 500px;
  gap: 10px;
}

.anchor-project {
  display: block;
}

.container-project {
  flex: 0 0 20%;
  border-radius: 0.5rem;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: 1px 5px 15px #1e0e3e;
  position: relative;
  overflow: hidden;

  &:nth-of-type(1) {
    background: url("./images/sacro/MACARENA.jpg") no-repeat 50% / cover;
  }

  &:nth-of-type(2) {
    background: url("./images/abu.jpeg") no-repeat 50% / cover;
  }

  &:nth-of-type(3) {
    background: url("./images/conejo.jpeg") no-repeat 50% / cover;
  }

  &:nth-of-type(4) {
    background: url("./images/cristo-mitad.jpeg") no-repeat 50% / cover;
  }

  &:hover {
    flex: 0 0 25%;
    box-shadow: 1px 3px 15px #7645d8;
    transform: translatey(-30px);
  }

  &:hover .project-card {
    opacity: 0.4;
    transform: translatey(0%);
    visibility: visible;
  }
}

.project-card {
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 15px;
  opacity: 0;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  background: rgb(2, 2, 46);
  text-align: center;
  background: linear-gradient(0deg,
      rgba(2, 2, 46, 0.6755077030812324) 0%,
      rgba(255, 255, 255, 0) 100%);

  transform: translatey(100%);
  transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
  visibility: hidden;
}

.span-project {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.biography {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.description-biography {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container-biography {
  background: url(./images/vic-lat.jpeg) no-repeat 50% / cover;
  border-radius: 25px 0 0 25px;
  overflow: hidden;
  height: 100%;
  width: 50%;
  background-position: 0% 5%;
}

.description-paragraph {
  padding: 32px;
}

.boton-biography {
  background-image: linear-gradient(to right, var(--primary-color), var(--analog-primary-color));
  border-color: var(--analog-complementary-color);
  border-radius: 25px;
  padding: 12px 32px 12px 32px;
  margin-top: 8px;
  border: 1px solid;

  color: var(--text-color-white);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  transition: box-shadow 0.3s ease-in-out;

  &:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to right, var(--primary-color), var(--analog-primary-color));
  }

  &:active {
    transform: scale(0.9);
  }
}

.boton-encargos {
  background-image: linear-gradient(to right, var(--primary-color), var(--analog-primary-color));
  border-color: var(--analog-complementary-color);
  border-radius: 25px;
  padding: 12px 32px 12px 32px;
  margin-top: 8px;
  border: 1px solid;

  color: var(--text-color-white);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  transition: box-shadow 0.3s ease-in-out;

  &:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to right, var(--primary-color), var(--analog-primary-color));
  }

  &:active {
    transform: scale(0.9);
  }
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
}

.instagram-media {
  height: 600px;
  width: 40%;
  border-radius: 25px;
}

.contact-instagram {
  display: flex;
  flex-direction: row;
  gap: 10px;
}



.title-contact {
  font-size: 120px;
}

.laminas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.laminas-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80%;
  gap: 32px;
  padding: 16px;

}

.lamina {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-color: var(--logo-color);
  border-radius: 0%;
  border-style: inset;
  text-align: center;
}

.lamina-img {
  width: 70%;
  height: 70%;
}

.press {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.press-image {
  width: 100%;
  height: 100%;
  background-image: url(images/vicprensa.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  overflow: hidden;
}

.slider {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: center;
}

.slider-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 90%;
  transition: left 0.4s;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.slider-contents {
  height: 100%;
  width: 100%;
  text-align: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  /*background-color: #f2ead3;*/
}

.slider-content1 {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.wellcome-image {
  height: 100%;
  width: 50%;
  background: url(images/vic-paint.jpeg) no-repeat 50% / cover;
  mask-image: linear-gradient(var(--second-bg-color) 80%,
      transparent);
}

.center {
  text-align: center;
}

.wellcome-description {
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: justify;
  justify-content: center;
  padding: 32px;
}

.slider-content2 {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slider-projects {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.slider-projects-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 15%;
}

.slider-projects-anchor {
  width: 100%;
  height: 85%;
}

.slider-projects-img {
  width: 0px;
  flex-grow: 1;
  object-fit: cover;
  /*opacity: .8;*/
  transition: .5s ease;

  &:hover {
    cursor: crosshair;
    width: 300px;
    opacity: 1;
    filter: contrast(120%);
  }
}

.slider-content3 {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.next-envents-description {
  height: 100%;
  width: 50%;
}

.next-events-image {
  height: 100%;
  width: 50%;
  background: url(images/prox_evento.png) no-repeat 50% / contain;
  object-fit: contain;
  mask-image: linear-gradient(var(--second-bg-color) 80%,
      transparent);
}

.slider-content4 {
  height: 75%;
  width: 70%;
  background: url(images/triana.jpeg) no-repeat 50% / cover;
  object-fit: cover;
  border: #ecf0f3;
  border-style: solid;
  border-width: 25px;
}

.slider-nav {
  width: 12px;
  height: 12px;
  margin: 2rem 12px;
  border-radius: 50%;
  z-index: 1;
  outline: 6px solid #ccc;
  outline-offset: -6px;
  box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  cursor: pointer;
  appearance: none;
  backface-visibility: hidden;
}

.slider-nav:checked {
  animation: check 0.4s linear forwards;
}

.slider-nav:checked:nth-of-type(1)~.slider-inner {
  left: 0%;
}

.slider-nav:checked:nth-of-type(2)~.slider-inner {
  left: -100%;
}

.slider-nav:checked:nth-of-type(3)~.slider-inner {
  left: -200%;
}

.slider-nav:checked:nth-of-type(4)~.slider-inner {
  left: -300%;
}

@-webkit-keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }

  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}

@keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }

  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}

.title-project {
  margin-bottom: 100px;
}

@media screen and (max-width: 681px) {

  .container {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 90px 1fr 120px;
    grid-template-areas:
      "header header header"
      "main main main"
      "footer footer footer";

    animation: enhance-header linear both;
    animation-timeline: scroll(root);
    animation-range: 0 50px;
  }

  @keyframes enhance-header {
    to {
      grid-template-rows: 90px 1fr 120px;
    }
  }

  .header {
    text-align: center;
    padding-top: 12px;
    width: 100vw;
  }

  .title-web {
    font-size: 24px;
    color: var(--light);
  }

  .vertical-align {
    writing-mode: vertical-lr;
    font-size: 8px;
  }

  .icon-svg {
    width: 15px;
    height: 15px;
    margin: 2px;
    fill: var(--light);
    box-sizing: border-box;
  }

  .main {
    width: 100vw;
  }

  .projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    font-weight: 400;
  }

  .title-project {
    max-width: 100%;
    text-align: center;
  }

  .title-section {
    font-size: 50px;
  }

  .container-projects {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 10px;
  }

  .container-project {
    width: 100%;
    flex: 0 0 20%;
    border-radius: 0px;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #1e0e3e;
    position: relative;
    overflow: hidden;

    &:nth-of-type(1) {
      background: url("./images/sacro/MACARENA.jpg") no-repeat 50% / cover;
    }

    &:nth-of-type(2) {
      background: url("./images/abu.jpeg") no-repeat 50% / cover;
    }

    &:nth-of-type(3) {
      background: url("./images/conejo.jpeg") no-repeat 50% / cover;
    }

    &:nth-of-type(4) {
      background: url("./images/cristo-mitad.jpeg") no-repeat 50% / cover;
    }

    &:hover {
      flex: 0 0 40%;
      box-shadow: 1px 3px 15px #7645d8;
      transform: translatey(-5%);
    }


  }

  .project-card {
    opacity: 0.4;
    transform: translatey(0%);
    visibility: visible;
  }

  .span-project {
    display: block;
    margin-top: 5px;
    font-size: 1.2rem;
  }

  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-instagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .instagram-media {
    height: 600px;
    width: 200px;
    border-radius: 25px;
  }

  .title-contact {
    font-size: 50px;
  }


  .slider-content1 {
    display: flex;
    flex-direction: column;
  }

  .wellcome-image {
    width: 90%;
  }

  .wellcome-description {
    width: 90%;
  }

  .container-main {
    height: calc(150dvh - 90px);
  }

  .slider-content3 {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .next-envents-description {
    height: 50%;
    width: 100%;
  }

  .next-events-image {
    height: 50%;
    width: 100%;
  }

  .slider-content4 {
    height: 100%;
    width: 100%;
    border: none;
    background: url(images/triana.jpeg) no-repeat 50% / contain;
    object-fit: contain;
  }

  .slider-projects {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .slider-projects-img {
    width: 100%;
  }

  .biography {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 400;
  }

  .font-cita {
    font-size: 2em;
  }

  .description-biography {
    width: 100%;
    height: 50%;
  }

  .container-biography {
    background: url(./images/vic-lat.jpeg) no-repeat 50% / cover;
    border-radius: 25px;
    overflow: hidden;
    height: 100%;
    width: 90%;
    margin: 5px;
  }



  .container-main.projects {
    min-height: calc(200dvh - 165px);
    animation:
      reduce-container-main linear both;
    animation-timeline: scroll(root);
    animation-range: 0 200px;
  }

  .container-main.laminas {
    min-height: calc(450dvh - 120px);
    width: 100%;
    animation:
      reduce-container-main linear both;
    animation-timeline: scroll(root);
    animation-range: 0 200px;
    justify-content: space-around;
    text-align: center;
  }

  .container-main.contact {
    min-height: 225dvh;
    animation:
      reduce-container-main-contact linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100px;
  }

  @keyframes reduce-container-main-contact {
    to {
      height: calc(140vh);
    }
  }

  .description-paragraph {
    padding: 16px;
  }

  .rrss-menu {
    padding-right: 10px;
  }

  .footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .footer-div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
  }

  .laminas-div {
    flex-direction: column;
  }

  .lamina {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-color: var(--logo-color);
    border-radius: 0%;
    border-style: inset;
  }

  .lamina-img {
    width: 100%;
    height: 100%;
  }

  .press {
    display: none;
  }

}
/*

@media screen and (max-width: 680px) and (min-width: 500) {
  .contact-instagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .container-main.contact {
    height: 100vh;
    animation:
      reduce-container-main-contact linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100px;
  }

  @keyframes reduce-container-main-contact {
    to {
      height: calc(170vh);
    }
  }

}*/