:root {
    --site-bg: #f7f2eb;
    --site-surface: rgba(255, 255, 255, 0.78);
    --site-ink: #1f2937;
    --site-muted: #6b7280;
    --site-line: rgba(17, 24, 39, 0.1);
    --site-accent: #9a3412;
    --site-accent-soft: rgba(154, 52, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body:not(.ea) {
    margin: 0;
    color: var(--site-ink);
    background:
        radial-gradient(circle at top left, rgba(154, 52, 18, 0.09), transparent 24rem),
        radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.08), transparent 18rem),
        linear-gradient(180deg, #fbf8f3 0%, var(--site-bg) 100%);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 40;
    color: #223653;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(34, 54, 83, .08);
}

.public-header__top {
    background: #203a61;
    color: #fff;
}

.public-header__top-inner,
.public-header__main-inner {
    width: min(100%, 1920px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-inline: clamp(1.25rem, 2.1vw, 2.7rem);
}

.public-header__top-inner {
    min-height: 58px;
    justify-content: space-between;
    gap: 1rem;
}

.public-header__access,
.public-header .legacy-locale-switcher {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.7vw, 4rem);
}

.public-header__access a,
.public-header .legacy-locale-switcher__item {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.public-header .legacy-locale-switcher {
    gap: 0;
}

.public-header .legacy-locale-switcher__item {
    position: relative;
    display: inline-flex;
    min-width: 3rem;
    min-height: 1.9rem;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
}

.public-header .legacy-locale-switcher__item + .legacy-locale-switcher__item::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: 1.1rem;
    background: rgba(255, 255, 255, .72);
}

.public-header .legacy-locale-switcher__item--active {
    min-width: 2.15rem;
    min-height: 2.15rem;
    border-radius: 999px;
    color: #203a61;
    background: #fff;
    font-weight: 800;
}

.public-header .legacy-locale-switcher__item--active::before,
.public-header .legacy-locale-switcher__item--active + .legacy-locale-switcher__item::before {
    display: none;
}

.public-header__main {
    background: #f7f7f7;
}

.public-header__main-inner {
    min-height: 106px;
    justify-content: space-between;
    gap: clamp(1rem, 2.2vw, 3rem);
}

.public-header__brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: clamp(190px, 12vw, 235px);
}

.public-header__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.public-header__nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 4.7rem);
    min-width: 0;
}

.public-header__nav > a,
.public-header__nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #405276;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.public-header__nav a:hover,
.public-header__nav a:focus-visible,
.public-header__nav a.is-active {
    color: #b1132f;
}

.public-header__nav-item {
    position: relative;
}

.public-header__dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    display: none;
    min-width: 220px;
    padding: .55rem;
    border: 1px solid rgba(34, 54, 83, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(34, 54, 83, .14);
    transform: translateX(-50%);
}

.public-header__dropdown a {
    display: block;
    padding: .7rem .8rem;
    border-radius: 6px;
    color: #405276;
    text-decoration: none;
    font-size: .96rem;
    white-space: nowrap;
}

.public-header__dropdown a:hover,
.public-header__dropdown a:focus-visible {
    background: #f2f4f7;
}

.public-header__nav-item.is-open .public-header__dropdown {
    display: block;
}

.public-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(1.2rem, 2.6vw, 3.2rem);
}

.public-header__search {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.public-header__search-toggle {
    display: inline-flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
    color: #173154;
    cursor: pointer;
}

.public-header__search-toggle span {
    position: relative;
    width: 25px;
    height: 25px;
    border: 4px solid currentColor;
    border-radius: 999px;
}

.public-header__search-toggle span::after {
    content: "";
    position: absolute;
    right: -11px;
    bottom: -9px;
    width: 17px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.public-header__search-form {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    gap: .5rem;
    width: min(320px, 90vw);
    padding: .85rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 49, 84, .18);
}

.public-header__search.is-open .public-header__search-form {
    display: flex;
}

.public-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .75rem;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    font-size: .95rem;
    color: #173154;
}

.public-header__search-submit {
    flex: 0 0 auto;
    padding: .55rem 1rem;
    border: none;
    border-radius: 8px;
    background: #d5082e;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
}
.public-header__search-submit:hover { background: #a50303; }

.public-header__catalog {
    display: inline-flex;
    min-width: 196px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.8rem;
    border-radius: 16px;
    background: #d5082e;
    color: #fff;
    text-decoration: none;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.public-header__catalog:hover,
.public-header__catalog:focus-visible {
    background: #b90728;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(251, 248, 243, 0.82);
    border-bottom: 1px solid var(--site-line);
}

.site-header__inner,
.site-footer__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.site-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #9a3412, #7c2d12);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.22);
}

.site-brand__text strong {
    display: block;
    font-size: .98rem;
}

.site-brand__text span {
    display: block;
    color: var(--site-muted);
    font-size: .82rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .68rem .95rem;
    border-radius: 999px;
    color: #374151;
    text-decoration: none;
    font-size: .94rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--site-accent-soft);
    color: var(--site-accent);
    transform: translateY(-1px);
}

