: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-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-contact {
  min-width: 100%;
  min-height: 10%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
}


.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;
}

.icon-svg-contact {
  width: 50px;
  height: 50px;
  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;
}

.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.encargos {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 16px 16px;
}

.horizontal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

.contact-block {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
}

.contact-subblock {
  display: flex;
  flex-direction: column;
  width: 600px;
  height: 750px;
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  background: var(--muted-color);
  color: var(--text-color);
  box-shadow: 0.5px 0.5px 10px var(--light), -0.5px -0.5px 10px var(--light);
  margin: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 32px
}

.formulario-padre {
  width: 100%;
  height: 100%;
  display: flex;
  text-align: center;
  justify-content: right;
  align-items: center;
  overflow: hidden;
}

.form {
  position: relative;
  width: 600px;
  height: 750px;
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  background: var(--logo-color);
  color: var(--light);
  box-shadow: 0.5px 0.5px 10px var(--light), -0.5px -0.5px 10px var(--light);
  margin: 16px;
  justify-items: center;
}

.policy {
  font-size: 12px;
  text-align: justify;
  justify-content: center;
  max-width: 375px;
}

.policy a {
  color: var(--light);
}

.policy-check {
  font-size: 14px;
}

.input {
  background-color: #fdfdfd;
  border: none;
  box-sizing: border-box;
  padding: 10px;
  width: 375px;
  font-family: "Onest", system-ui, sans-serif;
  border-radius: 25px;
  font-size: 20px;
}


.input-div {
  margin: 16px;
  box-sizing: border-box;
}

input[type=file]::file-selector-button {
  padding: 10px;
  border: 2px solid var(--light);
  border-radius: 5px;
  color: var(--light);
  background: linear-gradient(to right, var(--primary-color), var(--analog-primary-color));
  cursor: pointer;
  font-weight: bolder;
  transition: transform 0.3s ease-in-out;
  transition: background 0.1s ease-in-out;
  transition: box-shadow 0.3s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, var(--analog-primary-color), var(--primary-color));
}

input[type=file]::file-selector-button:active {
  transform: scale(0.9);
}

.message {
  min-height: 200px;
}

.font-class {
  font-family: var(--font-family-1);
}

.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);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  transition: box-shadow 0.3s ease-in-out;

  &:hover {
    box-shadow: 0px 8px 16px rgba(245, 239, 223, 0.2);
    background-image: linear-gradient(to right, var(--light), var(--analog-primary-color));
  }

  &:active {
    transform: scale(0.9);
  }
}

.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);
}


@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;
  }

  .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;
  }

  .horizontal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
justify-content: center;
align-items: center;  
}

.contact-block {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.contact-subblock {
  display: flex;
  flex-direction: column;
  width: 95%;
  height: 100%;
  border-radius: 20px;
  padding: 5px;
  box-sizing: border-box;
  background: var(--muted-color);
  color: var(--text-color);
  box-shadow: 0.5px 0.5px 10px var(--light), -0.5px -0.5px 10px var(--light);

}



.form {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  padding: 16px;
  box-sizing: border-box;
  background: var(--logo-color);
  color: var(--light);
  box-shadow: 0.5px 0.5px 10px var(--light), -0.5px -0.5px 10px var(--light);
  justify-items: center;
  align-items: center;
  margin: 0px 16px;
}

.formulario-padre {
  min-height: 150vh;
  width: 95%;
  justify-content: center;
}

.box{
  width: 95%;
}

.input {
  width: 100%;
}

.message {
  min-height: 350px;
}

}

@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;
  }
}