/* Identidad de Nuevo Amanecer: sol, hojas y formas de mercado. */
.topbar {
  background: var(--green-dark);
  color: var(--cream);
}

.desktop-nav a[aria-current] {
  box-shadow: inset 0 -3px var(--orange);
}

/* Portada: una mañana nueva, con el sol como motivo de marca. */
[data-page="home"] .hero-slides {
  background: var(--green-dark);
  border-radius: 24px;
}

[data-page="home"] .hero-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -95px;
  bottom: -190px;
  width: 340px;
  height: 340px;
  border: 1px solid #F6F5EF18;
  border-radius: 50%;
  box-shadow: 0 0 0 36px #F6F5EF05, 0 0 0 72px #F6F5EF05;
  pointer-events: none;
}

[data-page="home"] .hero-copy .eyebrow {
  color: #FFD3AA;
}

[data-page="home"] .hero-copy .eyebrow .icon {
  width: 25px;
  height: 25px;
  color: var(--orange);
}

[data-page="home"] .hero-copy h1 span {
  color: var(--orange);
}

[data-page="home"] .hero-copy>p:not(.eyebrow) {
  color: #FFFFFFC4;
  font-size: 13px;
}

[data-page="home"] .hero-small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #FFFFFFB3;
}

.hero-small .icon {
  width: 14px;
  height: 14px;
}

.hero-copy .button:focus-visible,
.delivery-showcase .button:focus-visible {
  outline-color: var(--cream);
}

[data-page="home"] .hero-image {
  border-radius: 72px 0 0 0;
}

[data-page="home"] .hero-seal {
  top: 22px;
  right: 22px;
  bottom: auto;
  left: auto;
  width: 116px;
  height: 116px;
  padding: 15px 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-dark);
  outline: 1px dashed #2C312C66;
  outline-offset: -7px;
  transform: rotate(9deg);
  text-align: center;
}

[data-page="home"] .hero-seal>span {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-page="home"] .hero-seal .icon {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

[data-page="home"] .hero-seal strong {
  font-size: 12px;
  line-height: 1.2;
}

.hero-geometry {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 116px;
  height: 116px;
  background: url('../assets/img/patron-amanecer.svg') center / cover;
  border-radius: 16px 0 0 0;
  pointer-events: none;
}

[data-page="home"] .hero-photo-label {
  right: auto;
  left: 12px;
}

/* Cada categoría tiene un acento; las fichas de producto siguen limpias. */
.category-card {
  --category-accent: var(--green);
  --category-tint: #F0F6EC;
  padding: 12px 20px 19px;
  border-radius: 18px;
  border-bottom: 3px solid var(--category-accent);
}

.category-card--nuts {
  --category-accent: #B6520C;
  --category-tint: #FFF3E7;
}

.category-card--pulp {
  --category-accent: var(--green-dark);
  --category-tint: #EDF4F1;
}

.category-card .category-image {
  position: relative;
  isolation: isolate;
  height: 130px;
}

.category-card .category-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 158px;
  height: 110px;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  background: var(--category-tint);
  border-radius: 75px 75px 24px 24px;
}

.category-card .category-image img {
  mix-blend-mode: multiply;
}

.category-label {
  line-height: 1.5;
}

.category-label small {
  display: block;
  margin-bottom: 5px;
  color: var(--category-accent);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1px;
}

.category-card>.icon {
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 50%;
  color: var(--category-accent);
  background: var(--category-tint);
}

/* Etiqueta mayorista con forma de adhesivo, sin precios inventados. */
.wholesale-card {
  background: var(--cream);
  border-radius: 24px;
}

.wholesale-copy .wholesale-sticker {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 7px 12px;
  margin-bottom: 22px;
  border-radius: 4px;
  transform: rotate(-3deg);
  background: var(--orange);
  color: var(--black);
  letter-spacing: 1px;
}

.wholesale-sticker>span {
  font-size: 16px;
  line-height: 1;
}

/* Despacho: bloque de marca con ilustración propia. */
.delivery-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 32px;
  padding: 42px 46px;
  border-radius: 24px;
  background: var(--green-dark);
  isolation: isolate;
}

.delivery-copy {
  min-width: 0;
}

.delivery-pickup-link {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 12px;
  color: var(--cream);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.delivery-pickup-link:focus-visible {
  outline-color: var(--cream);
}

.delivery-copy>.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #FFD3AA;
  font-size: 9px;
}

