:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;
    --primario: #784D3C;
    --gris:#e1e1e1;
    --blanco:#ffffff;
    --negro:#000000;

}

html{
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px*/
}
*,*::before,*::after{
    box-sizing: inherit;
}

body{
    font-family: var(--fuenteParrafos);
    background-color: rgb(250,250,250);
    font-size: 1.6rem;
    line-height: 2;
    margin: 0;
}

                                        /*globales*/

.contenedor{
    width: min(90%,120rem);
    margin: 0 auto;
}

*{
    text-decoration: none;
}
h1, h2, h3, h4{
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}
h1{
    font-size: 4.8rem;
}
h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}

img{
    max-width: 100%;
}
                                    /*utilidades*/
.no-margin{
    margin: 0;
}
.no-padding{
    padding:0;
}
.centrar-texto{
    text-align: center;
}
.p-x-1 {
  padding-left: 1rem;
  padding-right: 1rem;
}.p-x-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}.p-x-3 {
  padding-left: 3rem;
  padding-right: 3rem;
}


                                    /*header*/
.webp .header{
    background-image: url(/dist/img/banner.webp);
}
.no-webp .header{
    background-image: url(/dist/img/banner.png);
}

.header{
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header-blog{
    height: 15rem;
}
.header__texto{
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .header__texto{
        margin-top: 16rem;
    }
}
@media (min-width: 768px) {
    .barra {
        justify-content: center;
    }
}
@media (max-width: 768px) {
  .navegacion__text {
    display: none;
  }
  .dropdown.open .navegacion__text {
    display: inline-block;
  }
  .dropdown-content {
    display: none;
  }
  .dropdown.open .dropdown-content {
    display: block;
  }
}

.logo {
    color: var(--blanco);
    width: 100px;
    display: block;
    margin: 0 auto;
}

.barra{
    display: flex;
    padding-top: 4rem;
    justify-content: space-between;
    align-items: center;
}
.logo__bold{
    font-weight: 700;
}
@media (min-width: 768px) {
    .navegacion{
        display: flex;
        gap: 2rem;
    }   
}
.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 3rem;
    color: var(--blanco);
    transition: color 0.3s ease;
    text-shadow: -1px -1px 0 var(--negro), 1px -1px 0 var(--negro), -1px 1px 0 var(--negro), 1px 1px 0 var(--negro);
}

.navegacion__enlace:hover {
    color: var(--primario);
}



