:root {
    --1: #59B954;
    --2: #0F1114;
    --3: #1B1E24;
    --4: #30FF13;
    --5: #9B9B9B; 
    --6: #FFD700;
}

.fondo1 {
    background-color: var(--2);
}

.fondo2 {
    background-color: var(--3);
}

.botonverde {
    background-color: var(--1);
}

.botonamarillo {
    background-color: var(--6);
}

.Servicio_card_p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px 140px;
}

.encabezado_servicio {
    display: flex;
    align-items: center;
    color: white;
    width: 100%;
    height: 120px;
    margin-top: 50px;
}

.encabezado_servicio h1 {
    font-size: 45px;
    font-weight: 600;
    margin-top: 10px;
}

.descrip_servic {
    display: flex;
    align-items: center;
    color: white;
    margin-top: -10px;
    width: 100%;
    height: auto;
    padding: 0px 144px;
    gap: 80px;
    padding-bottom: 130px;
}
  
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 70%;
}
  
.slide {
    display: none;
}
  
.slide.active {
    display: flex;
}
  
.slide img {
    width: 100%;
    height: auto;
}
  
.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}
  
.prev {
    left: 10px;
}
  
.next {
    right: 10px;
}

.texto_servicio_p {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 30%;
    font-size: 18px;
    font-weight: 300;
}

.comprar {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
}

.comprar button{
    border: none;
    background-color: var(--6);
    color: var(--2);
    border-radius: 30px;
    font-size: 22px;
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
}

.comprar button:hover {
    transform: scale(1.05);
    transition: transform 1s;
    cursor: pointer;
}

.comprar_plus {
    display: flex;
    align-items: center;
    width: 100%;
    height: 20px;
    gap: 10px;
}

.comprar_plus img {
    width: 10%;
    height: auto;
}

.carticas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    gap: 20px;
}

.cartica_servicio {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 240px;
    height: 120px;
    border-radius: 10px;
    padding: 10px;
}      

.cartica_servicio h1{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 25px;
    font-size: 19px;
    padding: 3px 6px;
    background-color: var(--4);
    color: var(--2);
    border-radius: 5px;
}

.cartica_servicio h2{
    display: flex;
    align-items: center;
    font-size: 19.3px;
    padding: 3px 6px;
    margin-top: 6px;
    font-weight: 300;
}

.cartica_servicio:hover {
    background-color: var(--3);
}

.slide .caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
  
.slide:hover .caption {
    opacity: 1;
}

.titulo_servicio {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 150px 5px; 
    padding: 50px 80px;
    margin-bottom: 100px;
}
  
.grid-item {
    padding: 20px;
    text-align: center;
    height: 430px;
}

.grid-item img {
    width: 100%;
    border-radius: 30px;
}

.grid-item h2 {
    margin: 12px 0px;
    font-weight: 500;
}

.grid-item button {
    width: 80%;
    height: 45px;
    border: none;
    border-radius: 15px;
    font-size: 21px;
    font-weight: 600;
    margin-top: 5px;
    cursor: pointer;
}

.grid-item button:hover {
    transform: scale(1.03);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px 30px; 
    padding: 60px 120px;
    background-color: var(--2);
}
  
.grid-service {
    padding: 20px;
    text-align: center;
    height: 430px;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}

.grid-service:hover{
    transform: scale(1.05);
    -webkit-filter: grayscale(100%);
    transition: transform 1s,
                -webkit-filter 1s;
}

.grid-service h2 {
    font-weight: 600;
    font-size: 35px;
}

.service1 {
    background-image: url("../img/Service1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service2 {
    background-image: url("../img/Service2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service3 {
    background-image: url("../img/Service3.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service4 {
    background-image: url("../img/Service4.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
 
.service5 {
    background-image: url("../img/Service5.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tienda_servicios {
    width: 100%;
    background-color: var(--3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0px 50px 0px;
}

.tienda_servicios button {
    border: 4px solid var(--5);
    border-radius: 40px;
    background: none;
    font-size: 40px;
    width: 500px;
    height: 100px;
    color: var(--5);
    font-weight: 600;
    cursor: pointer;
}

.tienda_servicios button:hover {
    border: none;
    background-color: var(--6);
    font-size: 41px;
    color: var(--2);
    transform: scale(1.01);
    transition: border 1s,
                background-color 1s,
                font-size 1s,
                color 1s,
                transform 1s;
}

@media (max-width: 768px) {
    .home_apartados {
        height: auto;
    }    
    .tienda_servicios {
        width: 100%;
        padding: 50px 0px;
    }  
    .tienda_servicios button {
        font-size: 30px;
        padding: 5px 15px;
        height: 70px;  
        width: auto;
    }
    .grid-servicios {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 80px;
    }  
    .Servicio_card_p {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 20px 0px 50px 0px;
        text-align: center;
    }
    .encabezado_servicio {
        flex-direction: column;
        height: auto;
        margin-top: 0px;
    }
    .carticas {
        flex-direction: column;
    }
    .descrip_servic {
        flex-direction: column;
        padding: 0px;
    }
    .texto_servicio_p {
        width: 80%;
        font-size: 18px;
        margin-top: -30px;
    }
    .carticas {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        gap: 20px;
        width: 100%;
    }
    .cartica_servicio {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90%;
        height: 90px;
    }      
    .cartica_servicio h1{
        font-size: 22px;
    }
    .cartica_servicio h2{
        font-size: 22px;
    }  
    .comprar {
        display: flex;
        flex-direction: column;
        margin-top: 30px;
    }
    .comprar_plus {
        display: flex;
        align-items: center;
        width: 100%;
        height: 20px;
        gap: 10px;
        margin-bottom: 50px;
    }
    .carousel {
        margin-top: 15px;
        width: 90%;
    }    
    .titulo_servicio {
        text-align: center;
        font-size: 35px;
    }
    .grid-productos {
        margin-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .grid-servicios {
        grid-template-columns: 1fr;
        padding: 20px 40px;
    }
    .tienda_servicios {
        width: 100%;
        padding: 40px 0px;
    }  
    .tienda_servicios button {
        font-size: 25px;
        padding: 5px 15px;
        height: 55px;  
        width: auto;
    }    
}

@media (max-width: 1200px) {
    .grid-productos {
      grid-template-columns: repeat(3, 1fr);
      padding: 40px 60px;
      grid-gap: 20px 5px; 
    }
  }
  
  @media (max-width: 992px) {
    .grid-productos {
      grid-template-columns: repeat(2, 1fr);
      padding: 30px 40px;
      grid-gap: 20px 5px; 
    }
  }
  @media (max-width: 576px) {
    .grid-productos {
      grid-template-columns: 1fr;
      padding: 20px;
      grid-gap: 50px 5px; 
    }
}