:root {
    --sand: #e9dfcf;
    --sand-light: #f7f2e9;
    --cream: #fbf8f2;
    --terracotta: #a96d4f;
    --terracotta-dark: #7d4e38;
    --charcoal: #24221d;
    --muted: #746d62;
    --line: #ddd1c0;
    --white: #fffdf9;

    --shadow:
        0 18px 45px rgba(36, 34, 29, .10);

    --radius: 18px;

    --max: 1240px;
}

/* =========================================================
RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--cream);

    color: var(--charcoal);

    font-family:
        "Inter",
        "Helvetica Neue",
        Arial,
        sans-serif;

    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(251, 248, 242, .94);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(221, 209, 192, .7);
}

.header-inner {
    max-width: var(--max);

    height: 88px;

    margin: auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    gap: 28px;

    position: relative;
}

/* =========================================================
LOGO
========================================================= */

.brand {
    width: auto;
    flex: 0 0 auto;
}

.brand img {
    width: auto;
    height: 75px;
    display: block;
}

/* =========================================================
NAVEGACIÓN PRINCIPAL
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 24px;

    margin-left: auto;
}

.main-nav a {
    display: inline-block;

    font-size: 15px;

    text-transform: uppercase;

    letter-spacing: .13em;

    color: #50493f;

    font-weight: 700;

    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

.main-nav a:hover {
    color: var(--terracotta-dark);

    transform: translateY(-3px);
}

.products-menu > button:hover {
    color: var(--terracotta-dark);
}

/* =========================================================
HEADER ACTIONS
BUSCADOR + FAVORITOS
========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    /*
       Reservamos espacio a la derecha para los idiomas.
       Los idiomas NO forman parte visual del bloque principal.
    */

    margin-right: 135px;

    flex: 0 0 auto;
}

.icon-button,
.favorites-link,
.lang-btn,
.menu-button {
    border: 0;

    background: transparent;

    color: var(--charcoal);
}

.icon-button {
    font-size: 29px;

    line-height: 1;

    padding: 6px;
}

.favorites-link {
    position: relative;

    font-size: 25px;

    padding: 6px;
}

.favorites-link b {
    position: absolute;

    top: 0;

    right: -1px;

    min-width: 16px;

    height: 16px;

    border-radius: 50%;

    background: var(--charcoal);

    color: white;

    font-size: 9px;

    display: grid;

    place-items: center;
}

/* =========================================================
TRADUCTORES
MUY A LA DERECHA
SEPARADOS DE TODO LO DEMÁS
========================================================= */

.language-switcher {
    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;

    gap: 5px;

    padding-left: 16px;

    margin: 0;

    border-left:
        1px solid var(--line);

    /*
       Los traductores son pequeños y secundarios.
       No compiten con la navegación.
    */

    height: 32px;
}

/* =========================================================
BANDERAS
========================================================= */

.lang-btn {
    width: 28px;

    height: 28px;

    border-radius: 50%;

    padding: 0;

    opacity: .48;

    filter: grayscale(.35);

    display: flex;

    align-items: center;

    justify-content: center;

    /*
       Las banderas están directamente en el HTML
       como emojis: 🇨🇴 🇬🇧 🇳🇴
    */

    font-family:
        "Segoe UI Emoji",
        "Apple Color Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 16px;

    line-height: 1;

    transition:
        transform .2s ease,
        opacity .2s ease,
        filter .2s ease;
}

.lang-btn:hover {
    transform:
        translateY(-2px)
        scale(1.08);

    opacity: .9;

    filter: none;
}

.lang-btn.active {
    opacity: 1;

    filter: none;
}

/*
   Si en algún momento el JavaScript agrega
   códigos como ES / EN / NO mediante un elemento
   .lang-code, permanecen ocultos.
*/

.lang-btn .lang-code {
    display: none;
}

/* =========================================================
MENÚ MÓVIL
========================================================= */

.menu-button {
    display: none;

    font-size: 24px;
}

/* =========================================================
SEARCH
========================================================= */

.search-panel {
    display: none;

    border-top:
        1px solid var(--line);

    background: var(--white);
}

.search-panel.open {
    display: block;
}

.search-inner {
    max-width: var(--max);

    margin: auto;

    padding: 14px 24px;

    display: flex;

    gap: 12px;
}

.search-inner input {
    flex: 1;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background: var(--cream);

    padding: 13px 18px;

    outline: none;
}

