/* ——— Ficha de bodega ——— */
/* Sin gutter en el contenedor: el hero puede ir de borde a borde */
#bcontainer:has(.producer-ficha) {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}

.producer-ficha {
    margin: 0 0 48px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.producer-ficha__hero {
    display: block;
    width: 100%;
    margin: 0 0 24px;
}

.producer-ficha__stage {
    display: block;
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #1a0a12;
    border-radius: 0;
}

.producer-ficha__hero--logo .producer-ficha__stage {
    height: 300px;
}

.producer-ficha__stage-fallback {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(111, 28, 72, 0.4) 0%, transparent 70%),
        linear-gradient(160deg, #2a101c 0%, #4a142f 100%);
}

.producer-ficha__mosaic {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    gap: 2px;
    background: #12060c;
}

.producer-ficha__mosaic--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.producer-ficha__mosaic--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.producer-ficha__mosaic--3 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

.producer-ficha__mosaic--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.producer-ficha__mosaic--5 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1.15fr 1fr;
}

.producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(1),
.producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(2) {
    grid-column: span 1;
}

.producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(4) {
    grid-column: 1 / span 1;
}

.producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(5) {
    grid-column: 2 / span 2;
}

.producer-ficha__mosaic--6 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.producer-ficha__mosaic-item {
    margin: 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
    opacity: 0;
    -webkit-animation: producer-ficha-tile 0.85s ease forwards;
    animation: producer-ficha-tile 0.85s ease forwards;
}

.producer-ficha__mosaic-item:nth-child(1) { -webkit-animation-delay: 0.05s; animation-delay: 0.05s; }
.producer-ficha__mosaic-item:nth-child(2) { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
.producer-ficha__mosaic-item:nth-child(3) { -webkit-animation-delay: 0.19s; animation-delay: 0.19s; }
.producer-ficha__mosaic-item:nth-child(4) { -webkit-animation-delay: 0.26s; animation-delay: 0.26s; }
.producer-ficha__mosaic-item:nth-child(5) { -webkit-animation-delay: 0.33s; animation-delay: 0.33s; }
.producer-ficha__mosaic-item:nth-child(6) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }

.producer-ficha__mosaic-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    -webkit-filter: brightness(0.97) saturate(1.04);
    filter: brightness(0.97) saturate(1.04);
    transition:
        transform 0.7s ease,
        filter 0.45s ease;
}

.producer-ficha__mosaic-item:hover img {
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
    -webkit-filter: brightness(1.04) saturate(1.06);
    filter: brightness(1.04) saturate(1.06);
}

/* Grano fuerte */
.producer-ficha__stage::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

@-webkit-keyframes producer-ficha-tile {
    from {
        opacity: 0;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes producer-ficha-tile {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Soft veil — keeps photos visible, only darkens bottom for text */
.producer-ficha__veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(12, 4, 8, 0.14) 0%,
            rgba(12, 4, 8, 0.06) 40%,
            rgba(12, 4, 8, 0.55) 78%,
            rgba(12, 4, 8, 0.82) 100%
        );
}

.producer-ficha__overlay {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 22px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.producer-ficha__overlay > * {
    pointer-events: auto;
}

.producer-ficha__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(112px, 28vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    -webkit-animation: producer-ficha-rise 0.65s ease 0.06s forwards;
    animation: producer-ficha-rise 0.65s ease 0.06s forwards;
}

.producer-ficha__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.producer-ficha__eyebrow {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 245, 248, 0.8);
    opacity: 0;
    -webkit-animation: producer-ficha-rise 0.6s ease 0.12s forwards;
    animation: producer-ficha-rise 0.6s ease 0.12s forwards;
}

.producer-ficha__name {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    opacity: 0;
    -webkit-animation: producer-ficha-rise 0.65s ease 0.16s forwards;
    animation: producer-ficha-rise 0.65s ease 0.16s forwards;
}

.producer-ficha__lede {
    margin: 0 auto 12px;
    max-width: 440px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 245, 248, 0.88);
    opacity: 0;
    -webkit-animation: producer-ficha-rise 0.65s ease 0.2s forwards;
    animation: producer-ficha-rise 0.65s ease 0.2s forwards;
}

.producer-ficha__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    opacity: 0;
    -webkit-animation: producer-ficha-rise 0.65s ease 0.24s forwards;
    animation: producer-ficha-rise 0.65s ease 0.24s forwards;
}

.producer-ficha__share {
    color: rgba(255, 245, 248, 0.92);
    font-size: 14px;
}