.site-nav a.is-active {
    color: #fff8f2;
    background: linear-gradient(135deg, #9a3412, #7c2d12);
    box-shadow: 0 12px 26px rgba(124, 45, 18, 0.2);
}

.site-nav__admin {
    border: 1px solid rgba(154, 52, 18, 0.18);
}

.site-nav .nav-level-2 {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    display: none;
    min-width: 220px;
    padding: .4rem;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.14);
    z-index: 30;
}

.site-nav .nav-level-2 li {
    width: 100%;
}

.site-nav .nav-level-2 a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
}

.site-nav li.has-dropdown:hover > .nav-level-2,
.site-nav li.has-dropdown:focus-within > .nav-level-2 {
    display: grid;
    gap: .2rem;
}

.site-nav .arrow {
    margin-left: .35rem;
    font-size: .8em;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--site-line);
    background: rgba(255, 255, 255, 0.46);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 1.4rem;
    color: var(--site-muted);
    font-size: .92rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.site-footer__links a {
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--site-accent);
}

.product-detail-accordion {
    margin-top: 2rem;
}

.product-detail-accordion > summary {
    display: flex;
    min-height: 5.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 2rem .85rem 2.6rem;
    border-left: 8px solid #c90c2f;
    background: #e9e9e9;
    color: #c90c2f;
    cursor: pointer;
    list-style: none;
}

.product-detail-accordion > summary::-webkit-details-marker {
    display: none;
}

.product-detail-accordion__title {
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.2;
}

.product-detail-accordion__arrow {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-top: 3px solid #ef3340;
    border-right: 3px solid #ef3340;
    transform: translateY(.35rem) rotate(-45deg);
    transition: transform .18s ease;
}

.product-detail-accordion:not([open]) .product-detail-accordion__arrow {
    transform: translateY(-.25rem) rotate(135deg);
}

.product-detail-accordion__content {
    padding-top: 1rem;
}

.site-slider {
    position: relative;
    overflow: hidden;
    background: #f2ede7;
}

.site-slider__viewport {
    overflow: hidden;
    aspect-ratio: 1920 / 634;
    max-height: 634px;
}

.site-slider__track {
    display: flex;
    height: 100%;
    transition: transform .45s ease;
    will-change: transform;
}

.site-slider__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
    background: #e8ded2;
}

.site-slider__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: center;
}

.site-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-slider__video,
.site-slider__embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.site-slider__embed {
    width: 100%;
    height: 100%;
    background: #000;
}

.site-slider__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.12), rgba(31, 41, 55, 0.36));
}

.site-slider__copy {
    position: relative;
    width: min(100%, 820px);
    text-align: center;
    color: #fff;
}

.site-slider__copy img.site-slider__badge {
    position: absolute;
    top: -2rem;
    left: 45%;
    width: clamp(90px, 8vw, 143px);
    height: clamp(90px, 8vw, 143px);
    object-fit: contain;
}

.site-slider__copy .site-slider__eyebrow {
    margin: 0 0 .4rem;
    font-size: clamp(.85rem, 1.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.site-slider__copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: .95;
}

.site-slider__copy .site-slider__accent-title {
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 3.2rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.05;
}

.site-slider__copy p {
    margin: .8rem 0 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.45;
}

.site-slider__cta {
    display: inline-flex;
    margin-top: 1rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #9a3412;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-slider__cta--secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.site-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(21, 31, 47, 0.72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: background-color .2s ease, transform .2s ease;
}

.site-slider__nav:hover,
.site-slider__nav:focus-visible {
    background: rgba(21, 31, 47, 0.92);
    transform: translateY(-50%) scale(1.04);
}

.site-slider__nav--prev {
    left: 1rem;
}

.site-slider__nav--next {
    right: 1rem;
}

.site-slider__bullets {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    gap: .45rem;
    transform: translateX(-50%);
}

.site-slider__bullet {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(21, 31, 47, 0.35);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.site-slider__bullet.is-active {
    background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 780px) {
    /* La cabecera también se fija al hacer scroll en móvil (igual que ibercook.com).
       `top: 0` y `z-index` vienen de la regla base .public-header. */
    .public-header {
        position: sticky;
    }

    .public-header__top-inner,
    .public-header__main-inner {
        padding-inline: 1rem;
    }

    .public-header__top-inner {
        min-height: 48px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: .55rem;
    }

    .public-header__access {
        flex-wrap: wrap;
        gap: .8rem 1.2rem;
    }

    .public-header__access a,
    .public-header .legacy-locale-switcher__item {
        font-size: .92rem;
    }

    .public-header__main-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding-block: 1rem;
    }

    .public-header__brand {
        width: 205px;
    }

    .public-header__nav {
        width: 100%;
        justify-content: flex-start;
        gap: .65rem 1rem;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .public-header__nav > a,
    .public-header__nav-item > a {
        font-size: .98rem;
    }

    .public-header__dropdown {
        left: 0;
        transform: none;
    }

    .public-header__actions {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .public-header__catalog {
        min-width: 0;
        min-height: 46px;
        padding-inline: 1.25rem;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .site-header__inner,
    .site-footer__inner {
        width: min(1120px, calc(100% - 1.3rem));
    }

    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .site-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .site-slider__viewport {
        aspect-ratio: 16 / 9;
    }
}
