@import url('variables.css');

.button-d{
    color: var(--primary-color);
    background-color: var(--secondary-color);
    font-family: var(--smallfont);
    font-weight: 600;
    border-radius: 7px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.button-d:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 70%, white 30%);
}

.deactivate{
    background-color: #179c8170;;
}
.deactivate:hover{
    background-color: #179c8170;
}
.input-d{
    background-color: rgb(238, 232, 232);
    border-radius: 10px;
    border: none;
}

.input-d::placeholder{
    font-family: var(--smallfont);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.container-d{
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.0025);
}

.swal2-popup {
    font-family: var(--bigfont);
}

.swal2-title{
    font-size: 24px;
}

.swal2-warning {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.swal2-confirm{
    background-color: var(--secondary-color);
}

.grid-2-cols {
    display: grid;
    gap: 1.5rem;
  }
  
  .grid-2-cols div {
    display: flex;
    flex-direction: column;
  }
  .grid-2-cols label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
  }
  
  .grid-2-cols input,
  .grid-2-cols select,
  .grid-2-cols textarea {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
  }


/* Carta del producto */

.card-d{
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden; 
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;
}

.producto-titulo h3{
    font-weight: 600;
}

.producto-anio span{
    color: grey;
    font-weight: 600;

}

.producto-anio{
    font-weight: 500;
}

.producto-precio{
    font-weight: 600;
}

.bold{
    font-weight: bold;
}

.planes-intro {
    text-align: center;
    margin: 20px auto 20px;
    font-size: 1.1em;
    line-height: 1.6em;
    color: #333;
    padding: 12px;
    border: 2px solid #2c9c8d;
}   

@media (max-width: 768px) {
    .card-d {
        width: calc(50% - 5px);
    }
    
    .producto-data {
        padding: 5px;
    }
    
    .producto-titulo h3 {
        padding: 3px 0;
    }
    
    .producto-anio {
        margin: 3px 0;
    }
    
    .producto-precio {
        margin: 5px 0;
    }
    
    .producto-beneficios {
        margin: 3px 0;
    }

    .imagen-container {
        width: 100%;
        height: 150px;
        overflow: hidden;
    }

    .imagen-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}

@media (min-width: 769px) {
    .card-d {
        flex: 0 0 calc(100% / 4); /* 4 tarjetas visibles */
    }
    .producto-data{
        padding: 5px 10px;
    }
    .producto-titulo h3{
        padding: 5px 0;
    }

    .producto-anio{
        margin: 5px 0;
    }
    .producto-precio{
        margin: 8px 0;
    }
    .producto-beneficios{
        margin: 5px 0;
    }
    .imagen-container{
        width: 100%; 
        height: 200px; 
        overflow: hidden; 

    }
    .imagen-container img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        object-position: center; 
    }
    .grid-2-cols {
    grid-template-columns: 1fr 1fr;
    }
}