@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap');


@keyframes fadeInOut {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  


:root {
    --primary-color: #18a3aa;
    --secondary-color: #252c7a;

}
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #18a3aa, #252c7a) ;
    margin: 0;
    padding: 0;
}

.logo_buenfin{
    background-color: white;
    border-radius: 0px 20px 20px 0px;
    position: fixed;
    width: 60px;
    padding-inline: 20px;
    padding-block: 4px;
    height: 60px;
    bottom: 20px;
    left: 0px;
    color: #FFF;
    text-align: center;
    font-size: 30px;
    z-index: 100;
}

.container {
    max-width: 600px;
    height: 100%;
    margin: 0 auto;
    /* padding: 20px; */
    text-align: center;
    }
.intro {
    padding: auto;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

.intro img {
  border-radius: 300px;
  margin: auto;
  padding-right: 20px;
  height: 200px;
  width: 200px;
}
.name {
    color: white;
}
.nickname {
    font-size: 20px;
    font-weight: normal;
    color: white;
  }

.description {
    color: white;
}

.social-networks {
    display: flex;
    justify-content: center;
    color: white;
    }

.social-networks svg {
    height: 30px;
    width: 30px;
    margin: 5px 5px;
    color: white;
    }

.link {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 10px;
    padding: 5px 20px;
    margin: 10px 0px;
    text-decoration: none;
    color: #333;
    justify-content: space-between;
    align-items: center;
    }

.link img {
    width: 80px;
    height: 40px;
    border-radius: 5px;
    }
    
    .redessociales {
        display: flex;
        justify-content: space-between;
        align-self: center;    
    }
    
    .redessociales >a {
        display: flex;
        justify-content: flex-start;
        align-self: center;
        align-items: center;
        gap: 5px;
        color: white;
        text-decoration: none;
    }
 
    .info {
        font-size: 26px;
        font-weight: bold;
        margin-bottom: 20px;
        color: white;
        opacity: 0;
        animation-delay: 4;
        animation: fadeInOut 2s ease-in-out 2s forwards;
        }
    
    .pdfs {
        width: 100%;
        height: 500px;
        margin-bottom: 50px;
        opacity: 0;
        animation-delay: 4;
        animation: fadeInOut 2s ease-in-out 2s forwards;
    }
    
    iframe {
        width: 100%;
        height: 400px;
        opacity: 0;
        animation-delay: 4;
        animation: fadeInOut 2s ease-in-out 2s forwards;
    }

  .contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    /* background-color: #5684c9; */
    padding: 0px, 20px;
    color: white;
    margin-bottom: 20px;
  }

  .card-container {
    display: flex;
    width: 600px;
    height: auto;
    /* background: #1e2326; */
    /* background: #0f80c2; */
    background: #1ea4ab;
    border-radius: 10px;
    box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, .2);
    overflow: hidden;

    background-image: url('../sucursales/pattern.png');
  }

  .card-container h3{
    font-size: 20px;
  }

  .header {
    /* border-right: 1px solid #ddd; */
    padding: 15px;
    text-decoration: none;
  }

  .imagensuc {
    width: 150px;
    height: 150px;
    /* padding: 10px; */
    border-radius: 50%;
    /* border: #1ea4ab 5px solid; */
    border: #ffffff 5px solid;
  }
  
  .descripcion {
    background: #fbfbfbfb;
  }

  .header, .descripcion{
    padding: 20px;
    text-align: center;
  }

  .header a{
    position: relative;
    display: block;
    text-decoration: none;
    color: white;
  }

  .header img {
    border-radius: 50%;
    /* box-shadow: 0 0 0 8px rgba(0, 0, 0, .06); */
  }

  .header a:hover img{
    box-shadow: 0 0 0 12px reba(0, 0, 0, .1)
  }

  .header h4{
    margin-bottom: 20px;
  }

  .descripcion{
    position: relative;
  }

  .descripcion h4{
    margin: 20px 30px;
    font-size: 20px;
    color: black;
  }

  .descripcion .numeros{
    margin-top: 25px;
  }

  .descripcion .numeros a{
    display: inline-block;
    padding: 30px 20px;
    color: #18a3aa;
    font-size: 17px;
    text-decoration: none;
  }


    @media (max-width: 768px) {
        body {
          flex: 1 1 calc(50% - 20px); /* 2 columnas en tablets */
        }
      }
  
    @media (max-width: 480px) {
        body{
          flex: 1 1 100%; /* 1 columna en teléfonos */
        }
      }
    

main.ofertas{
  background-color: #e3eaf4 !important;
  min-height: 100vh;
}



.header_menu{
  background: #000000;
  width: 100%;
  height: 60px;
  position: sticky;
  top: 0px;
  overflow: hidden;
  z-index: 200;
}

