/**
 * 2025 ALCALINK E-COMMERCE & SEO, S.L.L.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * @author ALCALINK E-COMMERCE & SEO, S.L.L. <info@alcalink.com>
 * @copyright  2025 ALCALINK E-COMMERCE & SEO, S.L.L.
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *
 * Registered Trademark & Property of ALCALINK E-COMMERCE & SEO, S.L.L.
 */
.alcapacks-box {
    margin: 30px 0px;
}

.alcapacks-container {
    margin-top:10px;
    padding: 15px 0px;
}

.alcapacks-container h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estructura de cada pack */
.alcapack {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    border-bottom: none;
    margin-bottom: 0;
    padding: 15px;
    background-color: #eee;
    position: relative;
    margin-bottom: 10px;
}

/* Cabecera del pack */
.pack-header .pack-title {
    font-size: 18px;
    margin-bottom: 15px;
    width: 50%;
}

.pack-header .pack-title a {
    color: #2c3e50;
    text-decoration: none;
}

/* Productos del pack */
.pack-products {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin-bottom: 20px;
    justify-content: center;
    margin-top: 80px;
}

.pack-product {
    text-align: center;
    width: 130px;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 20px;
}

.pack-product:hover {
    transform: translateY(-5px);
}
.pack-product:last-child::after {
    display: none;
}
.pack-product::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 40%;
    font-size: 24px;
}

.pack-product a {
    text-decoration: none;
    color: #333;
    display: block;
}

.pack-product img {
    max-width: 100%;
    height: auto;
    border: 1px solid transparent;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.pack-product span {
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

/* Precios y ahorros */
.pack-prices {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    padding: 10px 15px 0px 10px;
}

.pack-price-total,
.pack-price-individual,
.pack-savings,
.pack-discount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.pack-price-total {
    font-size: 14px;
    font-weight: bold;
}

.pack-price-individual,
.pack-discount {
    font-size: 12px;
}

.pack-savings {
    font-weight: bold;
    font-size: 14px;
}

.price-label,
.savings-label,
.discount-label {
    font-weight: normal;
}

/* Ofertas especiales */
.extra-offers {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.extra-offer {
    margin-bottom: 10px;
}

.offer-text {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.offer-discount {
    margin-top: 5px;
    font-size: 13px;
}

/* Botón de acción */
.pack-actions {
    margin-top: 15px;
    text-align: center;
}

.pack-actions .btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .pack-products {
        justify-content: center;
        margin-top: 20px;
    }
    
    .alcapacks-container {
        padding: 15px;
    }
    .pack-prices {
        position: relative;
        padding-bottom: 5px;
    }
    .pack-header .pack-title {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .pack-product span {
        font-size: 11px;
    }
}

@media (min-width: 992px) {

    .alcapacks-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .alcapack {
        width: calc(50% - 10px);
    }

    .alcapacks-container:has(.alcapack:only-child) {
        .alcapack {
            width: 100%;
        }
    }
    .pack-header .pack-title {
        width: 50%;
    }
}

.pack-price-individual .price-amount{
    text-decoration: line-through;
}

.alcapacks-container .hidden{
    display: none;
}

/* view more */
span#packs-view-more:hover {
    color: #000;
}

span#packs-view-more {
    display: flex;
    justify-content: center;
    cursor: pointer;
    text-transform: uppercase;
}

.alcapacks-box i.arrow {
    font-size: 20px;
}
