: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));
  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(--text-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);
}

.main {
  grid-area: main;
  padding: 20px 60px;
}

.container-title{
  background-color: var(--muted-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0.5px 0.5px 10px #cbced1, -0.5px -0.5px 10px white;
  border-radius: 20px;
  overflow: hidden;
}

.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);
  }
}

.instagram-media {
  min-height: 100%;
  min-width: 500px;
  border-radius: 25px;
}

.contact-instagram {
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 700px;
  min-width: 100%;
}

.image-container{
  display: flex;
  text-align: center;
  justify-content: center;
  overflow: hidden;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-news {
  padding: 20px;
  font-size: 32px;
}

.description-news {
  padding: 20px;
  text-align: justify;
  font-size: 20px;
}

.more-information{
  --background: linear-gradient(to right bottom, var(--analog-primary-color), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;  
  min-height: 100px;
  max-width: 350px;
  font-size: 20px;
}

.link-1 {
  color: var(--light);
  background: var(--background);
  box-shadow: .4rem .4rem 2.4rem .2rem rgba(57, 83, 89, 0.2);
  border-radius: 100rem;
  padding: 1rem 2.6rem;
  transition: .2s;
}

.link-1:hover,
.link-1:focus {
  transform: translateY(-.2rem);
  box-shadow: 0 0 4.4rem .2rem rgba(57, 83, 89, 0.4);
}

.news {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.news-container {
  width: 100%;
  height: 500px;
  border-radius: 25px;
  overflow: hidden;
}

@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;
  }
}

@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;
  }

  .main {
    padding: 0px;
  }

  .container-title {
    box-shadow: none;
    border-radius: 0px;
    flex-direction: column;
  }

  .image-container {
    width: 100%;
  }

  .news {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
    justify-content: center;
    align-items: center;
  }

  .news-container {
    
    width: 90%;
    height: 300px;
  }

  .title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .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;
  }

  .instagram-media {
  min-height: 100%;
  min-width: 500px;
  border-radius: 25px;
}

.contact-instagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 700px;
  min-width: 100%;
}

}