.producer-ficha__share .ev-share-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.producer-ficha__share .ev-share-link-btn {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: inherit;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.producer-ficha__share .ev-share-link-btn:hover,
.producer-ficha__share .ev-share-link-btn:focus {
    color: #fff;
    background: transparent;
    text-decoration: underline;
}

.producer-ficha__share .ev-share-link-btn i {
    display: inline-block;
    margin-right: 4px;
    font-size: 12px;
    line-height: 1;
}

.producer-ficha__share .ev-share-link-label {
    display: inline;
    margin: 0;
}

.producer-ficha__cta {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: #6f1c48 !important;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.producer-ficha__cta:hover,
.producer-ficha__cta:focus {
    background: #6f1c48;
    border-color: #6f1c48;
    color: #fff !important;
    text-decoration: none;
}

@-webkit-keyframes producer-ficha-rise {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes producer-ficha-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producer-ficha__engage {
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    background: #fbf8f9;
    border-top: 1px solid #ebe4e8;
    border-bottom: 1px solid #ebe4e8;
}

.producer-ficha__engage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 40px;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px;
    border: 0;
    background: transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .producer-ficha__engage-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.producer-ficha__engage-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: #2f2f2f;
    line-height: 1.25;
}

.producer-ficha__ship-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.producer-ficha__ship-list li {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #eee;
}

.producer-ficha__ship-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.producer-ficha__ship-label {
    display: block;
    color: #6f1c48;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.producer-ficha__ship-note {
    display: block;
    margin-top: 2px;
    color: #777;
    font-size: 13px;
    line-height: 1.35;
}

.producer-ficha__ship-foot {
    margin: 14px 0 0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.producer-ficha__subscribe-note {
    margin: -4px 0 12px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.producer-ficha__subscribe.promo-subscription h3,
.producer-ficha__subscribe .producer-ficha__engage-title {
    margin-bottom: 8px;
}

.producer-ficha__discount {
    margin: 0 0 24px;
    padding: 0 var(--ev-page-gutter, 30px);
}

.producer-ficha__body {
    padding: 0 var(--ev-page-gutter, 30px);
}

.producer-ficha__section-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    color: #2f2f2f;
    text-align: center;
    letter-spacing: 0.02em;
}

.producer-ficha__gallery {
    margin: 40px 0 16px;
    padding-top: 8px;
}

.producer-ficha__gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .producer-ficha__gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.producer-ficha__gallery-item {
    margin: 0;
    overflow: hidden;
    background: #f3eef1;
    aspect-ratio: 1 / 1;
}

.producer-ficha__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.producer-ficha__gallery-item:hover img {
    transform: scale(1.04);
}

.producer-ficha__story {
    margin: 48px 0 24px;
    padding: 36px 28px;
    background: #faf7f8;
    border-top: 1px solid #ebe4e8;
    border-bottom: 1px solid #ebe4e8;
}

.producer-history {
    margin-bottom: 20px;
}

.producer-ficha__history-body {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.producer-ficha__history-body p {
    margin: 0 0 1em;
}

.producer-ficha__history-body p:last-child {
    margin-bottom: 0;
}

.producer-ficha__facts #producer-data,
#producer-data {
    margin: 0;
    padding: 24px 22px;
    list-style: none;
    background: #fff;
    border: 1px solid #e8e0e4;
}

#producer-data li {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #f0eaed;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

#producer-data li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

#producer-data .title {
    margin-bottom: 4px;
    color: #6f1c48;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#producer-detail-container {
    margin: 48px 0;
}

#producer-products {
    margin-top: 12px;
}

#producer-products .product-list > h2.txt-c,
#producer-products-in-header .product-list > h2.txt-c {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #2f2f2f;
    margin-bottom: 18px;
}

#producer-products li {
    padding: 5px;
    float: left;
    width: 220px;
    height: 260px;
    border: 1px solid #CCC;
    margin: 4px;
    text-align: center;
}

#producer-images .bx-wrapper {
    margin-bottom: 0;
}

#producer-products .product .image {
    margin-bottom: 8px;
}

#producer .producer-map-container,
.producer-ficha__map {
    width: 100%;
    overflow: hidden;
    margin: 40px 0 0;
    padding: 0 var(--ev-page-gutter, 30px);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#producer .producer-map-container #map,
.producer-ficha__map #map {
    height: 400px;
    margin-bottom: 14px;
    border: 1px solid #e8e0e4;
}

.producer-ficha__map-link {
    display: inline-block;
    color: #6f1c48;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.producer-ficha__map-link:hover {
    color: #5a1735;
}

#producer-logo img {
    margin: auto;
}

#producer {
    background: transparent;
    border: 0;
    padding: 0;
}

#producer h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    margin-bottom: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media screen and (max-width: 767px) {
    .producer-ficha__hero {
        margin: 0 0 20px;
        width: 100%;
    }

    .producer-ficha__stage {
        height: 420px;
    }

    .producer-ficha__mosaic--2,
    .producer-ficha__mosaic--3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .producer-ficha__mosaic--3 .producer-ficha__mosaic-item:nth-child(3) {
        display: none;
    }

    .producer-ficha__mosaic--4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .producer-ficha__mosaic--5,
    .producer-ficha__mosaic--6 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(5),
    .producer-ficha__mosaic--6 .producer-ficha__mosaic-item:nth-child(n+5) {
        display: none;
    }

    .producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(1),
    .producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(2),
    .producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(4),
    .producer-ficha__mosaic--5 .producer-ficha__mosaic-item:nth-child(5) {
        grid-column: auto;
    }

    .producer-ficha__overlay {
        padding: 0 14px 18px;
    }

    .producer-ficha__logo {
        width: min(96px, 26vw);
        margin-bottom: 8px;
        padding: 8px;
    }

    .producer-ficha__engage-grid {
        padding: 24px 20px;
    }

    .producer-ficha__story {
        padding: 28px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .producer-ficha__logo,
    .producer-ficha__eyebrow,
    .producer-ficha__name,
    .producer-ficha__lede,
    .producer-ficha__actions,
    .producer-ficha__mosaic-item {
        opacity: 1;
        -webkit-animation: none;
        animation: none;
        -webkit-transform: none;
        transform: none;
    }

    .producer-ficha__mosaic-item img,
    .producer-ficha__mosaic-item:hover img,
    .producer-ficha__gallery-item img {
        transition: none;
        -webkit-transform: none;
        transform: none;
        -webkit-filter: none;
        filter: none;
    }
}

#producer #social-buttons {
    margin: 0;
}

#producer #social-buttons ul,
#product-tag #social-buttons ul {
    display: inline-block;
}

.producer-h {
    margin: auto;
    margin-bottom: 20px;
    text-align: center;
}

.producer-h img {
    margin: auto;
}
