/* ÚnicAI — mobile-first boho / stage */
:root {
  --ua-amber: #e8a33d;
  --ua-terra: #c4552d;
  --ua-cream: #f5ebdd;
  --ua-night: #141012;
  --ua-gold: #d4a855;
  --ua-muted: rgba(245, 235, 221, 0.72);
  --ua-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.unicai-body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ua-cream);
  background: var(--ua-night);
  overflow-x: hidden;
}

.ua-display, .ua-logo, .ua-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

.ua-wrap {
  width: min(100% - 32px, var(--ua-max));
  margin-inline: auto;
}

.ua-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 16, 18, 0.92);
  border-bottom: 1px solid rgba(232, 163, 61, 0.25);
  backdrop-filter: blur(8px);
}

.ua-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  max-width: var(--ua-max);
  margin: 0 auto;
}

.ua-logo {
  font-size: 1.5rem;
  color: var(--ua-cream);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.ua-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ua-lang a {
  color: var(--ua-muted);
  text-decoration: none;
  font-size: 12px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ua-lang a.active { color: var(--ua-amber); font-weight: 600; }
.ua-lang span { color: rgba(255,255,255,.2); }

.ua-cart {
  position: relative;
  color: var(--ua-cream);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ua-cart-dot {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ua-terra);
}

.ua-hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ua-night);
}

.ua-hero-media {
  position: relative;
  flex: 1;
  min-height: 55vh;
}
.ua-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 55vh;
}

.ua-hero-play {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  min-width: 64px;
  min-height: 64px;
  padding: 0;
}

.ua-hero-copy {
  text-align: center;
  padding: 32px 20px 48px;
  background: linear-gradient(180deg, transparent, var(--ua-night) 20%);
}
.ua-hero-copy .ua-display {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  margin: 0 0 8px;
  color: var(--ua-cream);
}
.ua-tagline {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ua-amber);
}

.ua-section {
  padding: 56px 0;
}
.ua-section--pattern {
  background-color: var(--ua-night);
  background-image: radial-gradient(circle at 20% 30%, rgba(232, 163, 61, 0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c3 8 12 12 12 20s-9 15-12 22c-3-7-12-14-12-22s9-12 12-20z' fill='%23E8A33D' fill-opacity='0.04'/%3E%3C/svg%3E");
}

.ua-section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-align: center;
  margin: 0 0 16px;
  color: var(--ua-cream);
}
.ua-gold-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ua-gold), transparent);
  margin: 0 auto 32px;
}

.ua-center { text-align: center; }
.ua-muted { color: var(--ua-muted); }

.ua-product-grid {
  display: grid;
  gap: 32px;
  justify-items: center;
}

.ua-product-card {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.ua-product-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(232, 163, 61, 0.35);
  margin-bottom: 12px;
}
.ua-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ua-img-ph {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(245, 235, 221, 0.08);
}

.ua-product-name {
  font-weight: 300;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.ua-product-price {
  margin: 0 0 16px;
  color: var(--ua-amber);
}

.btn-buy.ua-btn-buy,
.unicai-body .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 3px;
  background: #1d4ed8 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-buy.ua-btn-buy:hover,
.unicai-body .btn-buy:hover { background: #1e40af !important; }
.btn-buy[disabled] { opacity: 0.5; cursor: not-allowed; }

.ua-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ua-muted);
  text-decoration: underline;
}

.ua-video-row {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.ua-video-facade {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  border: 1px solid rgba(232, 163, 61, 0.35);
  overflow: hidden;
}
.ua-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ua-facade-play,
.ua-hero-play .ua-play-icon {
  pointer-events: none;
}

.ua-facade-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border: none;
  background: rgba(20, 16, 18, 0.55);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ua-amber);
}

.ua-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ua-cream);
  margin-left: 4px;
}

.ua-follow-label {
  text-align: center;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--ua-muted);
}

.ua-follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ua-btn-outline {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ua-gold);
  color: var(--ua-cream);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.ua-btn-outline:hover { background: rgba(232, 163, 61, 0.12); }

.ua-about {
  display: grid;
  gap: 28px;
  align-items: center;
}
.ua-about-photo img {
  width: 100%;
  border: 1px solid rgba(232, 163, 61, 0.35);
}
.ua-virtual-badge {
  color: var(--ua-amber);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.ua-footer {
  border-top: 1px solid rgba(232, 163, 61, 0.25);
  padding: 32px 16px 48px;
  text-align: center;
}
.ua-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.ua-footer-nav a {
  font-size: 12px;
  color: var(--ua-muted);
  text-decoration: none;
}
.ua-footer-nav a:hover { color: var(--ua-amber); }
.ua-footer-note {
  font-size: 11px;
  color: rgba(245, 235, 221, 0.45);
  margin: 0;
}

.ua-embed-host {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ua-embed-host[hidden] { display: none; }
.ua-embed-host iframe {
  width: min(100%, 400px);
  aspect-ratio: 9 / 16;
  max-height: 85vh;
  border: none;
}
.ua-embed-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ua-gold);
  background: transparent;
  color: var(--ua-cream);
  cursor: pointer;
  font-size: 1.25rem;
  border-radius: 3px;
}

/* Product page on ÚnicAI theme */
.ua-back {
  display: inline-block;
  margin: 16px;
  color: var(--ua-amber);
  text-decoration: none;
  font-size: 13px;
}
.ua-product-page {
  padding-bottom: 48px;
}
.ua-product-page .product-layout {
  color: var(--ua-cream);
}
.ua-product-page .product-title { color: var(--ua-cream); }
.ua-product-page .product-price { color: var(--ua-amber); }
.ua-product-page .hr { border-color: rgba(232, 163, 61, 0.25); }
.ua-product-page .feature-list,
.ua-product-page .meta-small,
.ua-product-page .secure-row { color: var(--ua-muted); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .ua-hero {
    flex-direction: row;
    align-items: stretch;
    min-height: min(90vh, 800px);
  }
  .ua-hero-media {
    flex: 1.1;
    min-height: auto;
  }
  .ua-hero-media img { min-height: 100%; height: 100%; object-position: 72% 50%; }
  .ua-hero-copy {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 48px;
  }
  .ua-video-row {
    grid-template-columns: 1fr 1fr;
    max-width: var(--ua-max);
  }
  .ua-about {
    grid-template-columns: 1fr 1fr;
  }
  .ua-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: stretch;
  }
}

/* One video: centered and larger */
.ua-video-row--single { max-width: 420px; }
.ua-video-row--single .ua-video-facade { max-width: 420px; }
@media (min-width: 768px) {
  .ua-video-row.ua-video-row--single { grid-template-columns: 1fr; max-width: 440px; }
  .ua-video-row--single .ua-video-facade { max-width: 440px; }
}

/* Mobile: no play button on the hero photo (video is in Música) */
@media (max-width: 767px) {
  .ua-hero-play { display: none; }
}

/* Keep photo proportions (no stretching) */
.ua-about-photo img {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* Card button is a link to the product page */
a.btn-buy.ua-btn-buy { text-decoration: none; }
