/* =========================================================================
   Fleischmann — Página de Productos (estilo Tostitos)
   Intro → Carrusel de destacados → Feed (catálogo con filtros)
   Transiciones de bloque redondeado + parallax (animado en animations.js)
   ========================================================================= */

/* ---- Intro / hero compacto -------------------------------------------- */
.products-intro {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(1, 33, 105, 0.92), rgba(0, 18, 63, 0.94)),
        url("../img/textures/products-pattern.jpg") top left / 260px repeat,
        var(--blue);
    color: var(--white);
    padding: 122px 48px 58px;
}

.products-intro-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.products-intro .section-eyebrow {
    color: var(--gold);
}

.products-intro h1 {
    font-family: var(--font-brand);
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 900;
    line-height: 0.96;
    margin: 8px 0 18px;
}

.products-intro p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    max-width: 600px;
    margin: 0;
}

.products-intro .fx-prod-intro {
    top: 16%;
    right: 5%;
    width: clamp(128px, 15.3vw, 238px);
    z-index: 1;
}

/* ---- Carrusel de destacados ------------------------------------------- */
.featured {
    position: relative;
    z-index: 3;
    margin-top: -48px;
    border-radius: 48px 48px 0 0;
    background: var(--cream);
    padding: 64px 0 74px;
}

.featured-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto 26px;
    padding: 0 48px;
}

.featured-head .section-eyebrow {
    color: var(--blue);
}

.featured-head h2 {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: clamp(26px, 3.1vw, 39px);
    font-weight: 900;
    line-height: 1.02;
    margin: 6px 0 0;
}

.featured-controls {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.featured-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(1, 33, 105, 0.18);
    background: var(--white);
    color: var(--blue);
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.featured-controls button:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.featured-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.featured-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 48px 22px;
}

.featured-viewport::-webkit-scrollbar {
    display: none;
}

.featured-track {
    display: flex;
    gap: 28px;
    width: max-content;
}

.featured-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: min(86vw, 860px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(1, 33, 105, 0.06);
    box-shadow: 0 26px 50px rgba(1, 33, 105, 0.12);
}

.featured-media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    min-height: 340px;
    background: linear-gradient(160deg, var(--blue), var(--blue-deep));
}

.featured-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 62%);
}

.featured-media img {
    position: relative;
    z-index: 1;
    max-height: 300px;
    width: auto;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42));
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-media img {
    transform: scale(1.05) rotate(-1deg);
}

.featured-body {
    display: flex;
    flex-direction: column;
    padding: 38px 38px 34px;
}

.featured-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 13px;
    margin-bottom: 14px;
}

.featured-badge-gold { background: var(--gold); color: var(--blue); }
.featured-badge-blue { background: var(--blue); color: var(--white); }
.featured-badge-red  { background: var(--red);  color: var(--white); }

.featured-cat {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 8px;
}

.featured-body h3 {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 900;
    line-height: 1.06;
    margin: 0 0 14px;
}

.featured-body > p {
    color: var(--body);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 18px;
}

.featured-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
}

.featured-chips span {
    background: rgba(1, 33, 105, 0.06);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
}

.featured-cta {
    margin-top: 22px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--blue);
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.featured-cta:hover {
    background: #e6b400;
    transform: translateX(3px);
}

.featured-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 10px;
}

.featured-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(1, 33, 105, 0.2);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.featured-dots button.is-active {
    width: 26px;
    border-radius: 99px;
    background: var(--red);
}

/* ---- Feed: solapa la sección de destacados con borde redondeado -------- */
.products-feed {
    position: relative;
    z-index: 4;
    margin-top: -34px;
    border-radius: 48px 48px 0 0;
    box-shadow: 0 -22px 44px rgba(1, 33, 105, 0.06);
    overflow: hidden;
    min-height: auto;
    padding-top: 60px;
}

.products-feed .catalog-heading .section-eyebrow {
    color: var(--blue);
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1120px) {
    .products-intro {
        padding: 130px 32px 104px;
    }
    .featured-card {
        width: min(90vw, 720px);
    }
}

@media (max-width: 860px) {
    .featured-card {
        grid-template-columns: 1fr;
        width: 84vw;
    }
    .featured-media {
        min-height: 230px;
    }
}

@media (max-width: 720px) {
    .products-intro {
        padding: 116px 22px 92px;
    }
    .products-intro .fx-prod-intro {
        display: none;
    }
    .featured {
        border-radius: 32px 32px 0 0;
        padding: 48px 0 56px;
    }
    .featured-head,
    .featured-viewport {
        padding-left: 22px;
        padding-right: 22px;
    }
    .products-feed {
        border-radius: 32px 32px 0 0;
    }
}

