/*
 * Dirección visual seleccionada: Propuesta 1 · Mercado claro
 * Esta capa conserva la estructura y la funcionalidad de la aplicación.
 */

:root {
  --content: min(1240px, calc(100% - 40px));
  --canvas: #f5f8f9;
  --surface: #ffffff;
  --ink: #102c3d;
  --muted: #637985;
  --brand: #0077c8;
  --brand-strong: #0063ab;
  --brand-dark: #034c78;
  --brand-soft: #e5f3f8;
  --accent: #ffc400;
  --line: #d9e6eb;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 5px 16px rgba(18, 66, 88, .08);
  --shadow-md: 0 18px 50px rgba(18, 66, 88, .12);
}

.theme-market {
  background: var(--canvas);
  color: var(--ink);
}

.market-info-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12px;
}

.market-info-bar > div {
  width: var(--content);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.market-info-bar span { color: rgba(255, 255, 255, .82); }
.market-info-bar a { color: #fff; font-weight: 850; }

.site-header {
  position: sticky;
  top: 0;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 25px rgba(18, 66, 88, .08);
}

.header-shell {
  min-height: 82px;
  grid-template-columns: 142px auto minmax(280px, 1fr) auto;
  gap: 20px;
}

.site-header .brand {
  align-self: center;
  width: 128px;
  height: 66px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--brand);
}

.site-header .brand img {
  width: 110px;
  height: 62px;
  filter: none;
}

.catalog-trigger {
  border-radius: 999px;
  color: var(--brand-dark);
}

.catalog-trigger:hover,
.catalog-trigger:focus-visible,
.category-menu.is-open .catalog-trigger {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.site-header .category-dropdown { left: 150px; }

.site-search input {
  height: 46px;
  padding-right: 58px;
  border: 1px solid #bed1d9;
  border-radius: 999px;
  background: #f7fafb;
  box-shadow: none;
}

.site-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 125, 168, .14);
}

.site-search > button {
  top: 3px;
  right: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
}

.account-nav a,
.account-nav a:hover,
.account-nav a:focus-visible {
  color: var(--ink);
}

.account-nav a:hover,
.account-nav a:focus-visible { background: var(--brand-soft); }
.account-status small { color: var(--muted); }
.account-status b { color: var(--ink); }