@media (min-width: 768px) {
    .contenido-principal{
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.entrada {
    background-color: var(--blanco);
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0px 15px 20px 0px rgba(69, 67, 96, 0.1);
}
.entrada__contenido{
    padding: 1rem;
}


.entrada:last-of-type{
    border: none;
    margin-bottom: 0;
}

.boton {
  display: block;
  font-family: var(--fuenteHeading);
  color: var(--blanco);
  text-align: center;
  padding: 1rem 3rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2rem;
  border: none;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

.boton:hover {
  background-color: #f2f2f2;
  color: #333;
  cursor: pointer;
}
.boton:hover svg {
  fill: #333;
}

@media (min-width: 768px) {
    .boton{
        display: inline-block;
    }
}
.boton--primario{
    background-color: var(--negro);
}
.boton--secundario{
    background-color: var(--primario);
}
.entrada__imagen iframe {
    width: 100%;
}
.productos{
    list-style: none;
}
.widget-curso{
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}
.widget-curso:last-of-type{
    border: none;
    margin-bottom: none;
}
.widget-curso__label{
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.widget-curso__info{
    font-weight: 400;
}
.widget-curso__label,.widget-curso__info{
    font-size: 2rem;
}

.footer{
    background-color:var(--negro);
    padding-bottom: 3rem;
    margin-top: 4rem;
    color: var(--blanco);
}

                                  /*sobre nosotros*/

@media (min-width: 768px) {
.sobre-nosotros{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
 }
}
/*Productos*/

.products{
    display: flex;flex-wrap: wrap;justify-content: center;
}
.curso{
    padding: 3rem 0;
    border-bottom: 1px solid var(--gris);
    /* update */
    width: 200px;margin: 10px;text-align: center;
}
@media (min-width: 768px) {
.curso{
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 2rem;
    }
}

/* .curso:last-of-type{
    border: none;
} apagado por la funcion del carro en los productos */
.curso__label{
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.curso__info{
    font-weight: 400;
}
.curso__label,.curso__info{
    font-size: 2rem;
}
#cart{
    margin-top: 20px;
    text-align: center;
    position: relative;
}
#cart-items{
    list-style-type: none;
    padding: 0;
}
#cart img {
    width: 150px;height: 150px;margin-right: 10px;  
    vertical-align: middle;
  }  
#cart-total{
    font-weight: bold;
}
.notification {
    position: fixed;
    top: 5px;
    right: 70px;
    padding: 10px;
    background-color: #25d366;
    color: #fff;
    border-radius: 4px;
    z-index: 9999;
    animation: fadeOut 2s ease-in-out;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  .cart-button {
    display: inline-block;
    padding: 3px 5px;
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .cart-button:hover {
    background-color: #1aad5b;
  }
  
  .cart-button:active {
    background-color: #128442;
  }
  
  .delete-button {
    margin-left: 6px;
    display: inline-block;
    padding: 3px 5px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .delete-button:hover {
    background-color: #cc0000;
  }
  
  .delete-button:active {
    background-color: #990000;
  }
  
  .quantity-button {
    margin-left: 6px;
    display: inline-block;
    padding: 3px 5px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .quantity-button:hover {
    background-color: #cc6600;
  }
  
  .quantity-button:active {
    background-color: #994c00;
  }

  #cart-icon-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    cursor: pointer;
  }
  
  #cart .custom-cart-icon {
    width: 40px;
    height: 40px;
    fill: red !important;
  }
  
  
  #cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
  }
  .go-to-top-button {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #fff;
    background-color: #FFA07A;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .go-to-top-button:hover {
    background-color: #FF8C69;
  }
  
    
                                         /*entrada*/
.entrada{
    padding: 3rem 0;
}
.sobre-nosotros__texto{
    padding: 1rem;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color:var(--primario);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right:0;
}

.dropdown-content a {
    color: var(--blanco);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #f2f2f2;
    color: #333;
  }

.dropdown:hover .dropdown-content {
    display: block;
}
                                         /*contacto*/

.contacto-bg{
    background-image:url(/dist/img/contacto.png);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}
.formulario{
    background-color: var(--blanco);
    margin: -5rem auto 0 auto;

    width: 95%;
    padding: 5rem;
}
.campo{
    display: flex;
    margin-bottom: 2rem;
    gap: 2rem;
}
.campo__label{
    flex: 0 0 9rem;
    text-align: right;
}
.campo__field{
    flex: 1;
    border: 1px solid var(--gris);
}
.campo__field--textarea{
    height: 20rem;
}
/*                                       chat button */
.fabs {
  position: fixed;
  right: 20px;
  bottom: 20px;
}
.action {
  background: rgb(3, 252, 32);
  height: 60px;
  width: 60px;
  border-radius: 50%;
  box-shadow: 0 5px 7px 0px gray;
  transition: background-color 0.4s ease-in-out;
}
.action i {
  position: absolute;
  color: white;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  cursor: pointer;
}
.action:hover {
  background-color: rgb(130, 255, 145);
}
.btn {
  position: absolute;
  height: 50px;
  width: 50px;
  border-radius: 50%;
}
.btn i {
  position: absolute;
  font-size: 30px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.btns {
  position: absolute;
  bottom: 0px;
  margin-bottom: 0px;
  height: 50px;
  width: 50px;
  transition: 0.3s ease-in-out;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
.btns.open {
  bottom: 75px;
}































