/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Nunito:wght@400;700&display=swap');


:root{
    --padding--container:100px 0;
    --color--title: #6F5DEF;
}
/* Estilos base */
body {
    font-family: 'Nunito', sans-serif;
}

/* Clase para usar Montserrat */
.montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Ejemplo de encabezados con Montserrat */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Ejemplo de párrafos con Nunito (opcional, ya lo aplica body) */
p {
    font-family: 'Nunito', sans-serif;
}


.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding--container);
}
.container-cart{
    transition:transform .5s;
}



.hero{
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 160px 1fr;
    color: #ffffff;

}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: opacity 1s ease-in-out;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.hero-bg-layer.fade-out {
  opacity: 0;
}

.hero_container {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
   padding-bottom: 40px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*NAV*/

.nav{
    --padding--container:0;
    height: 100%;
    display: flex;
    align-items: center;
  
}
.nav_title{
    font-weight: 300;
    color:#fff;
}
.nav_link{
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}
.nav_items{
    list-style: none;
}

.nav_links{
    color:#ffffff;
    text-decoration: none;
}
.nav_menu{
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav_img{
    display: block;
    width: 30px;
}
.nav_logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre logo y texto */
}

.nav_close{
    display: var(--show,none);
}

.cart{
   width: 25px; 
    position: relative;
    right:15px;

}

 .icon-cart {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9999; /* También parte de Solución #3 */
}

.icon-cart a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px; /* Horizontal sí, vertical no */
  height: 100%;
}

.icon-cart img.cart {
  width: 25px;
  height: auto;
}
 .icon-cart span{
    font-size: 13px;
    display: flex;
    width: 13px;
    background-color: #6F5DEF;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 50%;
    position: absolute;
    top:50%;
    right:15px; 

}

/*Hero container*/

.hero_container{
    max-width: 800px;
    display: grid;
    --padding--container:0;
    grid-auto-rows: max-content;
    align-content: center;
    gap:1em;
    padding-bottom: 100px;
    text-align: center;
}

.hero_title{
    font-size: 3rem;
}

.hero_paragraph{
    margin-bottom: 20px;
}
.cta{
    display: inline-block;
    background-color: #6F5DEF;
    justify-self: center;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 32px;
}


/*About*/
.about{
    text-align: center;
    
}
.subtitle{
    color:var(--color--title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about_paragraph{
    line-height: 1.7;
}
.about_main{
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit,minmax(260px,auto));
}

.about_icons{
    display: grid;
    gap:1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about_icon{
    width: 40px;
}

/*Knowledge*/

.knowledge{
    background-color: #e5e5f7;
    background-image:  radial-gradient(#6F5DEF 0.5px, transparent 0.5px), radial-gradient(#6F5DEF 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    overflow: hidden;
}

.knowledge_container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* texto a la izquierda (1fr), imagen a la derecha (1fr) */
  gap: 2em;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.knowledge_picture{
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;     
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge_paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
    }

.knowledge_img{
    width: 100%;
    display:  block;
    object-fit: cover;
}


/*Medical*/

.medical {
    background-color: #1d2024;
    overflow: hidden;
}

.medical_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1 em;
    align-items: center;
    text-align: left;
    overflow: hidden;
}
.medical_picture{

    max-width: 500px;
    overflow: hidden;     
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical_paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
    color: #fff;
}
.medical_img{
    width: 100%;
    display:  block;
    object-fit: cover;
}
@media (max-width: 900px) {
    .medical_container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2em;
        text-align: center;
    }
    .medical_picture {
        grid-row: 1/2;
        justify-self: center;
        margin-bottom: 1em;
    }
    .medical_paragraph {
        text-align: center;
    }
}


/*Price*/

.price_table {
  padding-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  justify-content: center;
  align-items: center;
}
.link-amazon {
    display: flex;
    justify-content: center;
}
.link-amazon a {
  margin-left: 5px;
}

/* Contenedor individual del producto */
.price_element {
  width: 100%;
  max-width: 480px;
}

/* Tarjeta del producto */
.product_card {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.product_card:hover {
  transform: scale(1.02);
}

/* Imagen y contenedor del botón */
.product_image_wrapper {
  position: relative;
  width: 100%;
  text-align: center;
}

.product_img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product_card:hover .product_img {
  transform: scale(1.03);
}

/* Botón oculto hasta hover */
.add_cart {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  background-color: #6F5DEF;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
}

.product_image_wrapper:hover .add_cart {
  opacity: 1;
  transform: translate(-50%, -10px);
}

/* Texto inferior */
.product_content {
  text-align: center;
  padding: 10px 15px;
}

.product_name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #6F5DEF;
}

.price_price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1d2024;
}