.delivery-copy>.eyebrow .icon {
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.delivery-showcase h2 {
  font-size: clamp(32px, 3.1vw, 44px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.delivery-showcase h2 span {
  color: var(--orange);
}

.delivery-showcase .delivery-copy>p:not(.eyebrow) {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.8;
  color: #FFFFFFC4;
}

.delivery-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 22px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.delivery-perk>.icon {
  width: 25px;
  height: 25px;
  color: var(--cream);
}

.delivery-perk strong {
  display: block;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}

.delivery-perk span {
  display: block;
  color: #FFFFFFB3;
  font-size: 10px;
}

.delivery-art {
  min-width: 0;
  margin: 0;
}

.delivery-art img {
  width: 100%;
  height: auto;
}

.delivery-art figcaption {
  margin-top: 6px;
  text-align: right;
  color: #FFFFFF8C;
  font-size: 8px;
}

/* Las páginas interiores conservan la identidad sin añadir secciones. */
.catalog-page .page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.catalog-page .page-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: max(24px, calc((100% - 1280px) / 2));
  top: 0;
  width: 160px;
  height: 160px;
  transform: rotate(-12deg);
  background: url('../assets/img/patron-amanecer.svg') center / cover;
  opacity: .1;
  pointer-events: none;
}

.site-footer {
  border-top: 5px solid var(--orange);
}

@media (max-width: 950px) {
  .delivery-showcase {
    padding: 32px;
    gap: 20px;
  }

  .delivery-copy>.eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

@media (max-width: 700px) {
  [data-page="home"] .hero-slides {
    border-radius: 18px;
  }

  [data-page="home"] .hero-copy {
    padding: 30px 26px;
  }

  [data-page="home"] .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }

  [data-page="home"] .hero-copy>p:not(.eyebrow) {
    font-size: 12px;
  }

  [data-page="home"] .hero-image {
    border-radius: 0;
    height: 230px;
  }

  [data-page="home"] .hero-seal {
    top: 14px;
    right: 14px;
    width: 88px;
    height: 88px;
    padding: 12px 8px;
    gap: 3px;
    outline-offset: -5px;
  }

  [data-page="home"] .hero-seal>span {
    font-size: 6px;
    letter-spacing: .6px;
  }

  [data-page="home"] .hero-seal .icon {
    width: 23px;
    height: 23px;
  }

  [data-page="home"] .hero-seal strong {
    font-size: 10px;
  }

  .hero-geometry {
    width: 80px;
    height: 80px;
    border-radius: 12px 0 0 0;
  }

  .category-card {
    padding: 10px 14px 10px 8px;
    border-radius: 12px;
    border-bottom-width: 2px;
  }

  .category-card .category-image {
    height: 64px;
  }

  .category-card .category-image::before {
    width: 66px;
    height: 56px;
    top: 4px;
    border-radius: 36px 36px 12px 12px;
  }

  .category-label small {
    font-size: 8px;
    letter-spacing: .7px;
    margin-bottom: 3px;
  }

  .category-card>.icon {
    width: 25px;
    height: 25px;
    padding: 5px;
  }

  .wholesale-card {
    border-radius: 18px;
  }

  .wholesale-copy .wholesale-sticker {
    font-size: 7px;
    margin-bottom: 20px;
  }

  .delivery-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 24px 20px;
    border-radius: 18px;
  }

  .delivery-showcase h2 {
    font-size: 34px;
    letter-spacing: -1.1px;
  }

  .delivery-copy>.eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
    gap: 8px;
  }

  .delivery-copy>.eyebrow .icon {
    width: 22px;
    height: 22px;
  }

  .delivery-perk strong {
    font-size: 15px;
  }

  .delivery-perk span {
    font-size: 9px;
  }

  .delivery-copy>.button {
    width: 100%;
  }

  .delivery-art img {
    max-height: 220px;
  }

  .catalog-page .page-banner::after {
    right: -25px;
    width: 120px;
    height: 120px;
    opacity: .06;
  }
}

@media (max-width: 370px) {
  [data-page="home"] .hero-copy {
    padding: 28px 22px;
  }

  .category-label small {
    letter-spacing: .3px;
  }

  .delivery-showcase h2 {
    font-size: 30px;
  }
}
