:root {
  /*Generics*/

  --section-padding-top: 50px;
  --section-padding-left-right: 45px;
  --breadcrumb-padding-top: 10px;
  --page-title-padding-top: 10px;

  /*Header*/
  --ml-header-y-menu: 8vw;
  --width-header-asides: 80px;

  /*Menu*/
  --ml-menu-options: 16px;

  /* Tipografía */
  --fuente-principal: "Fredoka", sans-serif;

  /*Colors*/
  --main-color: #263166;
  --second-color: #ef4135;
}

/************ BODY *****************/

body {
  font-family: var(--fuente-principal);
}

/***************UTILS***************/
.flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

/******************GENERICS********************/

main{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section {
  display: flex;
  flex-grow: 1;
  min-height: 100vh;
  padding-top: var(--section-padding-top);
  padding-right: var(--section-padding-left-right);
  padding-left: var(--section-padding-left-right);
  padding-bottom: var(--section-padding-top);
}

.breadcrumb {
  color: var(--main-color);
  padding-left: var(--section-padding-left-right);
  padding-top: var(--breadcrumb-padding-top);
  margin: 0;
}

.page-title {
  color: var(--main-color);
  padding-left: var(--section-padding-left-right);
  padding-top: var(--page-title-padding-top);
}

.clipped {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-break: break-word;
  z-index: -1;
}

/************ SITE ESPECIFICS *************** */

/*********** HEADER *************/

.header {
  display: flex;
  flex-direction: column;
}

.header-main {
  display: flex;
  color: var(--main-color);
  flex-grow: 1;
  height: 200px;
  max-height: 200px;
}

.header-logo {
  align-items: center;
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
  margin-left: var(--ml-header-y-menu);
}

.header-logo img {
  max-height: 120px;
  min-width: 70px;
}

.header-title {
  align-items: center;
  display: flex;
  flex-grow: 1;
  font-size: 64px;
  font-weight: bold;
  justify-content: flex-start;
  padding-left: 100px;
}

.header-info {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: bold;
  padding-right: 10vw;
}

/*********** MENU *************/

.menu {
  align-items: center;
  background-color: var(--main-color);
  display: flex;
  flex-grow: 1;
  height: 30px;
  padding-left: var(--ml-header-y-menu);
}

.menu ul {
  align-items: center;
  color: white;
  display: flex;
  gap: 1rem;
  height: 100%;
  list-style: none;
}

.menu a {
  align-items: center;
  display: flex;
  text-decoration: none;
  padding-left: var(--ml-menu-options);
}

.menu-toogle-aside {
  background-color: var(--main-color);
  display: none;
  width: var(--width-header-asides);
}

#menu-toggle-icon {
  color: white;
  font-size: 2rem;
}

.dropdown-arrow {
  display: none;
}

.header-aside-mobile {
  background-color: var(--second-color);
  display: none;
  width: var(--width-header-asides);
}

/*SUBMENU*/

.dropdown {
  float: left;
}

.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  height: 30px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--main-color);
  min-width: 160px;
  /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); */
  z-index: 1;
}

.dropdown-content a {
  float: none;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--main-color);
}

/*********** CATEGORIES *************/

.categories {
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  min-height: auto !important;
  padding-bottom: var(--section-padding-top);
}

.categories > :nth-child(-n + 2) {
  flex: 1 0 40%;
}

.category-card {
  align-items: center;
  display: flex;
  flex-grow: 1;
  justify-content: center;
  position: relative;
  height: auto;
  width: 28%;
}

.category-card img {
  border: solid 1px black;
  border-radius: 3px;
}

.category-title {
  align-items: center;
  background-color: var(--main-color);
  border-radius: 10px;
  color: white;
  display: flex;
  /* font-size: 24px; */
  font-size: clamp(24px, 2.5vw, 14px);
  justify-content: center;
  padding: 10px;
  position: absolute;
  min-width: fit-content;
  height: clamp(50px, 90px, 20%);
  width: clamp(140px, 220px, 20vw);
  /* height: 20%;
  width: 239px;
  max-width: 33%; */
}

/*****************CONTACT - US *************************/

.contact-us {
  flex-direction: column;
}

.contact-us-title {
  text-align: center;
  color: var(--main-color);
  font-size: 45px;
  font-weight: bold;
}

.contact-us-form-main {
  display: flex;
  justify-content: center;
}

.contact-us-form {
  display: flex;
  font-size: 20px;
  gap: 30px;
  flex-direction: column;
  padding-top: var(--section-padding-top);
  width: 60%;
}

.contact-us-form input,
textarea {
  border: none;
  color: var(--main-color);
  padding: 15px 15px 15px 25px;
  border-left: solid 2px gray;
  border-right: solid 2px gray;
  box-shadow: 0 3px 3px var(--main-color);
}

.contact-us-form input::placeholder {
  color: gray;
}

.contact-form-submit {
  align-self: flex-end;
  color: white;
  text-align: center;
  background-color: var(--second-color);
  border-radius: 10px;
  height: 65px;
  width: 240px;
}

