:root {
    --negro: #191717;
    --white: #FFFFFF;
    --cafe : #7f674d;
    --cafe_claro: #bfa98a; /* Agregado para service-button */
    --back: #F9F6F0;
    --cafe_back: #DECEBB;
    --background_ind: #a29859;
    --width: 250px;
    
    --black: #191717;
    --white: #FFFFFF;
    --cafe : #7f674d;
    --back: #F9F6F0;
    --cafe_back: #85695a;
    --background_ind: #a29859;
    --width: 250px;
    --cafe_text: #b1937e;
    --cafe_footer: #825f3e;
    --naranja_claro: #e1cec3;
    --naranja: #df8543;
    --amarillo_claro: #f4f4f2;
    --azul_oscuro: #212529;
    --naranja_apagado: #b09c75;
    --sombra: rgba(112,112,112,0.48);
    --cafe_claro: #bfa98a;
    --cafe_back: #DECEBB;
    --dark: #85695a;
}

/* 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(--negro);
    font-size: 17px;
}
.im, .certifications-list{
    color: var(--negro);
    font-size: 2.2rem;
    text-align: left;
}
.libertinus {
  font-family: "Libertinus Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.serif {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
    font-style: normal;
}
.aboreto {
  font-family: "Aboreto", system-ui;
  text-transform: uppercase;
  font-weight: 400;
    font-style: normal;
}

/* 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;
    background-color: var(--white);
    width: 100%;
    margin: 0;
    padding: 0;
}
.contenedor {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: var(--cafe_back) !important;
    grid-template-columns: 1fr 1fr;
}
.img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2rem;
}
.sombra {
    box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    background-color: var(--white); 
    padding: 2rem;
    border-radius: 1rem;
}

@media(max-width: 768px) {
    .boton {
        width: 30%;
        margin-top: 1.5rem;
        padding: 0.8rem 2rem;
        font-size: 1.6rem;
    }
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    .contenido-hero {
        padding-top: 3rem;
    }
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    .contenido-hero h2 {
        margin-bottom: 0.5rem;
        font-size: 2.5rem;
    }
    .contenido-hero h1 {
        font-size: 5rem !important;
    }
    .ubicacion {
        margin: 0.5rem 0;
    }
    .ubicacion svg {
        width: 32px;
        height: 32px;
    }
}
/* Hero */
.hero {
    background-image: url(../../img/vid.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;
}
.contenido-hero h1 {
    font-size: 8rem;
    margin-bottom: 1rem;
}
.contenido-hero p {
    font-size: 2.5rem;
}
.ubicacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}
.boton {
    background-color: var(--cafe);
    color: var(--white);
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform:capitalize;
    font-weight: bold;
    border-radius: 2rem;
    width: 200px;
    text-align: center;
    border: none;
    margin:5px 0;
}
.boton:hover {
    cursor: pointer;
    background-color: var(--cafe_back);
    color: var(--negro);
}
/* Sobre mi */
.aboutme h1 {
    margin-top: 0;
}
.aboutme h1, .certificates h2, .services h2 {
    font-size: 6rem;
}
.aboutme h3, .certificates h4 {
    font-size: 3rem;
}
.aboutme .content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem 1.5rem;
    align-items: center;
}
/* Certificaciones */
.certificates {
    padding: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    background-color: #f9f6f0;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.certificates h2,
.certificates h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--black);
}
.certificates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
}
.certifications-list {
    list-style: circle inside;
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.certifications-list li {
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 1rem;
    position: relative;
}
.imag {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .certifications-list {
        font-size: 1.5rem;
        line-height: 1.6;
    }
    .imag {
        max-width: 100%;
        height: auto;
    }
}

/*Menu nutri*/
.services {
    padding: 2rem;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.service-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service-button {
    display: block;
    padding: 1rem;
    background-color: var(--cafe_claro);
    color: var(--negro);
    text-align: center;
    font-size: 1.7rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.service-button:hover {
    background-color: var(--cafe);
    color: var(--white);
    transform: translateY(-3px);
}
.dropdown-service {
    position: relative;
}
.dropdown-btn {
    width: 100%;
}
.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 2rem;
    z-index: 1;
}
.dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--negro);
    text-decoration: none;
    transition: background-color 0.3s;
}
.dropdown-content a:hover {
  background-color: var(--cafe);
  color: var(--negro);
  border-radius: 2rem;
}
.dropdown-service:hover .dropdown-content {
    display: block;
}
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .service-column {
        gap: 1.5rem;
    }
    .aboutme .content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem 1.5rem;
    }
}

/**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(--black);
  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(--black);
    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(--black);
    background: transparent;
    border-radius: 8px;
    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);
    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(--black);
}
.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;
}