.container_menu{
  width: 90%;
  margin: 5px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container_menu img{
  width: 180px;
}

.container_menu nav ul{
  display: flex;
  align-items: center;
  margin: 0px;
  padding: 0px;
  margin-right: 20px;
}
.container_menu nav ul li{
  list-style: none;
  margin-left: 10px;
}
.container_menu nav ul li a{
  text-decoration: none;
  color: white;
  font-size: 14px;
  background-color: transparent;
  padding: 10px 10px;
  display: block;
  border-radius: 4px;
}

.container_menu nav ul li a:hover{
  background-color: red;
}
.active_url{
  background-color: red !important;
  padding-inline: 20px !important;
}

.container_banner{
  background-color: green;
  width: 100%;
  min-height: 400px;
  display: none;
}

.container_productos{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  width: 94%;
  min-height: 80vh;
  gap: 20px;
  margin: 20px auto;
}

.card_productos{
  background-color: #F7F7F7;
  border-radius: 8px;
  width: 270px;
  overflow: hidden;
}

.card_productos img{
  width: 270px;
  height: 270px;
  display: block;
}
.card_productos .wrap_name{
  padding: 10px;
  text-align: center;
  font-size: 12px;
}

.txt_name{
  height: 44px;
}

.txt_codigo{
  line-height: 10px;
  font-size: 12px;
  height: auto;
}

.card_productos .wrap_oferta{
  padding: 10px;
  text-align: center;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 20px;
  gap: 20px;
}

.container_productos .wrap_oferta .txt_oferta{
  font-size: 20px;
  font-weight: 600;
  font-family: "Momo Trust Display", sans-serif;
  color: red;
}
.container_productos .wrap_oferta .txt_price{
  text-decoration: line-through;
  color: #696969;
}

.txt_politica{
  text-align: center;
  font-size: 14px;
  color: #696969;
  line-height: 10px;
}


.btn_add{
  display: flex;
  font-family: "Momo Trust Display", sans-serif;
  background-color: #44b678;
  border: 0px;
  color: white;
  cursor: pointer;
  width: 100%;
  height: 50px;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.btn_add:hover{
  background-color: #3b9e62;
}

.btn_add img{
  width: 30px;
  height: 30px;
}

 /* ================= POPUP ================== */

    .popup_screen {
      background-color: rgba(0, 0, 0, .4);
      position: fixed; /* fijo en pantalla completa */
      width: 100%;
      height: 100vh;
      top: 0;
      left: 0;
      z-index: 999;
      display: none; /* oculto por defecto */
      justify-content: center;
      align-items: center;
    }

    .popup {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      width: 480px;
      height: 320px;
      overflow: hidden;
      position: relative;
      animation: showPopup .3s ease;
    }

    @keyframes showPopup {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .popup h3 {
      text-align: center;
    }

    .popup select {
      width: 80%;
      padding: 10px;
      border: 1px solid #696969;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
      margin: 0px 10%;
    }

    .addres {
      width: 80%;
      margin: 10px auto;
      padding: 10px;
      font-size: 14px;
    }

    .popup .btn_add {
      width: 70%;
      margin: 60px auto;
      border-radius: 6px;
    }

    .btn_close {
      background-color: rgba(0, 0, 0, .9);
      border: 0px none;
      border-radius: 50%;
      color: white;
      width: 28px;
      font-size: 22px;
      height: 28px;
      text-align: center;
      padding: 0px 4px;
      position: absolute;
      cursor: pointer;
      top: 8px;
      right: 8px;
    }


.slider {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ======= BOTONES ======= */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 10px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
  width: 34px;
  display: block;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.btn.prev { left: 15px; }
.btn.next { right: 15px; }

/* ======= INDICADORES ======= */
.indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #fff;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 600px) {
  .slider{
    width: 96%
  }
  .slide img {
    height: auto;
  }
}





@media only screen and (max-width:550px){
  .header_menu .container_menu{
    width: 96%;
    padding-inline: 10px;
  }
  .header_menu .container_menu img{
    width: 120px;
  }

  .header_menu .container_menu nav ul li a{
    font-size: 12px;
  }
  
  .container_productos{
    width: 100%;
    gap: 10px;
    padding-block: 20px;
  }
  .card_productos{
    width: 170px;
  }
  .card_productos > img{
    width: 170px;
    height: 170px;
  }
  .container_productos .wrap_name p{
    font-size: 10px;
  }
  .wrap_oferta{
    display: block !important;
    height: 45px;
  }

  .wrap_oferta span{
    display: block;
    font-size: 16px !important;
  }
  .btn_add img{
    width: 20px;
    height: 20px;
  }

  .btn_add{
    font-size: 12px;
  }

  .popup{
    width: 90%;
  }

}