.search-inner input:focus {
    border-color: var(--terracotta);
}

.search-inner button {
    border: 0;

    background: transparent;

    font-size: 28px;
}

/* =========================================================
HERO
========================================================= */

.hero-carousel {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--charcoal);
}

.hero {
    min-height: 660px;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(31, 27, 22, .70),
            rgba(31, 27, 22, .18)
        ),
        url("assets/amazonixfoto.jpg")
        center / cover;
}

.hero-slide {
    width: 100%;

    animation:
        heroFadeIn .55s ease;
}

@keyframes heroFadeIn {

    from {
        opacity: .35;
    }

    to {
        opacity: 1;
    }

}

.hero-content {
    width: min(var(--max), 100%);

    padding: 100px 24px;

    color: white;

    position: relative;

    z-index: 2;
}

.eyebrow {
    text-transform: uppercase;

    letter-spacing: .26em;

    font-size: 11px;

    margin-bottom: 18px;

    opacity: .88;
}

.hero h1 {
    max-width: 680px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    font-size:
        clamp(48px, 7vw, 88px);

    line-height: .98;

    margin: 0 0 24px;
}

.hero p {
    max-width: 560px;

    font-size: 18px;

    color:
        rgba(255, 255, 255, .88);

    margin-bottom: 32px;
}

#heroPrev,
#heroNext {
    transition:
        background .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

#heroPrev:hover,
#heroNext:hover {
    background:
        rgba(0, 0, 0, .48) !important;
}

#heroPrev:hover {
    transform:
        translateY(-50%)
        translateX(-3px) !important;
}

#heroNext:hover {
    transform:
        translateY(-50%)
        translateX(3px) !important;
}

/* =========================================================
BUTTONS
========================================================= */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border:
        1px solid transparent;

    border-radius: 999px;

    padding: 13px 22px;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-size: 11px;

    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    background: var(--charcoal);

    color: white;
}

.button-light {
    background:
        rgba(255, 255, 255, .95);

    color: var(--charcoal);
}

/* =========================================================
SECTIONS
========================================================= */

.section {
    max-width: var(--max);

    margin: auto;

    padding: 88px 24px;
}

.section-header {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    align-items: end;

    margin-bottom: 32px;
}

.section-kicker {
    text-transform: uppercase;

    letter-spacing: .18em;

    font-size: 10px;

    color: var(--terracotta-dark);

    margin-bottom: 8px;
}

.section h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(34px, 4vw, 52px);

    line-height: 1;

    font-weight: 400;

    margin: 0;
}

.section-intro {
    max-width: 540px;

    color: var(--muted);

    margin: 14px 0 0;
}

/* =========================================================
CATEGORIES
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 18px;
}

.category-card {
    min-height: 270px;

    border-radius: var(--radius);

    overflow: hidden;

    position: relative;

    background: var(--sand);

    box-shadow:
        0 8px 28px
        rgba(36, 34, 29, .07);
}

.category-card img {
    width: 100%;

    height: 100%;

    min-height: 270px;

    object-fit: cover;

    transition:
        transform .6s ease;
}

.category-card:hover img {
    transform: scale(1.04);
}

.category-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(28, 25, 21, .65),
            transparent 65%
        );
}

.category-card-content {
    position: absolute;

    z-index: 2;

    bottom: 22px;

    left: 24px;

    color: white;
}

.category-card h3 {
    font-family: Georgia, serif;

    font-size: 30px;

    font-weight: 400;

    margin: 0;
}

.category-card span {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .13em;
}

/* =========================================================
PRODUCTS
========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 34px 20px;
}

.product-card {
    position: relative;

    min-width: 0;
}

.product-image-wrap {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: var(--radius);

    background: transparent;

    display: block;
}

.product-image {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-card.sold-out .product-image {
    filter: saturate(.65);
}

.product-badge {
    position: absolute;

    left: 14px;

    top: 14px;

    z-index: 3;

    background:
        rgba(36, 34, 29, .92);

    color: white;

    border-radius: 999px;

    padding: 7px 11px;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.favorite-btn {
    position: absolute;

    right: 14px;

    top: 14px;

    z-index: 3;

    width: 38px;

    height: 38px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255, 253, 249, .90);

    font-size: 22px;

    display: grid;

    place-items: center;

    transition:
        transform .2s ease;
}

.favorite-btn:hover {
    transform: scale(1.08);
}

.favorite-btn.active {
    color: var(--terracotta-dark);
}

.product-meta {
    padding: 14px 3px 0;
}

.product-name {
    font-family: Georgia, serif;

    font-size: 19px;

    margin: 0 0 3px;
}

.product-price {
    font-size: 13px;

    color: var(--muted);

    font-weight: 700;
}

.product-link {
    display: block;
}

/* =========================================================
HOME CAROUSEL / NOVEDADES
========================================================= */