/********************** PRODUCT LIST ********************/

.categorias-productos {
  color: var(--main-color);
}

.categoria-item {
  color: var(--main-color);
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.producto-tarjeta {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: solid 3px var(--main-color);
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.producto-img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 5px;
  margin-top: 10px;
}
.producto-titulo {
  color: var(--second-color);
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 20px;
  font-family: "Cabin", sans-serif;
}
.producto-descripcion {
  font-size: 0.9rem;
  color: #555;
  text-align: justify !important;
}
.producto-precio {
  font-family: "Cabin", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--main-color);
  margin-top: 10px;
}

/********************** PRODUCT DETAILS ********************/

.detalle-producto {
  min-height: auto;
}

.detalle-producto-img-container {
  height: 100%;
}

.detalle-img {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  max-height: 450px;
}

.detalle-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.detalle-info h2 {
  font-size: 40px !important;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}
.detalle-info p {
  font-size: 1rem;
  color: #555;
}
.detalle-precio {
  font-size: 1.5rem;
  color: #007bff;
  font-weight: bold;
  margin: 20px 0;
}
.btn-info-producto {
  border-color: var(--second-color);
  background-color: var(--second-color);
  align-self: center;
  font-size: 24px;
  border-radius: 10px;
  width: 250px;
}

/**********************FOOTER**********************/

.footer {
  align-items: center;
  background-color: var(--main-color);
  color: white;
  display: flex;
  justify-content: center;
  height: 67px;
}

.footer-legend {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.footer-social-media {
  display: flex;
  gap: 20px;
  flex-grow: 1;
  height: 22px;
  justify-content: flex-end;
  padding-right: 50px;
}

/************************* RESPONSIVE *******************************/
@media (max-width: 768px) {
  /*HEADER*/

  .header-logo {
    flex-direction: column;
    margin-left: 0px;
  }

  .header-title {
    font-size: 24px;
    padding-left: 0;
  }

  .header-info {
    display: none;
  }

  /*MENU*/

  .menu {
    display: none;
    height: auto;
    padding-left: 0;
  }

  .menu ul {
    align-items: flex-start;
    flex-direction: column;
    flex-grow: 1;
    padding: 36px 1rem 1rem 1rem;
    text-transform: uppercase;
  }

  .menu-toogle-aside {
    display: flex;
    justify-content: center;
  }

  .header-aside-mobile {
    display: flex;
  }

  .dropdown-arrow {
    display: block;
  }

  .dropdown .dropbtn,
  .menu ul {
    font-size: 24px;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown img {
    float: right;
  }

  .dropdown-content {
    padding-left: 30px;
    padding-top: 10px;
    position: initial;
  }

  .dropbtn {
    display: flex;
    justify-content: space-between;
  }

  /**CATEGORIES**/

  .categories {
    gap: 15px;
  }

  .category-card {
    width: 27%;
  }

  .categories > :nth-child(-n + 2) {
    flex-basis: 100%;
  }

  /*first 2 categories*/
  .categories > :nth-child(-n + 2) .category-title {
    border-radius: 10px;
    font-size: 24px;
    flex-basis: 100%;
    /* min-width: 239px; */
    height: clamp(30px, 67px, 24%);
    width: clamp(100px, 239px, 47vw);
  }

  .category-title {
    border-radius: 3px;
    font-size: 2vw;
    /* min-width: auto;
    max-width: 78px; */
    height: clamp(16px, 22px, 28%);
    width: clamp(14px, 78px, 20vw);
  }

  /**CONTACT-US**/

  .contact-us-title {
    font-size: 24px;
  }

  .contact-us-form {
    font-size: 14px;
    width: 100%;
  }

  .contact-form-submit {
    align-self: center;
  }

  /*****PRODUCT LIST ******/

  .categorias-productos {
    position: relative;
    width: fit-content;
  }

  .categorias-productos h4 {
    border: solid 3px var(--main-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    height: 45px;
    line-height: 2.1;
    margin-bottom: 0px !important;
    text-align: center;
    width: 195px;
  }

  .listado-categorias {
    display: none;
    padding: 20px;
    position: absolute;
    font-size: 14px;
    top: 45px;
    left: 50%;
    transform: translate(-50%);
    background-color: white;
    border: solid 3px var(--main-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
  }

  .listado-categorias.open {
    display: block;
  }

  /*****PRODUCT DETAIL ******/

  .detalle-info {
    justify-content: flex-start;
    height: auto;
  }

  .detalle-producto-img-container {
    height: auto;
  }

  /*****FOOTER******/
  .footer-legend {
    font-size: 10px;
  }

  .footer-social-media {
    gap: 10px;
    padding-right: 20px;
  }
}


  /*WA BUTTON*/

  /* Estilo para el botón de WhatsApp */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 3vw;
    background-color: #25D366; /* Color verde de WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que el botón esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.whatsapp-button svg {
    width: 30px; /* Tamaño del icono */
    height: 30px;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Color verde oscuro de WhatsApp al pasar el cursor */
}