/* PLANES */
.text-superior{
    text-align: center;
    margin: 40px 0px;
}
.todoplan{
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 10px;
}
.planes{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
    flex-wrap: wrap;
    gap: 20px;
    
}

@media (max-width: 1236px){
    .planes{
        width: 600px;
        gap: 20px;
    }
}

.plan{
    max-width: 280px;
    height: 500px;
    background-color: white;
    border-radius: 20px;
    padding: 24px;


    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.plan-diseño{
    font-size: 42px;
    line-height: 52px;
}



.head-plan{
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}
    .head-plan img{
        padding-bottom: 12px;
    }
    .head-plan .text-plan{
        padding-bottom: 16px;
    }
    .head-plan .text-costo .costo{
        font-weight: bold;
        color: rgb(128, 128, 128);
    }
    .head-plan .text-costo .precio{
        font-size: 36px;
        font-weight: bold;
    }


.caracteristicas{
    padding-top: 20px;
}
.caracteristicas ul{
    margin: 0;
    list-style-position: outside;
    padding-left: 1.2rem;
}
.time{
    font-weight: 800;
}
.caracteristicas ul li{
    font-size: 16px;
    line-height: 20px;
    padding-bottom: 8px;
}
.solicitar{
    margin-top: auto;
}
.btn-solicitar{
    border: 0px;
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    color: white;
    background-color: black;
    border-radius: 40px;
    cursor: pointer;
}
.btn-solicitar:hover{
    background-color: rgb(25, 25, 25);
}




.descripcion-plan{
    max-width: 280px;
    height: 400px;
    border-radius: 20px;
    padding: 24px;


    display: flex;
    flex-direction: column;
}

.arrow-right{
    width: 80px;
    height: auto;
    margin-top: 30px;
    margin-left: auto;
}

.resalt{
    background-color: black;
    color: #BAFD00;
}






.slider-controls{
    display: none;
}


@media (max-width: 769px){
    /* controles */
    .slider-controls{
        display: flex;
        justify-content: center;
        margin: 0 auto;
        gap: 18px;
        margin-top: 10px;
    }

    #prev, #next{
        background-color: white;
        padding: 15px;
        border-radius: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        width: 54px;
        height: 54px;
        overflow: hidden;
        display: flex;
    align-items: center;
    justify-content: center;
    }



    .flechas-sliderplan{
        width: 16px;
        height: 24px;
        margin: 0;
    padding: 0;
    display: block; 
    }
}













/* --- Estilo general --- */
.todoplan {
  width: 100%;
  overflow: hidden;
  padding: 2rem 1rem;
}

.planes {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  transition: transform 0.3s ease-in-out;
}

/* Estilo de cada plan */

.descripcion-plan{
    flex: 0 0  300px;
  padding: 1rem;
  min-width: 280px;
}

.plan {
  flex: 0 0  300px;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 280px;
}

/* --- VERSIÓN MÓVIL: convertir en slider --- */
@media (max-width: 768px) {
  .planes {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0; /* 🔹 Quitamos padding lateral */
    margin: 0;  /* 🔹 Aseguramos que arranque desde el borde */
  }

  .descripcion-plan, .plan {
    flex: 0 0 100%; /* 🔹 ocupa el ancho total visible */
    scroll-snap-align: start; /* 🔹 garantiza que cada slide se alinee al borde izquierdo */
  }

  /* 🔹 Ocultar scrollbar */
  .planes::-webkit-scrollbar {
    display: none;
  }
}