@font-face {
  font-family: Oxanium;
  src: url("./Oxanium-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

.sertanex-r2-portal, .sertanex-r2-delivery {
  --r2-cream: #fff7ec;
  --r2-paper: #fffdf8;
  --r2-ink: #201c1a;
  --r2-muted: #5e4b3e;
  --r2-border: #e8c9a8;
  --r2-focus: #823111;
  --r2-heading: Oxanium, "Segoe UI", system-ui, sans-serif;
  --r2-glass: linear-gradient(145deg, #fffdf9 5%, #fff6e9 66%, #ffe6ca);
  --r2-cta: linear-gradient(160deg, #ffba57, #f88228);
  --r2-light: linear-gradient(90deg, #dc651d, #ffbf65 40%, #ffe1b2 82%, transparent);
  --r2-shadow: 0 16px 44px #a9531c15;
  --cream: var(--r2-cream);
  --ink: var(--r2-ink);
  --muted: var(--r2-muted);
  background: var(--r2-cream);
  color: var(--r2-ink);
}

:is(.sertanex-r2-portal, .sertanex-r2-delivery) :is(h1, h2, h3) {
  font-family: var(--r2-heading);
  letter-spacing: -.025em;
}

:is(.sertanex-r2-portal, .sertanex-r2-delivery) :focus-visible {
  outline: 3px solid var(--r2-focus);
  outline-offset: 3px;
}

.sertanex-r2-portal { --border: var(--r2-border); }

.sertanex-r2-portal :is(.site-header, .search-band, .site-footer) {
  background: var(--r2-paper);
  border-color: var(--r2-border);
}

.sertanex-r2-portal .hero {
  background: radial-gradient(ellipse at 80% 0, #ffe1bd 0, transparent 44rem);
  padding: clamp(14px, 2.6vw, 34px) 0;
}

.sertanex-r2-portal .hero::before, .sertanex-r2-portal .hero::after { display: none; }

.sertanex-r2-portal .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1a873;
  border-radius: clamp(16px, 2.1vw, 28px);
  background: var(--r2-glass);
  box-shadow: var(--r2-shadow), 0 0 0 4px var(--r2-paper);
}

/* Frame ONLY the right-side 3D amber sphere (1217x724) on all viewports so zero baked-in text competes with H1. */
.sertanex-r2-portal .r2-cover {
  order: 2;
  position: relative;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  background: #faeada;
  border-left: 1px solid #ecc69d;
}
.sertanex-r2-portal .r2-cover > img,
.sertanex-r2-portal .r2-cover > .r2-esfera-luz {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  height: 100%;
  width: calc(100% * 2172 / 1217);
  max-width: none;
  object-fit: cover;
}

.sertanex-r2-portal .r2-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: var(--r2-light);
  box-shadow: 0 0 12px #fd983571;
}

.sertanex-r2-portal .r2-hero-content {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 46px);
}

.sertanex-r2-portal .hero .eyebrow { margin-bottom: 8px; }
.sertanex-r2-portal .hero h1 {
  margin-bottom: 9px;
  color: var(--r2-ink);
  font-size: clamp(27px, 3.2vw, 45px);
  line-height: 1.12;
}
.sertanex-r2-portal .hero-copy {
  max-width: 60ch;
  margin: 0;
  color: var(--r2-muted);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.55;
}
.sertanex-r2-portal .hero-note { margin-top: 8px; color: var(--r2-muted); }

.sertanex-r2-portal .button:not(.secondary),
.sertanex-r2-delivery .button.primary:not(:disabled) {
  border-color: #df6916;
  background: var(--r2-cta);
  color: #29190d;
  box-shadow: inset 0 1px #ffebc0, 0 5px 15px #c45a1a1c;
  transform: none;
}

.sertanex-r2-portal .button:not(.secondary):hover,
.sertanex-r2-delivery .button.primary:not(:disabled):hover {
  background: linear-gradient(160deg, #ffcb7b, #fc9a4c);
}

.sertanex-r2-portal :is(.product-card, .detail-panel) {
  border-color: var(--r2-border);
  background: var(--r2-glass);
  box-shadow: inset 0 1px var(--r2-paper), 0 8px 24px #a9531c0a;
}
.sertanex-r2-portal .product-card:hover { transform: none; }

.sertanex-r2-portal .r2-gallery {
  max-width: 840px;
  margin: 0 auto clamp(25px, 4vw, 50px);
  padding: clamp(15px, 3vw, 28px);
  border: 1px solid var(--r2-border);
  border-radius: 22px;
  background: var(--r2-glass);
  box-shadow: var(--r2-shadow);
}

.sertanex-r2-portal .r2-gallery h2 { margin-bottom: 6px; font-size: clamp(21px, 2.6vw, 32px); }
.sertanex-r2-portal .r2-gallery .hero-carousel { width: 100%; }
.sertanex-r2-portal .r2-gallery .hero-images { aspect-ratio: 793 / 496; background: var(--r2-paper) !important; }
.sertanex-r2-portal .r2-gallery .hero-carousel .hero-slide[data-position] {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  filter: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

.sertanex-r2-portal .r2-gallery .hero-carousel .hero-slide[data-loaded="true"][data-position="0"] {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .28s ease;
}

.sertanex-r2-portal .r2-gallery .hero-caption { min-height: 1.5em; }

.sertanex-r2-delivery { --line: var(--r2-border); --paper: var(--r2-paper); --shadow: 0 12px 36px #a9531c11; }
.sertanex-r2-delivery :is(.app-header, .cart-panel, .product-card, .workspace-store, .order-card, .quick-product) {
  background: var(--r2-paper);
}

.sertanex-r2-delivery .workspace-heading {
  position: relative;
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 33px);
  overflow: hidden;
  border: 1px solid var(--r2-border);
  border-radius: var(--radius);
  background: var(--r2-glass);
  box-shadow: var(--r2-shadow);
}

.sertanex-r2-delivery .workspace-heading::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: var(--r2-light);
  pointer-events: none;
}

.sertanex-r2-delivery .workspace-banner { background: var(--r2-paper); border-color: var(--r2-border); }
.sertanex-r2-delivery .view-tabs { border-color: var(--r2-border); background: #fff0df; }
.sertanex-r2-delivery .view-tab.active { background: var(--r2-ink); color: var(--r2-paper); }

.sertanex-r2-delivery .welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 0;
  border: 1px solid #e1a873;
  background: var(--r2-glass);
  color: var(--r2-ink);
  box-shadow: var(--r2-shadow);
}
.sertanex-r2-delivery .welcome-copy { align-self: center; width: auto; padding: clamp(18px, 2.6vw, 30px); }
.sertanex-r2-delivery .welcome-copy h1 { font-size: clamp(24px, 2.5vw, 35px); }
.sertanex-r2-delivery .welcome-copy p { color: var(--r2-muted); }
.sertanex-r2-delivery .welcome-copy :is(.hero-label, .hero-footnote) { color: var(--r2-focus); }

.sertanex-r2-delivery .welcome-scene {
  position: relative;
  inset: auto;
  z-index: 0;
  opacity: 1;
  min-height: 190px;
  background:
    linear-gradient(90deg, #fff6e9, #fff6e900 29%),
    url("./referencia-futurista.png") right center / auto 112% no-repeat;
}

@media (max-width: 860px) {
  .sertanex-r2-portal .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .sertanex-r2-portal .r2-cover {
    order: 1;
    min-height: 0;
    aspect-ratio: 1217 / 724;
    border-left: 0;
    border-bottom: 1px solid #ecc69d;
  }
  .sertanex-r2-portal .r2-hero-content {
    order: 2;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .sertanex-r2-delivery .welcome-card { grid-template-columns: minmax(0, 1fr); }
  .sertanex-r2-delivery .welcome-scene {
    min-height: clamp(114px, 38vw, 190px);
    background:
      linear-gradient(180deg, #fff6e9, #fff6e900 36%),
      url("./referencia-futurista.png") right center / auto 120% no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.sertanex-r2-portal, .sertanex-r2-delivery) *,
  :is(.sertanex-r2-portal, .sertanex-r2-delivery) *::before,
  :is(.sertanex-r2-portal, .sertanex-r2-delivery) *::after {
    transition: none !important;
    animation: none !important;
  }
}