.carousel-section {
    background: var(--sand-light);

    max-width: none;

    overflow: hidden;
}

.carousel-section > .section {
    max-width: var(--max);
}

.rolling-track-wrap {
    overflow: hidden;

    width: 100%;
}

.rolling-track {
    display: flex;

    gap: 18px;

    transition:
        transform .55s ease;
}

.rolling-item {
    flex:
        0 0
        calc((100% - 54px) / 4);

    min-width: 0;
}

/* =========================================================
STORY / NUESTRA ESENCIA / NUESTRA HISTORIA
========================================================= */

.story {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 60px;

    align-items: center;
}

.story-image {
    aspect-ratio: 1 / 1.05;

    border-radius: 22px;

    overflow: hidden;

    background: var(--sand);
}

.story-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.story-copy {
    min-width: 0;
}

.story-copy h2 {
    margin-bottom: 22px;
}

.story-copy p {
    color: var(--muted);

    max-width: 560px;

    font-size: 16px;

    line-height: 1.75;
}

.story-note {
    border-left:
        2px solid var(--terracotta);

    padding-left: 18px;

    margin-top: 26px;

    color: #5c554b;

    font-size: 14px;

    line-height: 1.7;
}

/* =========================================================
CATALOG
========================================================= */

.catalog-toolbar {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    align-items: center;

    margin: 20px 0 32px;
}

.filter-select {
    border:
        1px solid var(--line);

    background: var(--white);

    padding: 11px 14px;

    border-radius: 999px;

    color: var(--charcoal);
}

.catalog-count {
    margin-left: auto;

    color: var(--muted);

    font-size: 13px;
}

/* =========================================================
PRODUCT DETAIL
========================================================= */

.product-detail {
    max-width: 1100px;

    margin: auto;

    padding: 80px 24px;
}

.breadcrumb {
    font-size: 12px;

    color: var(--muted);

    margin-bottom: 28px;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    gap: 58px;

    align-items: start;
}

.detail-gallery {
    position: sticky;

    top: 115px;
}

.detail-main-image {
    aspect-ratio: 4 / 5;

    border-radius: 22px;

    overflow: hidden;

    background: #e6ded2;
}

.detail-main-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.detail-thumbs {
    display: flex;

    gap: 9px;

    margin-top: 12px;
}

.detail-thumb {
    width: 70px;

    height: 85px;

    border:
        1px solid var(--line);

    border-radius: 10px;

    overflow: hidden;

    padding: 0;

    background: var(--white);
}

.detail-thumb.active {
    border:
        2px solid var(--charcoal);
}

.detail-thumb img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.detail-category {
    color: var(--terracotta-dark);

    text-transform: uppercase;

    letter-spacing: .18em;

    font-size: 10px;
}

.detail-title {
    font-family: Georgia, serif;

    font-weight: 400;

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 1;

    margin: 12px 0 16px;
}

.detail-price {
    font-size: 18px;

    margin-bottom: 28px;
}

.detail-description {
    color: var(--muted);

    font-size: 16px;

    max-width: 500px;
}

.detail-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 30px;
}

/* =========================================================
WHATSAPP
========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    z-index: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    display: block;

}



/* =========================================================
FOOTER
========================================================= */

.site-footer {
    background: #27251f;

    color: #eee7dc;

    padding: 70px 24px 24px;
}

.footer-grid {
    max-width: var(--max);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 40px;
}

.footer-brand img {
    width: 170px;

    filter:
        invert(1)
        grayscale(1);

    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 320px;

    color: #bfb6a8;

    font-size: 13px;
}

.site-footer h3 {
    margin: 0 0 15px;

    font-family: Georgia, serif;

    font-weight: 400;

    font-size: 20px;
}

.footer-links,
.footer-grid > div > a {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-grid a {
    color: #bfb6a8;

    font-size: 13px;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--max);

    border-top:
        1px solid #48443c;

    margin: 55px auto 0;

    padding-top: 18px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #9d9588;

    font-size: 11px;
}

/* =========================================================
EMPTY / LEGAL
========================================================= */