.account-link.is-authenticated .account-status small { color: #277554; }

.account-nav .cart-link {
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.account-nav .cart-link:hover,
.account-nav .cart-link:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.account-nav strong {
  background: #fff;
  color: var(--brand-dark);
}

.utility-nav {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.utility-nav > div {
  width: var(--content);
  max-width: none;
  min-height: 42px;
  justify-content: flex-start;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.utility-nav a { padding: 10px 0; }
.utility-nav a:first-child { color: var(--brand); }

.promo-strip {
  margin-top: 26px;
  border-radius: 16px;
  box-shadow: none;
}

.hero-carousel-shell { margin-top: 16px; }

.hero-carousel,
.rolleri-hero-stage,
.hero-slide {
  height: 320px;
}

.hero-carousel {
  border-radius: 18px;
  background: var(--brand-soft);
  box-shadow: var(--shadow-md);
}

.hero-slide {
  grid-template-columns: minmax(300px, 35%) minmax(0, 1fr);
  background: var(--brand-soft);
  color: var(--ink);
}

.hero-copy,
.hero-slide--products .hero-copy {
  padding: 26px 36px;
  border-radius: 0 0 90px 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  background: var(--brand-soft);
  color: var(--ink);
}

.hero-slide--products .hero-copy::after { display: none; }

.hero-copy .eyebrow,
.hero-slide--products .hero-copy .eyebrow {
  color: var(--brand);
}

.hero-copy h1,
.hero-copy h2,
.hero-slide--products .hero-copy h1,
.hero-slide--products .hero-copy h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero-copy > p:not(.eyebrow),
.hero-slide--products .hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-copy .button.light {
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.hero-copy .button.light:hover,
.hero-copy .button.light:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.hero-media,
.hero-slide--products .hero-media {
  padding: 14px 30px 30px 18px;
  background: transparent;
}

.hero-media-images,
.hero-slide--products .hero-media-images {
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.hero-media img { background: transparent; object-fit: contain; mix-blend-mode: multiply; }
.hero-media .hero-product-tile { border: 0; border-radius: 0; background: transparent; box-shadow: none; grid-template-rows: minmax(0, 1fr) auto; }
.hero-media .hero-product-tile img { padding: 0 6px 4px; background: transparent; }
.hero-media .hero-product-caption { min-height: 0; padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.75); }
.hero-media .hero-product-caption > span { display: none; }
.hero-media .hero-product-caption strong { font-size: 12px; }
.hero-media .hero-product-caption em { font-size: 10px; }
.hero-copy > * { flex-shrink: 0; }
.hero-copy .eyebrow { margin: 0 0 10px; font-size: 11px; }
.hero-copy > p:not(.eyebrow) { margin-bottom: 14px; }
.hero-copy .button { padding: 9px 18px; min-height: 38px; font-size: 13px; }
.carousel-arrow { position: absolute; z-index: 4; top: 50%; width: 30px; height: 30px; display: grid; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); color: #123f58; font: 30px/1 Arial,sans-serif; cursor: pointer; transform: translateY(-50%); box-shadow: 0 2px 9px #123f5820; }
.carousel-arrow--previous { left: 6px; }
.carousel-arrow--next { right: 6px; }
.carousel-arrow:focus-visible { outline: 3px solid #ffcf00; outline-offset: 2px; }

.hero-product-tile {
  border-radius: 18px;
  box-shadow: none;
}

.carousel-controls { bottom: 3px; max-width: calc(100% - 20px); }

.service-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.service-ribbon > div {
  min-height: 80px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.service-ribbon > div:last-child { border-right: 0; }

.service-ribbon .service-icon {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.home-categories,
.home-products,
.home-offers,
.brand-showcase,
.eco-products,
.company-profile {
  scroll-margin-top: 150px;
}

.section-heading h2,
.company-profile__heading h2,
.eco-products__header h2 {
  letter-spacing: -.035em;
}

.categories { gap: 14px; }

.categories a {
  min-height: 210px;
  border-radius: 20px;
  box-shadow: none;
}

.categories a:hover,
.categories a:focus-visible { box-shadow: var(--shadow-md); }

.card,
.eco-product-card {
  border-radius: 18px;
  box-shadow: none;
}

.card:hover,
.card:focus-within,
.eco-product-card:hover,
.eco-product-card:focus-visible {
  box-shadow: 0 12px 32px rgba(22, 63, 82, .10);
}

.card .product-image { border-radius: 13px; }
.button { border-radius: 999px; }

.brand-showcase {
  border-radius: 18px;
  box-shadow: none;
}

.home-brand-showcase {
  margin-top: 28px;
  margin-bottom: 0;
}

body:has(.home-brand-showcase) .site-footer { margin-top: 28px; }

/* Color comercial de alto contraste */
.promo-strip {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 85, 170, .12);
}

.promo-strip strong,
.promo-strip span,
.promo-strip a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
}

.promo-strip strong {
  align-self: stretch;
  background: #0059dc;
  color: #fff;
}

.promo-strip span {
  flex: 1;
  color: #20364a;
}

.promo-strip a {
  align-self: stretch;
  background: var(--accent);
  color: #102c3d;
}

.promo-strip a span {
  min-height: 0;
  display: inline;
  padding: 0;
  color: inherit;
}

.hero-slide {
  --banner-color: #075be8;
  --banner-dark: #0344bb;
  --banner-stage: #edf4ff;
  background: var(--banner-stage);
}

.hero-slide--theme-2 {
  --banner-color: #008f73;
  --banner-dark: #006b57;
  --banner-stage: #edf7f0;
}

.hero-slide--theme-3 {
  --banner-color: #f06423;
  --banner-dark: #c9430c;
  --banner-stage: #fff1e4;
}

.hero-slide--theme-4 {
  --banner-color: #6e42d8;
  --banner-dark: #4e25ad;
  --banner-stage: #f2edfb;
}

.hero-slide--theme-5 {
  --banner-color: #d92778;
  --banner-dark: #a90f56;
  --banner-stage: #fff0f5;
}

.hero-slide--theme-6 {
  --banner-color: #008fa8;
  --banner-dark: #006b80;
  --banner-stage: #eaf7f8;
}

.hero-carousel { background: #075be8; }

.hero-copy,
.hero-slide--products .hero-copy {
  background: linear-gradient(135deg, var(--banner-color), var(--banner-dark));
  color: #fff;
}

.hero-copy .eyebrow,
.hero-slide--products .hero-copy .eyebrow { color: #ffda3e; }

.hero-copy h1,
.hero-copy h2,
.hero-slide--products .hero-copy h1,
.hero-slide--products .hero-copy h2 { color: #fff; }

.hero-copy > p:not(.eyebrow),
.hero-slide--products .hero-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .9); }

.hero-copy .button.light {
  border: 1px solid #fff;
  background: var(--accent);
  color: #102c3d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.hero-copy .button.light:hover,
.hero-copy .button.light:focus-visible {
  background: #fff;
  color: var(--banner-dark);
}

.hero-media,
.hero-slide--products .hero-media { background: var(--banner-stage); }

.hero-media-images,
.hero-slide--products .hero-media-images {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.service-ribbon { border: 0; }

.service-ribbon > div {
  border: 0;
  color: #fff;
}

.service-ribbon > div:nth-child(1) { background: #075be8; }
.service-ribbon > div:nth-child(2) { background: #ffc400; color: #102c3d; }
.service-ribbon > div:nth-child(3) { background: #00a185; }
.service-ribbon > div:nth-child(4) { background: #ed4b28; }

.service-ribbon > div:nth-child(2) b,
.service-ribbon > div:nth-child(2) p > span { color: #102c3d; }

.service-ribbon > div:not(:nth-child(2)) b { color: #fff; }
.service-ribbon > div:not(:nth-child(2)) p > span { color: rgba(255, 255, 255, .84); }

.service-ribbon .service-icon {
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.service-ribbon > div:nth-child(2) .service-icon {
  border-color: rgba(16, 44, 61, .28);
  background: rgba(255, 255, 255, .55);
  color: #102c3d;
}

.categories a { border: 0; }

.categories a:nth-child(4n + 1)::before { background: linear-gradient(0deg, rgba(25, 48, 68, .94), rgba(56, 77, 94, .03) 72%); }
.categories a:nth-child(4n + 2)::before { background: linear-gradient(0deg, rgba(66, 49, 32, .94), rgba(111, 92, 72, .03) 72%); }
.categories a:nth-child(4n + 3)::before { background: linear-gradient(0deg, rgba(27, 57, 50, .94), rgba(69, 96, 84, .03) 72%); }
.categories a:nth-child(4n + 4)::before { background: linear-gradient(0deg, rgba(62, 37, 49, .94), rgba(106, 81, 94, .03) 72%); }

.card,
.eco-product-card { border-top: 5px solid #075be8; }
.product-grid .card:nth-child(4n + 2) { border-top-color: #ff9d00; }
.product-grid .card:nth-child(4n + 3) { border-top-color: #00a185; }
.product-grid .card:nth-child(4n + 4) { border-top-color: #e83e62; }

.card .product-image > span {
  right: auto;
  bottom: 10px;
  left: 10px;
  width: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #075be8;
  color: #fff;
  text-shadow: none;
}

.card .button.outline {
  border-color: #075be8;
  background: #075be8;
  color: #fff;
}

.card .button.outline:hover,
.card .button.outline:focus-visible {
  border-color: #0344bb;
  background: #0344bb;
  color: #fff;
}

.eco-product-card { border-top-color: #00a457; }

.company-benefits {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
}

.company-benefits article {
  min-height: 150px;
  padding: 22px 18px;
  border: 0;
}

.company-benefits article:nth-child(1) { background: #075be8; color: #fff; }
.company-benefits article:nth-child(2) { background: #ffc400; color: #102c3d; }
.company-benefits article:nth-child(3) { background: #00a457; color: #fff; }
.company-benefits article:nth-child(4) { background: #009ed8; color: #fff; }
.company-benefits article:nth-child(5) { background: #082d79; color: #fff; }
.company-benefits article:nth-child(6) { background: #ed4b28; color: #fff; }

.company-benefits article:not(:nth-child(2)) h3,
.company-benefits article:not(:nth-child(2)) p { color: #fff; }

.company-benefits article:nth-child(2) h3,
.company-benefits article:nth-child(2) p { color: #102c3d; }

.company-benefits article:not(:nth-child(2)) p { color: rgba(255, 255, 255, .84); }
.company-benefits article:nth-child(2) p { color: rgba(16, 44, 61, .78); }
.company-benefits article svg { stroke: currentColor; }

.company-location,
.company-story,
.market-cta { border-radius: 24px; }

.site-footer {
  width: 100%;
  display: block;
  padding: 46px 0 0;
  background: #092f43;
}

.footer-bottom {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px max(24px, calc((100% - 1240px) / 2));
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #000;
  color: #9db8c4;
  font-size: 12px;
  text-align: left;
}

.footer-bottom p { margin: 0; }
.footer-bottom::after { content: ""; }

.site-credit {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #aebbc2;
  white-space: nowrap;
}

.site-credit a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: .055em;
}

.site-credit a strong {
  margin: 0;
  color: #ff6b35;
  font-size: 13px;
  font-weight: 900;
}

.site-credit a span {
  color: #e3e8eb;
  font-weight: 650;
}

.site-credit a:hover strong,
.site-credit a:focus-visible strong { color: #ff8a5f; }
.site-credit a:hover span,
.site-credit a:focus-visible span { color: #fff; }

@media (max-width: 1050px) {
  .header-shell { grid-template-columns: 112px auto minmax(220px, 1fr) auto; gap: 12px; }
  .site-header .brand { width: 104px; }
  .site-header .brand img { width: 90px; }
  .site-header .category-dropdown { left: 116px; }
  .account-status { display: none; }
  .service-ribbon p > span { display: none; }
}

@media (max-width: 800px) {
  :root { --content: min(100% - 24px, 1240px); }
  .market-info-bar span { display: none; }
  .site-header { min-height: 72px; }
  .header-shell { min-height: 72px; grid-template-columns: 82px minmax(0, 1fr) auto; }
  .site-header .brand { width: 76px; height: 56px; padding: 3px 5px; }
  .site-header .brand img { width: 66px; height: 52px; }
  .site-search { grid-column: 2; grid-row: 1; }
  .account-nav { grid-column: 3; grid-row: 1; }
  .utility-nav > div { overflow-x: auto; gap: 18px; }
  .promo-strip { margin-top: 18px; }
  .hero-carousel,
  .rolleri-hero-stage,
  .hero-slide { height: 570px; }
  .hero-slide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 43%) minmax(0, 57%); }
  .hero-copy,
  .hero-slide--products .hero-copy { padding: 20px 30px 18px; border-radius: 0 0 55px 0; }
  .hero-copy h1,
  .hero-copy h2,
  .hero-slide--products .hero-copy h1,
  .hero-slide--products .hero-copy h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .hero-media,
  .hero-slide--products .hero-media { padding: 12px 20px 30px; }
  .service-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-ribbon > div:nth-child(2) { border-right: 0; }
  .service-ribbon > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .market-info-bar > div { justify-content: space-between; }
  .market-info-bar strong { font-size: 10px; }
  .market-info-bar a { font-size: 11px; }
  .site-header .brand { align-self: center; }
  .site-search input { height: 44px; padding-left: 14px; }
  .account-nav .account-link { display: none; }
  .account-nav .cart-link { min-width: 44px; width: 44px; padding: 8px; justify-content: center; }
  .account-nav .cart-link span { display: none; }
  .promo-strip { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-carousel,
  .rolleri-hero-stage,
  .hero-slide { height: 550px; }
  .hero-copy,
  .hero-slide--products .hero-copy { padding: 18px 26px 16px; }
  .hero-copy h1,
  .hero-copy h2,
  .hero-slide--products .hero-copy h1,
  .hero-slide--products .hero-copy h2 { font-size: 1.75rem; }
  .service-ribbon > div { justify-content: flex-start; padding: 13px 10px; }
  .service-ribbon .service-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 7px 18px;
    text-align: center;
  }
  .footer-bottom::after { display: none; }
  .site-credit { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .categories img,
  .card,
  .eco-product-card { transition: none; }
}

/* Oferta lateral: imagen y precio comparten la escena sin superponerse. */
.hero-slide--offer { --banner-color: #f67840; --banner-dark: #dd5424; --banner-stage: #fff2e7; grid-template-columns: minmax(280px, 33%) minmax(0, 1fr) minmax(210px, 23%); }
.hero-slide--offer .hero-media { padding: 12px 8px 30px; }
.hero-offer { min-width: 0; align-self: center; max-height: calc(100% - 44px); margin: 0; padding: 12px 30px 12px 12px; color: #123f58; overflow-wrap: anywhere; overflow-y: auto; }
.hero-offer__heading { margin: 0 0 6px; font-size: 17px; line-height: 1.2; font-weight: 850; }
.hero-offer__description { margin: 0 0 8px; font-size: 12px; line-height: 1.35; }
.hero-offer__previous { display: block; margin: 4px 0; color: #64717c; font-size: 14px; font-weight: 700; }
.hero-offer__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 9px 12px; border-radius: 12px; background: #ef3d55; color: #fff; }
.hero-offer__amount strong { font-size: clamp(1.65rem, 3.2vw, 2.8rem); line-height: 1.1; font-weight: 900; letter-spacing: -.045em; }
.hero-offer__amount span { font-size: 16px; font-weight: 700; }
.hero-offer__notice { display: block; margin-top: 7px; padding: 9px 12px; border-radius: 10px; background: #ffdb42; color: #173247; font-size: 12px; line-height: 1.3; font-weight: 700; }

/* Destacados: imagen amplia y contenido ajustado a su altura real. */
.home-products .card { display: flex; flex-direction: column; }
.home-products .product-image { flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; border-radius: 0; }
.home-products .product-image img { padding: 8px 10px 24px; }
.home-products .product-image::after { display: none; }
.home-products .card-body { height: auto; flex: 1; padding: 12px 14px 14px; }
.home-products .card-labels:empty { display: none; }
.home-products .card h3 { margin: 0 0 4px; min-height: 2.64em; font-size: 15px; }
.home-products .card-brand { min-height: 0; margin: 0 0 4px; font-size: 12px; }
.home-products .card-quote-note { margin: auto 0 0; padding-top: 6px; font-size: 12px; font-weight: 600; }
.home-products .card .button { margin-top: 10px; min-height: 40px; padding: 9px 12px; }
@media(max-width:800px) {
  .hero-slide--offer { grid-template-columns: minmax(0, 1fr) minmax(130px, 38%); grid-template-rows: minmax(0, 43%) minmax(0, 57%); }
  .hero-slide--offer .hero-copy { grid-column: 1 / -1; }
  .hero-slide--offer .hero-media { padding: 12px 4px 32px 16px; }
  .hero-slide--offer .hero-media.is-split .hero-media-images { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero-offer { max-height: calc(100% - 32px); margin-bottom: 22px; padding: 10px 14px 10px 6px; }
  .hero-offer__heading { font-size: 14px; }
  .hero-offer__amount { padding: 8px; }
  .hero-offer__amount strong { font-size: clamp(1.5rem, 5vw, 2.3rem); }
  .hero-offer__amount span { font-size: 12px; }
  .hero-offer__notice { padding: 8px; font-size: 11px; }
  .hero-slide--offer .hero-product-caption { padding: 4px; }
  .hero-slide--offer .hero-product-caption strong { font-size: 10px; }
  .hero-slide--offer .hero-product-caption em { font-size: 9px; }
}
@media(max-width:560px) {
  .home-products .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .home-products .card-body { padding: 10px; }
  .home-products .card h3 { font-size: 13px; }
  .home-products .card .product-image > span { right: 6px; left: 6px; bottom: 5px; width: fit-content; max-width: calc(100% - 12px); padding: 4px 6px; font-size: 9px; }
  .home-products .product-image img { padding: 6px 6px 22px; }
}
@media(max-width:359px) {
  .home-products .product-grid { grid-template-columns: 1fr; }
  .home-products .product-image { aspect-ratio: 1.15 / 1; }
}
