/* =========================================================
   SOLUCIONES ANTIGRASA
========================================================= */
.food-greaseproof {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%,
            rgba(58, 126, 61, 0.08),
            transparent 32%),
        #f7f9fc;
}

/* =========================================================
   CARRUSEL
========================================================= */
.food-greaseproof__carousel {
    position: relative;
    margin-top: 3.5rem;
    margin-inline: 0.5rem;
    background: transparent;
}

.food-greaseproof__viewport {
    position: relative;
    overflow: hidden;

    /*
     * Dejamos espacio interno para que las sombras
     * de las tarjetas no sean cortadas.
     */
    padding-top: 1.5rem;
    padding-bottom: 2rem;

    /*
     * Compensamos ese espacio para no aumentar
     * visualmente la separación de la sección.
     */
    margin-top: -1.5rem;
    margin-bottom: -2rem;
    background: transparent;
    border-radius: 0;
}

.food-greaseproof__track {
    display: flex;
    gap: 1.5rem;
    background: transparent;
    transition: transform 0.45s ease;
}

/* =========================================================
   TARJETA
========================================================= */
.food-greaseproof-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 39, 71, 0.07);
    border-radius: 20px;
    box-shadow:
        0 8px 24px rgba(15, 39, 71, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.food-greaseproof-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 30px rgba(15, 39, 71, 0.11);
}

/* =========================================================
   IMAGEN
========================================================= */
.food-greaseproof-card__image {
    position: relative;
    overflow: hidden;
}

.food-greaseproof-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 620 / 480;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.food-greaseproof-card:hover .food-greaseproof-card__image img {
    transform: scale(1.035);
}


.food-greaseproof-card__tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    background: rgba(15, 39, 71, 0.92);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* =========================================================
   CONTENIDO
========================================================= */
.food-greaseproof-card__content {
    display: flex;
    flex-direction: column;
    min-height: 255px;
    padding: 1.35rem 1.4rem 1.5rem;
}

.food-greaseproof-card__content h3 {
    margin: 0 0 0.75rem;
    color: #102b66;
    font-size: 1.15rem;
    line-height: 1.25;
}

.food-greaseproof-card__content p {
    margin: 0 0 1.1rem;
    color: #5c6675;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================================================
   MEDIDAS
========================================================= */
.food-greaseproof-card__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.15rem;
}


.food-greaseproof-card__sizes span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.65rem;
    background: #eef5e8;
    color: #3f7d2a;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 999px;
}

/* =========================================================
   BOTÓN TARJETA
========================================================= */
.food-greaseproof-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: #102b66;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.food-greaseproof-card__link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.food-greaseproof-card__link:hover {
    gap: 0.75rem;
    color: #4f8d2f;
}

/* =========================================================
   CONTROLES DEL CARRUSEL
========================================================= */
.food-greaseproof__control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(15, 39, 71, 0.1);
    border-radius: 50%;
    background: #ffffff;
    color: #102b66;
    box-shadow:
        0 10px 28px rgba(15, 39, 71, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.food-greaseproof__control svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.food-greaseproof__control:hover {
    background: #102b66;
    color: #ffffff;
    transform:
        translateY(-50%) scale(1.05);
}

.food-greaseproof__control--prev {
    left: -20px;
}

.food-greaseproof__control--next {
    right: -20px;
}

.food-greaseproof__control:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* =========================================================
   PAGINACIÓN
========================================================= */
.food-greaseproof__pagination {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.75rem;
}

.food-greaseproof__pagination span {
    width: 8px;
    height: 8px;
    background: #cbd3de;
    border-radius: 999px;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.food-greaseproof__pagination span.is-active {
    width: 26px;
    background: #4f8d2f;
}

/* =========================================================
   BENEFICIOS INFERIORES
========================================================= */
.food-greaseproof__features {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 2.5rem;
}

.food-greaseproof__features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #344152;
    font-size: 0.86rem;
    font-weight: 500;
}

.food-greaseproof__features svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #4f8d2f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.greaseproof-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.greaseproof-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.greaseproof-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 36, 0.78);
    backdrop-filter: blur(4px);
}

.greaseproof-lightbox__dialog {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   LIGHTBOX HEADER
========================================================= */
.greaseproof-lightbox__header {
    padding: 1.5rem 4rem 1rem 1.5rem;
}

.greaseproof-lightbox__header span {
    display: block;
    margin-bottom: 0.25rem;
    color: #4f8d2f;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.greaseproof-lightbox__header h3 {
    margin: 0;
    color: #102b66;
    font-size: 1.4rem;
}

/* =========================================================
   CERRAR
========================================================= */
.greaseproof-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f7;
    color: #102b66;
    cursor: pointer;
}

.greaseproof-lightbox__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* =========================================================
   VISOR
========================================================= */
.greaseproof-lightbox__viewer {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: center;
    padding: 0 1.25rem;
}

.greaseproof-lightbox__image {
    overflow: hidden;
    background: #f2f4f7;
    border-radius: 14px;
}

.greaseproof-lightbox__image img {
    display: block;
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

/* =========================================================
   CONTROLES LIGHTBOX
========================================================= */
.greaseproof-lightbox__control {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: auto;
    border: 0;
    border-radius: 50%;
    background: #102b66;
    color: #ffffff;
    cursor: pointer;
}

.greaseproof-lightbox__control svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   ENLACE INTERNO - TARJETAS DE APLICACIONES
========================================================= */
.food-application-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    margin-top: 1rem;
    color: #102b66;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.food-application-card__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}


/* HOVER */
.food-application-card__link:hover {
    color: #4f8d2f;
    gap: 0.7rem;
}

.food-application-card__link:hover svg {
    transform: translateX(3px);
}

/* TECLADO / ACCESIBILIDAD */
.food-application-card__link:focus-visible {
    outline: 2px solid #4f8d2f;
    outline-offset: 4px;
    border-radius: 3px;
}

/* =========================================================
   FOOTER LIGHTBOX
========================================================= */
.greaseproof-lightbox__footer {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem 1.4rem;
    color: #6b7482;
    font-size: 0.82rem;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 980px) {
    .food-greaseproof-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }

    .food-greaseproof__control--prev {
        left: -10px;
    }

    .food-greaseproof__control--next {
        right: -10px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 640px) {
    .food-greaseproof__carousel {
        margin-top: 2.5rem;
    }

    .food-greaseproof-card {
        flex: 0 0 100%;
    }

    .food-greaseproof-card__content {
        min-height: auto;
    }

    .food-greaseproof__control {
        width: 40px;
        height: 40px;
    }

    .food-greaseproof__control--prev {
        left: 8px;
    }

    .food-greaseproof__control--next {
        right: 8px;
    }

    .food-greaseproof__features {
        justify-content: flex-start;
        gap: 0.75rem 1rem;
    }

    .greaseproof-lightbox {
        padding: 0.75rem;
    }

    .greaseproof-lightbox__viewer {
        grid-template-columns: 38px minmax(0, 1fr) 38px;

        padding: 0 0.5rem;
    }

    .greaseproof-lightbox__control {
        width: 34px;
        height: 34px;
    }

    .food-greaseproof__viewport {
        touch-action: pan-y;
    }

    .greaseproof-lightbox__image {
        touch-action: pan-y;
    }

    .food-application-card__link {
        margin-top: 0.85rem;
        font-size: 0.84rem;
    }
}