.old_price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 0;
}

.now_price {
  display: inline-block;
  color: #6F5DEF;
  font-size: 1.6rem;
  font-weight: 700;
}



/*Testimony*/


.testimony{
    background-color: #e5e5f7;
}

.testimony_container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.testimony_body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}
.testimony_body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.testimony_img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 50%;
}

.testimony_texts{
    max-width: 700px;
}
.testimony_course{
    background-color: #6F5DEF;
    color:#ffffff;
    display: inline-block;
    padding: 5px;
}
.testimony_arrow{
    width: 90%;
    cursor: pointer;
    z-index: 10;
    position: relative;
}



/*questions*/

.questions{
    text-align: center;
}
.questions_container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}
.questions_padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #6F5DEF;
    border-radius: 6px;
}

.questions_padding--add{
    padding-bottom: 30px;
}
.questions_answer{
    padding: 0 30px 0;
    overflow: hidden;
}
.questions_title{
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color--title);
    justify-content: space-between;
}
.questions_arrow{
    border-radius: 50%;
    background-color: var(--color--title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition: transform .3s;
}
.questions_arrow--rotate{
    transform: rotate(180deg);
}
.questions_show{
    text-align: left;
    height: 0;
    overflow: hidden;
    transition: height .3s;
}

.questions_img{
    display: block;
}

.questions_copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}
/*Footer*/

.footer{
    background-color: #6F5DEF;
    
}

.footer_title{
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer_title, .footer__newsletter{
    color: #ffffff;
    
}

.footer_container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom:60px;
}

.nav--footer{
    padding-bottom: 20px;
    display:grid;
    gap: 1em;
    grid-auto-flow: row;
    height:100%;
}

.nav_link--footer{
   display:flex;
    margin:0;
    margin-right:20px;
    flex-wrap:wrap;
}

.footer_copy{
    --padding-container: 30px 0;
    text-align: center;
    color:#fff;
}

.footer_copyright{
    font-weight: 300;
}

.footer_icons{

    margin-bottom: 10px;
}

.footer_img{
    width: 30px;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 50%;
}
.whatsapp-float img {
  width: 100%;
}
/*Media queries*/

@media(max-width:800px){
    .nav_menu{
        display: block;
    }
    .nav_link--menu{
        position: fixed;
        background-color: #1d2024;
        top:0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
         align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav_link--show{
        --show:block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav_close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero_title{
        font-size: 2.5rem;
    }
    .about_main{
        gap:2em;
    }
    .about_icons:last-of-type{
        grid-column: 1/-1;
    }
    .knowledge_container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap:3em;
        text-align: center;
    }
    .knowledge_picture{
        grid-row: 1/2;
        justify-self: center;
    }
      .medical_container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap:3em;
        text-align: center;
    }
    .medical_picture{
        grid-row: 1/2;
        justify-self: center;
    }
    .testimony_container{
        grid-template-columns: 30px 1fr 30px;
    }
    .testimony_body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap:3em;
        justify-items: center;
    }
    .testimony_img{
        width: 200px;
        height: 200px;
    }
    .questions_copy{
        width: 100%;
    }

    .footer_container{
        flex-wrap:wrap ;
    }
    .nav--footer{
        width: 100%;
        justify-items: center;
    }
    .nav_link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }
}
.icon-cart {
    margin-left: 2em; /* separarlo de los links */
    position: relative;
    z-index: 1000;
}

@media(max-width:800px){
    .icon-cart {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        z-index: 1001;
    }
}

