/* Paleta oficial Masas Berenice: vino, dorado, crema y café. */
:root {
  --blue: var(--theme-primary, #8f1d18);
  --success: #187a45;
  --shadow: 0 12px 35px rgba(38, 31, 27, .10);
}

::selection { background: #f5c56b; color: #281d18; }
:focus-visible { outline-color: #d99728; }
.section--soft { background: var(--theme-muted, #fff8ec); }
.text-link { color: var(--theme-primary, #8f1d18); }

.site-header { border-color: var(--theme-field-border, #eadcc7); box-shadow: 0 7px 22px rgba(38, 31, 27, .07); }
.nav { min-height: 106px; }
.brand--official { min-width: 315px; }
.brand__logo { width: min(390px, 36vw); max-height: 72px; }
.topbar__shipping,
.topbar__shipping strong,
.topbar__shipping small { color: #ffffff !important; }
.nav__links a:hover,
.nav__links a[aria-current="page"],
.nav-dropdown__label:hover { background: rgba(143, 29, 24, .10); color: var(--theme-navigation-text, #281d18); }
.nav-dropdown__label,
.nav-dropdown__trigger-row > .nav-dropdown__label { color: var(--theme-navigation-text, #281d18); }
.nav-dropdown__trigger-row > .nav-dropdown__label:hover,
.nav-dropdown.is-open .nav-dropdown__label { background: rgba(143, 29, 24, .10); color: var(--theme-navigation-text, #281d18); }
.nav__actions .icon-btn,
.nav__actions .icon-btn:not(.menu-toggle) { border-color: #67110e; background: #67110e; }
.nav__actions .icon-btn:hover { background: #8f1d18; }
.account-link__label { color: #fff7e8; }
.menu-bars,
.menu-bars::before,
.menu-bars::after { background: var(--theme-navigation-text, #281d18); }
.menu-label { color: var(--theme-navigation-text, #281d18); }
.menu-toggle .menu-bars,
.menu-toggle .menu-bars::before,
.menu-toggle .menu-bars::after { background: #ffffff; }
.menu-toggle .menu-label { color: #ffffff; }

.hero-slider { background: #211914; }
.hero-slide {
  background-image: linear-gradient(90deg, rgba(40, 29, 24, .77) 0%, rgba(103, 17, 14, .62) 50%, rgba(40, 29, 24, .19) 100%), var(--slide-image);
}
.hero-slide__content .eyebrow,
.page-hero--image .eyebrow,
.page-hero--catalog .eyebrow,
.about-hero .eyebrow { color: #ffd89a; }
.hero-slide__content .lead,
.hero-facts,
.page-hero--image p,
.page-hero--catalog p { color: #fff7e8; }
.hero-facts span::before { background: #d99728; }
.hero-slider__controls > button,
.hero-slider__dots { background: rgba(40, 29, 24, .72); }

.page-hero--image {
  background-image: linear-gradient(90deg, rgba(40, 29, 24, .75), rgba(103, 17, 14, .48)), var(--page-hero-image);
}
.page-hero--catalog,
.dynamic-hero,
.legal-hero { background: linear-gradient(120deg, #281d18 0%, #67110e 58%, #8f1d18 100%); }
.page-hero--shop {
  background-image: linear-gradient(90deg, rgba(40, 29, 24, .77) 0%, rgba(103, 17, 14, .66) 50%, rgba(40, 29, 24, .24) 100%), var(--shop-hero-image);
}
.about-hero {
  background: linear-gradient(90deg, rgba(40, 29, 24, .77) 0%, rgba(103, 17, 14, .62) 46%, rgba(40, 29, 24, .14) 76%), var(--about-hero-image) center/cover no-repeat;
}

.section--blue,
.section--dark,
.about-audiences,
.about-closing,
.social-band { background: #281d18; }
.about-principle__number,
.about-checks li::before,
.about-steps li > span { background: #8f1d18; }
.about-color { background: linear-gradient(135deg, #fffdf8 0%, #fff8ec 100%); }
.about-media,
.home-welcome__card,
.product-facts div,
.catalog-toolbar--advanced,
.cart-drawer__location,
.cart-progress,
.system-note { background: #fff8ec; }
.home-welcome { background: #fffdf8; }
.home-contact__grid > .card { min-width: 0; }
.home-contact__links {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.home-contact__links a {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #67110e;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: break-word;
}
.home-contact__links a:hover { color: #8f1d18; text-decoration: underline; }
.footer__brand-column > a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.footer__brand-column > a > img {
  display: block;
  width: min(240px, 100%);
  height: auto !important;
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
}
.about-principle,
.about-solutions article,
.about-reasons article,
.legal-card,
.faq-list details,
.review-card { border-color: #eadcc7; }
.product-card__fulfillment-row i { background: #fff3d6; color: #8f1d18; }
.review-card blockquote { border-left-color: #8f1d18; background: #fff8ec; }
.company-review-summary strong,
.legal-content h2,
.legal-content h3,
.review-score { color: #281d18; }
.company-review-section { background: #fff8ec; }
.company-review-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #e5d2bb;
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 18px 55px rgba(103, 17, 14, .10);
}
.company-review-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 22px;
  background: linear-gradient(145deg, #281d18 0%, #67110e 58%, #8f1d18 100%);
  color: #fff7e8;
}
.company-review-intro .eyebrow { color: #ffd89a; }
.company-review-intro h2 { margin: .45rem 0 1rem; color: #ffffff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; }
.company-review-intro p { color: #fff7e8; line-height: 1.65; }
.company-review-intro ul { display: grid; gap: .65rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.company-review-intro li { position: relative; padding-left: 1.4rem; }
.company-review-intro li::before { content: "✓"; position: absolute; left: 0; color: #ffd89a; font-weight: 900; }
.company-review-form { min-width: 0; margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border-color: #e5d2bb; box-shadow: none; }
.company-review-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.company-review-form .field { display: grid; align-content: start; gap: .4rem; min-width: 0; margin: 0; }
.company-review-form .field > span { color: #281d18; font-weight: 850; }
.company-review-form input,
.company-review-form select,
.company-review-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: .8rem .9rem;
  border: 1px solid #d8c2a7;
  border-radius: 11px;
  background: #ffffff;
  color: #281d18;
  font: inherit;
}
.company-review-form input[readonly] { background: #fff8ec; color: #5f5048; }
.company-review-form .field small { color: #7a6557; font-size: .73rem; line-height: 1.4; }
.company-review-form__comment { grid-column: 1 / -1; }
.company-review-form textarea { min-height: 145px; resize: vertical; }
.company-review-form input:focus-visible,
.company-review-form select:focus-visible,
.company-review-form textarea:focus-visible { border-color: #8f1d18; outline: 3px solid rgba(217, 151, 40, .24); outline-offset: 1px; }
.company-review-form__actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.15rem; }
.company-review-form__actions small { max-width: 330px; color: #7a6557; line-height: 1.4; }
.product-fulfillment-notice .fulfillment-choice:not(.fulfillment-card--unavailable) {
  border-color: #8f1d18;
}
.product-fulfillment-notice .fulfillment-choice:not(.fulfillment-card--unavailable):hover {
  border-color: #67110e;
  box-shadow: 0 9px 24px rgba(103, 17, 14, .14);
}
.product-fulfillment-notice .fulfillment-choice:not(.fulfillment-card--unavailable):focus-visible {
  outline-color: rgba(143, 29, 24, .28);
}
.product-fulfillment-notice .fulfillment-choice:not(.fulfillment-card--unavailable) .fulfillment-choice__icon {
  background: #f8e9e7;
  color: #8f1d18;
}
.product-fulfillment-notice .fulfillment-choice:not(.fulfillment-card--unavailable) .fulfillment-choice__copy strong {
  color: #67110e;
}
.product-card__badge,
.product-detail-badge { background: #8f1d18; box-shadow: 0 7px 18px rgba(103, 17, 14, .20); }
.product-card__image { padding: 0 !important; }
.product-card__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover !important;
  object-position: center;
}
.btn--light { color: #67110e; }
.btn--light:hover { background: #fff8ec; color: #67110e; }

@media (max-width: 1080px) {
  .nav { min-height: 88px; }
  .brand--official { max-width: 54vw; }
  .brand__logo { width: clamp(168px, 54vw, 222px); max-height: 54px; }
  .nav__links { border-top: 1px solid #eadcc7; background: var(--theme-navigation-bg, #fff8ec) !important; }
  .nav-dropdown__trigger-row > .nav-dropdown__label { color: var(--theme-navigation-text, #281d18); }
}

@media (max-width: 860px) {
  .company-review-panel { grid-template-columns: 1fr; }
  .company-review-intro { min-height: 0; }
}

@media (max-width: 760px) {
  .hero-slide {
    background-image: linear-gradient(180deg, rgba(40, 29, 24, .66), rgba(103, 17, 14, .61)), var(--slide-image);
  }
  .page-hero--shop {
    background-image: linear-gradient(180deg, rgba(40, 29, 24, .61), rgba(103, 17, 14, .74)), var(--shop-hero-image);
  }
  .about-hero {
    background: linear-gradient(180deg, rgba(40, 29, 24, .19) 0%, rgba(103, 17, 14, .73) 61%, rgba(40, 29, 24, .78) 100%), var(--about-hero-image) 58% center/cover no-repeat;
  }
  body.menu-open .site-header,
  body.menu-open .nav::before { background: var(--theme-navigation-bg, #fff8ec); border-color: #eadcc7; }
  .menu-toggle[aria-expanded="true"] { border-color: #8f1d18 !important; background: #8f1d18 !important; }
}

@media (max-width: 560px) {
  .company-review-panel { padding: .7rem; border-radius: 20px; }
  .company-review-intro,
  .company-review-form { padding: 1.15rem; border-radius: 16px; }
  .company-review-form__grid { grid-template-columns: 1fr; }
  .company-review-form__comment { grid-column: auto; }
  .company-review-form__actions { align-items: stretch; flex-direction: column; }
  .company-review-form__actions .btn { width: 100%; }
}

/* Berenice 6.5.2: cabecera móvil, logo oficial y catálogo responsive. */
#contenido {
  background: var(--theme-surface, #fffdf8);
}
#contenido > .home-welcome,
#contenido > .home-categories,
#contenido > .home-featured,
#contenido > .home-contact,
#contenido > .home-reviews {
  background: var(--theme-surface, #fffdf8) !important;
}

.brand--official {
  min-width: clamp(132px, 11vw, 170px);
}
.brand__logo {
  width: auto;
  height: 88px;
  max-width: 170px;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}
.footer__brand-column > a > img {
  width: min(190px, 100%);
  max-height: 150px;
}
.nav-mobile-tools { display: none; }

/* En escritorio se muestran las once categorías completas en dos filas. */
@media (min-width: 861px) {
  .category-carousel { padding-inline: 0; }
  .category-carousel__track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: clamp(1rem, 2vw, 1.75rem);
    overflow: visible;
    padding-inline: 0;
    scroll-snap-type: none;
  }
  .category-carousel__item { width: 100%; }
  .category-carousel__icon { width: clamp(108px, 9vw, 142px); }
  .category-carousel__arrow { display: none; }
}

@media (max-width: 1080px) {
  .site-header,
  body.menu-open .site-header,
  body.menu-open .nav::before,
  .nav__links {
    background: var(--theme-navigation-bg, #fff8ec) !important;
  }
  .nav { min-height: 78px; }
  .brand--official {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(190px, 54vw);
    overflow: visible;
  }
  .brand__logo {
    width: auto;
    height: 66px;
    max-width: min(118px, 46vw);
    max-height: 66px;
  }
  .nav__actions { margin-left: auto; }
  .nav__actions > :not(.menu-toggle) { display: none !important; }
  .nav__actions .menu-toggle {
    display: grid !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
  }
  .nav-mobile-tools {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin: .65rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #e2cdb3;
  }
  .nav-mobile-tools a {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: .65rem !important;
    border: 1px solid #d8c2a7;
    background: #fffdf8;
    color: #67110e !important;
    text-align: center;
  }
  .nav-dropdown__menu {
    border-color: #e2cdb3;
    background: rgba(255, 253, 248, .72);
  }
  .nav-dropdown__menu a { color: var(--theme-navigation-text, #281d18) !important; }
}

/* Una sola fila táctil en móvil, desplazable horizontalmente. */
@media (max-width: 860px) {
  .category-carousel { padding-inline: 2.4rem; }
  .category-carousel__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 44vw);
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .category-carousel__item { scroll-snap-align: center; }
}

@media (max-width: 700px) {
  .topbar__inner {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .35rem .65rem;
    padding-block: .38rem;
  }
  .topbar__item:first-child {
    display: inline-flex !important;
    min-width: 0;
    color: #ffffff !important;
    font-size: .72rem;
    white-space: nowrap;
  }
  .topbar__address { display: none !important; }
  .topbar__shipping {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    justify-content: flex-end;
    padding: 0;
    text-align: right;
  }
  .topbar__shipping span { display: grid !important; min-width: 0; }
  .topbar__shipping strong {
    font-size: .68rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: normal;
  }
  .topbar__shipping small { display: none; }
  .nav {
    width: min(calc(100% - 24px), var(--max));
    min-height: 72px;
  }
  .brand--official { max-width: min(154px, 55vw); }
  .brand__logo {
    height: 60px;
    max-width: min(98px, 42vw);
    max-height: 60px;
  }
  .nav__actions .menu-toggle { flex-basis: 44px; width: 44px; height: 44px; }
  .category-carousel { padding-inline: 2.25rem; }
  .category-carousel__track {
    grid-auto-columns: minmax(170px, 72vw);
    gap: .75rem;
  }
  .category-carousel__icon { width: 132px; }
}

@media (max-width: 430px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .2rem;
  }
  .topbar__shipping { justify-content: center; text-align: center; }
  .topbar__shipping strong { font-size: .66rem; }
  .nav-mobile-tools { grid-template-columns: 1fr; }
}
