
body {
  font-family: Roboto, sans-serif;
  color: #000;
  overflow-x: hidden;
  font-size: 1.15em;
}
#contador {
  display: flex;
  justify-content: center; 
  margin-top: 20px
}

#contador .cuadro {
  width: 5em;
  height: 8em;
  float: left;
  /*
  min-width: 60px;*/
}
#contador .cuadro:nth-child(1) .digito {
  /*background-image: linear-gradient(to right,#007e51,#2e865b);*/
  background-image: linear-gradient(to right, #006110, #008c23);
}
#contador .cuadro:nth-child(2) .digito {
  /*background-image: linear-gradient(to right,#4c8f5f,#53a05a); background-image: linear-gradient(to right,#0ddb0d,#09e91c); */
  background-image: linear-gradient(to right, #006110, #008c23);
}
#contador .cuadro:nth-child(3) .digito {
  /*background-image: linear-gradient(to right,#4aa94f,#5cb34d);*/
  background-image: linear-gradient(to right, #006110, #008c23);
}
#contador .cuadro:nth-child(4) .digito {
  /*background-image: linear-gradient(to right,#6bb44b,#78b749);*/
  background-image: linear-gradient(to right, #006110, #008c23);
}
#contador .cuadro .texto {
  color: var(--color-4);
  color: #242222ff;
  text-align: center;
}
#contador .texto {
  text-align: center;
  font-weight: 600;
  font-size: 0.5em;
}
#contador .digito {
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  border-radius: 0.1em;
  margin: 0 0.5em;
  padding: 0.5em 0;
}
.redes {
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  line-height: 30px;
  margin: auto 4px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  padding-left: 1.5px;
  text-align: center;
  background: #59a548;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}
.popup {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* importante para recortar bordes internos */
  padding: 0; /* sin padding para que la imagen use todo el espacio */
}
.popup-content{
    margin-top: -350px;
    margin-bottom: 118px
    
}


.popup img {
  width: 100%;
  margin-top: 0px;
  display: block;
  border: 7px solid #333;
  box-sizing: border-box;
  border-radius: 12px; /* o elimina si no se desea redondear la imagen */
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: #000;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}
.close-btn:hover {
  background-color: red;
}
.btn-wa {
  background-color: #006110 !important;
  opacity: 0.8 !important;
}
.btn-wa:hover {
  opacity: 1 !important;
}

@media (max-width:770px){
    .redes{
        display:none
    }

    .popup-content{        
        margin-bottom: 148px
    }
}


@media (max-width:720px){
    .popup-content{       
        margin-top: -300px; 
        margin-bottom: 98px
    }
}

@media (max-width:620px){
    .popup-content{       
        margin-top: -278px; 
        margin-bottom: 76px
    }
}

@media (max-width:565px){
    .popup-content{       
        margin-top: -265px; 
        margin-bottom: 63px
    }
}

@media (max-width:537px){
    .popup-content{       
        margin-top: -258px; 
        margin-bottom: 56px
    }
}


@media (max-width:520px){

#contador .cuadro {
  width: 2em;
  height: 5em;
}

.popup-content{
    margin-top: -245px;
    margin-bottom: 100px
    
}

.redes{
    display: none;
}

.btn-wa{
    padding:3px 8px;
    font-size:0.75rem;
}

.btn-wa i{
    font-size:0.7rem;
}

.popup-content{
    bottom:5%;
}

#contador {
  margin-top: 10px
}

#contador .cuadro{
    width:50px;
}

#contador .digito{
    font-size:1rem;
}

.redes{
    width:30px;
    height:30px;
}

}

@media (max-width:498px){
    .popup-content{       
        margin-top: -218px; 
        margin-bottom: 74px
    }

}

@media (max-width:440px){
    .btn-wa{
        padding:3px 8px;
        font-size:0.75rem;
    }

    .btn-wa i{
        font-size:0.7rem;
    }

    .popup-content{       
        margin-top: -210px; 
        margin-bottom: 65px
    }

}

@media (max-width:420px){

#contador .cuadro {
  width: 1em;
  height: 2em;
}

.popup-content{
    margin-top: -185px;
    margin-bottom: 94px
}

.redes{
    display: none
}

.btn-wa{
    padding:1px 3px;
    font-size:0.65rem;
}

.btn-wa i{
    font-size:0.7rem;
}

#contador {
  margin-top: 5px
}

.popup{
    width:95%;
}


.popup-content{
    bottom:2%;
}

#contador{
    gap:5px;
}

#contador .cuadro{
    width:45px;
}

}