@media(max-width:600px){
    .hero_title{
        font-size: 2rem;
    }
    .hero_paragraph{
        font-size: 1rem;
    }
    .subtitle{
        font-size: 1.8rem;
    }
    .price_element{
        width: 90%;
    }
    .price_element--best{
        width: 90%;
        padding: 40px;
    }
    .price_price{
        font-size: 2rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony_container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony_arrow{
        width: 100%;
    }

    .testimony_course{
        margin-top: 15px;
    }

    .questions_title{
        font-size: 1rem;
    }

    .footer_title{
        justify-self: start;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .nav_link--footer{
        justify-content: space-between;
    }
}

/*CarTab*/
.cart-tab{
    width:400px;
    background-color: #1d2024;
    color: white;
    position:fixed;
    inset: 0 -400px 0 auto;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition:.5s;
    z-index: 1000;
}
body.showCart .cart-tab{
    inset: 0 0 0 auto;
}
body.showCart .container-cart{
    transform: translateX(-250px);
}


.cart-tab h1{
    padding: 20px;
    margin: 0;
    font-weight:300;
}
.cart-tab .btn{
    display: grid;
    grid-template-columns:repeat(2,1fr);
}

.cart-tab .btn button{
   font-weight: 500;
   cursor: pointer;
   background-color: #eee;
   border: none;             
   border-right: 1px solid #555;
}
.cart-tab .btn .boton_pago button{
   font-weight: 500;
   cursor: pointer;
   background-color: #eee;
   width: 200px;
   height: 78px;
   border: none;             
   border-left: 1px solid #555;
}

.cart-tab .listCart .item img{
    width:100%;
}

.cart-tab .listCart .item {
    display:grid;
    grid-template-columns: 70px 150px 50px 1fr; 
    gap: 3px;
    text-align: center;
    align-items: center;
}

.listCart .quantity span{
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    color: #555;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 25px;
    margin: 0 5px;
}
.listCart .quantity span:nth-child(2){
    background-color: transparent;
    color:white;
    cursor: auto;

}

.listCart .item:nth-child(even){
    background-color: #eee1;
}
.listCart{
    overflow: auto;
}

.listCart::-webkit-scrollbar{
    width:0;
}

.cart-tab .listCart .item .quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.cart-tab .listCart .item .quantity button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    color: #333;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.cart-tab .listCart .item .quantity span.item-qty {
    font-weight: bold;
    color: white;
    min-width: 20px;
    text-align: center;
}

.add_cart:active {
    transform: scale(0.97);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) inset;
}
.add_cart {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}


a, button {
  transition: all 0.3s ease-in-out;
}

.cta:hover, .add_cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(111, 93, 239, 0.3);
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.empty-cart-message {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    padding: 40px 20px;
}
.go-shop-button {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    padding: 12px 25px;
    background-color: #6F5DEF;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.go-shop-button:hover {
    background-color: #574cd1;
}


.container-cart {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 32, 36, 0.5); /* fondo oscuro con opacidad */
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.showCart .container-cart {
  opacity: 1;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
}
.highlight {
  color: #7368f0; /* Dorado, puedes cambiarlo */
  font-weight: bold;
}
#producto .subtitle {
  text-align: center;
}

.cart-tab .btn a.checkOut {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    background-color: #eee;
    color: black;
    text-decoration: none;
    width: 200px;
    height: 78px;
    border-left: 1px solid #555;
}

.reels {
  text-align: center;
  background-color: #1d2024;
  padding: 4em 0 3em 0;
}

.row_layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  
}

.title_side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.1em;
}
.reels_paragraph {
    margin-bottom: 15px;
    color: #fff;
}

.mockup_video_wrap {
  position: relative;
  width: 460px;
  height: 650px;
  margin-left: 400px;
  margin-right: auto; 
}

.mockup_scroll_area {
  position: absolute;
  top: 2px;       
  left: 14px;
  width: 292px; 
  height: 600px; 
  overflow-y: auto;
  z-index: 1;
  border-radius: 3.3em;
  background: #0d0f11;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 0.5em 0;
}

.reel_video {
  margin-top: 30px;
  margin-bottom: 30px;
  width: 292px;    
  height: 600px;   
  z-index: 1;
  border-radius: 0em;
  background: #0d0f11;   
}

.mockup_img {
  position: absolute;
  top: 0; left: -58px;
  width: 460px;
  height: 605px;
  z-index: 2;
  pointer-events: none;
}

.vertical_scroll {
  max-height: 600px;  
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2em;
  scroll-snap-type: y mandatory;
  padding-right: 1em; 
}



@media (max-width: 900px) {
  .row_layout {
    flex-direction: column;
    align-items: center;
  }

  .title_side {
    order: 1; 
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 1em; 
  }
  .phone_side {
    order: 2; 
    margin: 0 auto;
  }


  .mockup_video_wrap {
    order: 2; 
    margin: 0 auto;
    width: 300px;
    height: 590px;
  }
}

.amazon-float{
  position: fixed;
  bottom: 100px;
  left: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 50%;
}
.amazon-float img {
  width: 100%;
}


