:root {
    --negro: #191717;
    --white: #FFFFFF;
    --cafe : #7f674d;
    --back: #F9F6F0;
    --cafe_back: #85695a;
    --background_ind: #a29859;
    --width: 250px;
    --cafe_text: #b1937e;
    --cafe_footer: #825f3e;
    --amarillo_claro: #f4f4f2;
    --azul_oscuro: #212529;
    --naranja_apagado: #b09c75;
    --sombra: rgba(112,112,112,0.48);
    --naranja_claro: #e1cec3;
    --cafe_claro: #bfa98a;
    --cafe_back: #DECEBB;
    --rose: #ffd8f4;
}

/* Globales */
html{
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
}
/* Tipografia */
h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 2.8rem;
}
h3 {
    font-size: 1.8rem;
    color: var(--negro);
}
h1,h2,h3 {
    text-align: center;
}
p {
    color: var(--white);
    font-size: 17px;
}
.libertinus {
  font-family: "Libertinus Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--azul_oscuro);
}
.serif {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}
.aboreto {
  font-family: "Aboreto", system-ui;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

/* Navegacion Principal */
.header {
    margin-top: 0;
    padding: 1rem 2rem;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    position: fixed;
    align-items: center;
    z-index: 1000;
}
.header a {
    color: var(--white);
}
body {
    font-size: 16px;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--white);
    width: 100%;
    margin: 0;
    padding: 0;
}
.contenedor {
    max-width: 100%;
    margin: 0.2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bg-light {
    background-color: var(--amarillo_claro);
}
.bg-dark {
    background-color: var(--cafe_back);
}
.bg-rose {
    background-color: var(--rose);
}
.sombra {
    box-shadow: 0px 5px 15px 0px var(--sombra);
    padding: 1rem;
    border-radius: 1rem;
}
@media(max-width: 768px) {
    .hero {
        height: auto;
        padding: 2rem 0;
        background-position: left center;
    }
    .heroo {
        height: auto;
        padding: 2rem 0;
        background-position: left center;
    }
    .contenido-hero {
        margin-bottom: 0.5rem;
        padding-top: 3rem;
    }
    .contenido-hero .h1 {
        font-size: 60px;
    }
    .contenido-heroo .h2 {
        font-size: 50px;
    }
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    .contenedor h1 {
        font-size: 4.5rem;
    }
    .mean {
        width: fit-content;
        width: 75%;
    }
}
/* Hero */
.hero {
    background-image: url(../img/rut.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    height: 100vh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.contenido-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
    text-decoration: none;
}
.contenido-hero h1 {
    font-weight: 400; 
    font-family: "Libertinus Sans", sans-serif;
    font-style: normal;
    font-size: 80px;
    margin-bottom: 1rem;
    text-transform:capitalize;
}
.contenido-hero h3 {
    font-size: 2rem;
    text-transform:capitalize;
    font-weight: 700;
    color: var(--azul_oscuro);
}
/* Middle */
.mean {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding-bottom: 3rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.mean h1 {
    font-size: 4rem;
    color: var(--azul_oscuro);
    text-align:center;
}
.imag {
    background-image: url(../img/rut3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    position: relative;
    border-radius: 2rem;
    width: 80%;
    align-items: center;
    height: auto;
    min-height: 350px;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    height: 40vw;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .imag {
        width: 80%;
        max-width: 900px;
        height: 50vw;
        max-height: 70rem;
        min-height: 350px;
        background-position: center center;
    }
    .imgs {
        align-self: center;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 2rem;
    }
}
.text h1 {
    text-align: center;
    width: 100%;
}
.text p {
    margin-top: 0;
    font-size: 2.5rem;
    color: var(--azul_oscuro);
}
@media (min-width: 768px) {
    .mean {
        grid-template-columns: repeat(2, 1fr);
    }
}
.imgs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 8rem;
}
.imgs img {
    width: auto;
    height: auto;
    max-width: 310px;
    max-height: 350px;
    border-radius: 2rem;
}
@media (min-width: 1024px) {
    .imgs {
        grid-template-columns: repeat(2, 1fr);
    }
    .text h1 {
        font-size: 8rem;
    }
}
@media (max-width: 768px) {
    .imgs {
        gap: 2rem;
    }
    .text h1 {
        font-size: 5rem;
    }
    .heroo {
        background-position: left center;
    }
    .text p {
        font-size: 2.2rem;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .text h1 {
        font-size: 6rem;
    }
    .contenido-hero .h1 {
        font-size: 60px;
    }
}
.imagg {
    background-image: url(../img/rut5.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    position: relative;
    border-radius: 2rem;
    width: 80%;
    align-items: center;
    height: auto;
    min-height: 350px;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    height: 40vw;
}
/* Heroo */
.heroo {
    background-image: url(../img/rutser.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 5% bottom;
    position: relative;
    height: 70vh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.contenido-heroo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.contenido-heroo a {
    text-decoration: none;
}
.contenido-heroo h2 {
    font-weight: 400; 
    font-family: "Libertinus Sans", sans-serif;
    font-style: normal;
    font-size: 60px;
    width: 100%;
    text-transform: initial;
    text-align: center;
    margin: 0 auto;
}
.boton {
    display: inline-block;
    color: var(--white);
    margin: 0.8rem 0;
    text-align: center;
    border-radius: 3rem;
    transition: all 0.34s ease;
    text-decoration: none;
    font-size: 24px;
    text-transform: initial;
    justify-content: center;
    border: none;
    background-color: var(--cafe);
    padding: 0.3em 0.5em;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    align-self: center;
}
.boton:hover {
    transform: translateY(-6px);
    cursor: pointer;
    background-color: var(--cafe_back);
    color: var(--black);
}
@media (max-width: 768px) {
   .boton h2 {
       font-size: 2rem !important;
   }
   .heroo {
       height: 35vh;
   }
   .contenido-heroo {

       align-items: flex-start;
       justify-content: flex-start;
       padding-top: 2rem;
   }
}
/**Menu**/
.button-container {
  display: flex;
  width: 80%;
  height: 70px;
  align-items: center;
  justify-content: space-evenly;
}
.button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.button:hover {
  transform: translateY(-3px);
  color: var(--negro);
  width: 100%;

}
.icon {
  width: 28px !important;
  height: 28px !important;
}
.menu {
    line-height: 1.6;
    color: var(--white);
    width: fit-content;
    display: flex;
    list-style: none;
    width: auto;
    position: relative;
    margin: 0;
}
.menu a {
    text-decoration: none;
    color: var(--negro);
    font-size: 20px;
    line-height: inherit;
    transform: translateX(-12px);
}
.menu .link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: fit-content;
}
.menu .link::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu .item {
    position: relative;
}
.menu .item .submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    justify-content: left;
    top: 100%;
    border-radius: 5px 5px 16px 16px;
    left: 50%;
    width: 100vw;
    overflow: hidden;
    border: 1px solid var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-12px);
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    list-style: none;
    z-index: 9999999;
}
.menu .item:hover .submenu {
    width: 235px;
    left: 30%;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    border-color: var(--white);
    background-color: var(--cafe_back);
    z-index: 99999;
    justify-content: left;
    color: var(--white);
}
.menu .item:hover .link {
    color: var(--white);
    border-radius: 16px 16px 0 0;
}
.menu .item:hover .link::after {
    transform: scaleX(1);
    transform-origin: right;
}
.menu .item:hover .link svg {
    fill: #ffffff;
    transform: rotate(-180deg);
}
.submenu .submenu-item {
    width: 100%;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}
.submenu .submenu-link {
    display: block;
    padding: 16px 20px;
    width: 100%;
    position: relative;
    text-align: left;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 14px !important;
    color: var(--negro);
    background: transparent;
    border-radius: 8px;
    /* Aseguramos que el texto esté por encima del pseudo-elemento */
    z-index: 1; 
}
.submenu .submenu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cafe_back);
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    /* Colocamos el pseudo-elemento detrás del texto */
    z-index: -1; 
}
.submenu .submenu-link:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}
.submenu .submenu-link:hover {
    color: var(--white);
}
.box {
  width: 50px;
  height: 50px;
  float: left;
  transition: .5s linear;
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 0;
  text-align: center;
  margin: 0;
  background: transparent;
  text-transform: uppercase;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}
.box:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(100%);
}
.box:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(-100%);
}
.box:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: var(--negro);
}
.box:hover:before {
  border-color: var(--white);
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .3s;
}
.box:hover:after {
  border-color: var(--white);
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .5s;
}
button {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
}
@media (min-width: 768px) {
    .submenu .submenu-link {
        padding: 12px 16px;
        font-size: 16px !important;
    }
    .menu .item:hover .submenu {
        width: 250px;
        left: 30%;
        transform: translateX(-50%) translateY(0);
    }
}

/** Footer **/
.footer {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    text-align: center;
}