.empty-state {
    padding: 80px 20px;

    text-align: center;

    color: var(--muted);
}

.empty-state h2 {
    font-family: Georgia, serif;

    font-weight: 400;

    color: var(--charcoal);
}

.legal-page {
    max-width: 850px;

    margin: auto;

    padding: 90px 24px;
}

.legal-page h1 {
    font-family: Georgia, serif;

    font-size: 52px;

    font-weight: 400;
}

.legal-page p {
    color: var(--muted);
}

/* =========================================================
PANTALLAS INTERMEDIAS
========================================================= */

@media (max-width: 1180px) {

    .header-inner {
        gap: 18px;
    }

    .brand {
        width: 145px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 13px;

        letter-spacing: .10em;
    }

    .products-menu > button {
        font-size: 13px !important;

        letter-spacing: .10em !important;
    }

    .header-actions {
        margin-right: 120px;
    }

}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .main-nav.mobile-open {
        display: flex;

        position: absolute;

        left: 0;
        right: 0;

        top: 88px;

        z-index: 200;

        background: var(--cream);

        border-bottom:
            1px solid var(--line);

        padding: 20px 24px;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        box-shadow:
            0 18px 30px
            rgba(36, 34, 29, .08);
    }

    .main-nav.mobile-open .products-menu {
        width: 100%;
    }

    .main-nav.mobile-open #productsDropdown {
        position: static !important;

        margin-top: 12px;

        width: 100%;

        box-shadow: none !important;
    }

    /*
       En tablet dejamos de reservar el gran espacio
       para los idiomas porque se comportan de forma
       más compacta.
    */

    .header-actions {
        margin-right: 90px;
    }

    .language-switcher {
        right: 10px;

        padding-left: 10px;

        gap: 2px;
    }

    .hero {
        min-height: 600px;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .rolling-item {
        flex-basis:
            calc((100% - 18px) / 2);
    }

    .story {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .story-image {
        aspect-ratio: 16 / 11;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        position: static;
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
    }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 620px) {

    .header-inner {
        height: 76px;

        padding: 0 16px;

        gap: 12px;
    }

    .brand {
        width: 125px;
    }

    /*
       En móvil los idiomas permanecen discretos
       y siguen pegados al extremo derecho.
    */

    .language-switcher {
        right: 6px;

        display: flex;

        padding-left: 7px;

        gap: 1px;

        height: 28px;
    }

    .lang-btn {
        width: 25px;

        height: 25px;

        font-size: 14px;
    }

    .header-actions {
        margin-left: auto;

        margin-right: 85px;
    }

    .icon-button {
        font-size: 25px;
    }

    .favorites-link {
        font-size: 22px;
    }

    .main-nav.mobile-open {
        top: 76px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 80px 20px 95px;
    }

    .hero h1 {
        font-size:
            clamp(
                42px,
                13vw,
                56px
            );
    }

    .hero p {
        font-size: 16px;
    }

    #heroPrev,
    #heroNext {
        width: 38px !important;

        height: 38px !important;

        font-size: 20px !important;
    }

    #heroPrev {
        left: 10px !important;
    }

    #heroNext {
        right: 10px !important;
    }

    .section {
        padding: 65px 18px;
    }

    .section-header {
        display: block;
    }

    .category-grid,
    .product-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 14px 10px;
    }

    .category-card {
        min-height: 190px;
    }

    .category-card img {
        min-height: 190px;
    }

    .category-card-content {
        left: 14px;

        bottom: 14px;
    }

    .category-card h3 {
        font-size: 23px;
    }

    .category-card span {
        font-size: 9px;
    }

    .product-meta {
        padding-top: 9px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 12px;

        font-weight: 700;
    }

    .rolling-item {
        flex-basis:
            calc((100% - 10px) / 2);
    }

    .story {
        gap: 28px;
    }

    .story-image {
        aspect-ratio: 4 / 3;
    }

    .story-copy p {
        font-size: 15px;
    }

    .legal-page {
        padding: 65px 18px;
    }

    .legal-page h1 {
        font-size: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;

        margin-bottom: 6px;
    }

    .floating-whatsapp {
        right: 14px;

        bottom: 14px;
    }
}

/* =========================================================
MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

    .category-grid,
    .product-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .category-card {
        min-height: 165px;
    }

    .category-card img {
        min-height: 165px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .rolling-item {
        flex-basis:
            calc((100% - 10px) / 2);
    }

}