/* =========================================================================
   Detalle de producto — TEMPLATE (estilo Tostitos)
   ========================================================================= */
.pdt {
    background: var(--cream-strong);
    padding: 120px 48px 72px;
}

.pdt-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pdt-siblings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.pdt-sib {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(1, 33, 105, 0.14);
    background: var(--white);
    transition: background 0.2s ease, color 0.2s ease;
}

.pdt-sib:hover {
    background: var(--blue);
    color: var(--white);
}

.pdt-sib span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdt .breadcrumb {
    margin: 0;
}

.pdt-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 54px;
    align-items: center;
}

.pdt-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 42px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--blue), var(--blue-deep));
}

.pdt-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 60%);
}

.pdt-visual img {
    position: relative;
    z-index: 1;
    max-height: 420px;
    width: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.pdt-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 14px;
}

.pdt-badge-blue,
.pdt-badge-gold { background: var(--gold); color: var(--blue); }
.pdt-badge-red  { background: var(--red);  color: var(--white); }

.pdt-size {
    position: absolute;
    bottom: 22px;
    right: 22px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    padding: 7px 13px;
}

.pdt-info .section-eyebrow { color: var(--blue); }

.pdt-info h1 {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: clamp(32px, 3.9vw, 51px);
    font-weight: 900;
    line-height: 1;
    margin: 8px 0 8px;
}

.pdt-subtitle {
    color: var(--blue);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 18px;
}

.pdt-description {
    color: var(--body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 26px;
    max-width: 560px;
}

.pdt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pdt-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    padding: 13px 22px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdt-cta-primary:hover {
    background: var(--red-deep);
    transform: translateX(3px);
}

.pdt-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(1, 33, 105, 0.2);
    color: var(--blue);
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pdt-cta-secondary:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Tira de atributos (icon strip) */
.pdt-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 46px 0;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(1, 33, 105, 0.06);
}

.pdt-feature {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pdt-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(1, 33, 105, 0.1);
}

.pdt-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 6px;
}

.pdt-feature strong {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.pdt-feature > span {
    color: var(--body);
    font-size: 13px;
}

/* Acordeón de secciones */
.pdt-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 64px;
}

.pdt-acc-item {
    background: var(--white);
    border: 1px solid rgba(1, 33, 105, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.pdt-acc-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: 20px;
    font-weight: 800;
}

.pdt-acc-item summary::-webkit-details-marker { display: none; }

.pdt-acc-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(1, 33, 105, 0.07);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pdt-acc-title { flex: 1; }

.pdt-acc-chev {
    font-size: 22px;
    color: var(--blue);
    transition: transform 0.3s ease;
}

.pdt-acc-item[open] .pdt-acc-chev { transform: rotate(180deg); }

.pdt-acc-body { padding: 0 24px 22px 78px; }

.pdt-acc-body p {
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Relacionados */
.pdt-related {
    border-top: 1px solid rgba(1, 33, 105, 0.1);
    padding-top: 48px;
}

.pdt-related-head { margin-bottom: 28px; }
.pdt-related-head .section-eyebrow { color: var(--blue); }

.pdt-related-head h2 {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 900;
    margin: 6px 0 0;
}

.pdt-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pdt-related-card {
    display: block;
    background: var(--white);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(28, 28, 27, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdt-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px rgba(28, 28, 27, 0.12);
}

.pdt-related-media {
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--cream), var(--cream-strong));
}

.pdt-related-media img {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(0 14px 18px rgba(1, 33, 105, 0.18));
}

.pdt-related-cat {
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 6px;
}

.pdt-related-card h3 {
    font-family: var(--font-brand);
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 14px;
}

.pdt-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .pdt { padding: 104px 32px 64px; }
    .pdt-hero { grid-template-columns: 1fr; gap: 32px; }
    .pdt-features { grid-template-columns: repeat(2, 1fr); }
    .pdt-feature:nth-child(2)::after { display: none; }
    .pdt-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .pdt { padding: 96px 20px 52px; }
    .pdt-features { grid-template-columns: 1fr; gap: 22px; }
    .pdt-feature::after { display: none !important; }
    .pdt-acc-body { padding-left: 24px; }
    .pdt-related-grid { grid-template-columns: 1fr; }
    .pdt-siblings { justify-content: center; }
    .pdt-sib span { max-width: 120px; }
}

/* Jerarquía de tamaño de renders: sacos grandes > bolsas medianas > sobres */
.featured-media img.render-md { max-height: 258px; }
.featured-media img.render-sm { max-height: 225px; }

.catalog-card-render img.render-md { height: 87%; }
.catalog-card-render img.render-sm { height: 76%; }

.product-pack-card img.render-md { max-height: 320px; }
.product-pack-card img.render-sm { max-height: 275px; }
