:root {
  --auxiliary-bg-color: #ecf0f3;
  --second-bg-color: #100721;
  --light: hsl(0, 0%, 100%);
  --dark: #0D0D0D;

  --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;
  
  --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));
  margin: 0;
  font-family: var(--font-family-1);
  color: var(--text-color);
  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;
}

@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);
  }
}

.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: 1;
  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 a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: var(--logo-color);
  display: block;
  transition: 0.3s;
}

.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);
  }
}

.no-decorations{
  text-decoration: none;
}


.color-anchor {
  color: var(--light);
}

.color-title {
  color: var(--text-color);
}

.main {
  grid-area: main;
}

.section-gallery {
  columns: 2;
  padding: 16px 32px 75px;
  column-gap: 32px;
}

.section-gallery img {
  border-radius: 10px;
  width: 100%;

  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
}

.card-project {
  border-radius: 25px;
  background-color: var(--analog-primary-color);
  margin-bottom: 32px;
  width: 100%;
  height: 500px;
  box-shadow: 0.5px 0.5px 10px #cbced1, -0.5px -0.5px 10px white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
}

.image-project {
  border-radius: 25px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0.5px 0.5px 10px #cbced1, -0.5px -0.5px 10px white;
}

.img-project-1{
  height: 100%;
  width: 100%;
  object-fit: cover;
  background-color: #0D0D0D;
  object-position: 20% 65%;
}

.img-project-2{
  height: 100%;
  width: 100%;
  object-fit: cover;
  background-color: #0D0D0D;
  object-position: 100% 40%;
}

.img-project{
  height: 100%;
  width: 100%;
  object-fit: cover;
  background-color: #0D0D0D;
  object-position: 100% 30%;
}

.title-project {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.description-project {
  border-radius: 25px;
  width: 450px;
  height: 128px;
  display: flex;
  align-items: top;
  justify-content: center;
  text-align: justify;
  padding: 15px 5px 0 5px;
}

@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;
  }
}



@keyframes reveal {
  from {
      opacity: 0;
      translate: 0 100px;
      scale: .5;
  }

  to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
  }
  
}

@media screen and (max-width: 450px) {

  .container {
    min-height: 100vh;
    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;
    min-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;
  }

  .section-gallery {
    columns: 1;
    padding: 50px 10px 0px;
    column-gap: 0px;
  }

  .description-project {
    width: 90%;
    height: 200px;
  }

  .card-project {
    overflow: hidden;
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 25%;
  }

  .image-project {
    border-radius: 0px;
    width: 100%;
    height: 90%;
  }

  .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;
  }
}