/*
 * Amenti Diez N°31 — tokens y utilidades de marca
 */

:root {
  --amenti-ink: #f4f1ea;
  --amenti-muted: #9aa3b2;
  --amenti-bg: #070b12;
  --amenti-panel: #0e1522;
  --amenti-panel-2: #141c2c;
  --amenti-line: rgba(212, 175, 55, 0.18);
  --amenti-gold: #d4af37;
  --amenti-gold-soft: #e6c86a;
  --amenti-blue: #1e4d8c;
  --amenti-blue-deep: #0f2a4d;
  --amenti-light-bg: #f7f4ee;
  --amenti-light-ink: #121826;
  --amenti-light-muted: #475569;
  --amenti-light-line: #e4dfd4;
  --amenti-light-panel: #ffffff;
  --amenti-light-gold: #8a6a12;
}

.font-display {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.font-ui {
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.amenti-shell {
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(30, 77, 140, 0.22), transparent 58%),
    radial-gradient(900px 460px at 96% 0%, rgba(212, 175, 55, 0.1), transparent 52%),
    var(--amenti-bg);
  overflow-x: clip;
}

.amenti-grid-fade {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 78%);
}

.amenti-mosaic {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.amenti-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(18, 26, 40, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 28px 70px rgba(0, 0, 0, 0.38);
}

.amenti-panel-gold {
  border-color: rgba(212, 175, 55, 0.22);
}

.amenti-mark-ring {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.amenti-hero-glow {
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.16), transparent 62%);
}

.amenti-link {
  color: var(--amenti-gold-soft);
  text-underline-offset: 3px;
}

.amenti-link:hover {
  color: #f0d78a;
}

/* ── Shell: header, nav, footer, botones ─────────────────────── */

.site-header {
  position: sticky;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.22), transparent);
  pointer-events: none;
}

.site-brand-mark {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.95), rgba(10, 14, 22, 0.98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.site-brand:hover .site-brand-mark {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.42);
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(30, 77, 140, 0.12), transparent 58%),
    rgba(0, 0, 0, 0.28);
}

.site-footer-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.28), transparent);
}

.site-footer-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.82);
}

.site-footer-bottom {
  border-color: rgba(255, 255, 255, 0.05);
}

.page-shell {
  position: relative;
}

.link-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: rgba(212, 175, 55, 0.24);
  transform: translateY(-2px);
}

.brand-showcase .hero-medallion {
  width: min(100%, 16rem);
}

.brand-figure-stage {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse at 72% 18%, rgba(30, 77, 140, 0.07) 0%, transparent 52%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, rgba(7, 11, 18, 0.72) 100%);
}

.brand-figure-caption {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-preview-well,
.amenti-preview-well {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.page-note {
  border-color: rgba(212, 175, 55, 0.14);
}

.content-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.content-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
}

.content-list-item {
  position: relative;
  padding-left: 1rem;
}

.content-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  height: 4px;
  width: 4px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.75);
}

/* Tarjetas legacy con zinc: armonizar en tema claro */
.theme-light [class*="bg-zinc-900"],
.theme-light [class*="bg-zinc-950"] {
  background: linear-gradient(180deg, #ffffff, #f8f5ef) !important;
  border-color: var(--amenti-light-line) !important;
  box-shadow: 0 12px 32px rgba(18, 24, 38, 0.06) !important;
}

.theme-light .gallery-card [class*="bg-zinc-950"] {
  background: #121826 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.theme-light [class*="bg-zinc-900"] .text-zinc-100,
.theme-light [class*="bg-zinc-900"] .text-zinc-200,
.theme-light [class*="bg-zinc-950"] .text-zinc-100,
.theme-light [class*="bg-zinc-950"] .text-zinc-200 {
  color: var(--amenti-light-ink) !important;
}

.theme-light .btn-icon .text-zinc-400 {
  color: var(--amenti-light-muted) !important;
}

.theme-light .site-footer-heading {
  color: var(--amenti-light-gold);
}

.guide-card,
.link-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.site-nav-link {
  color: #8b95a8;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav-link:hover {
  color: var(--amenti-gold-soft);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 18, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c8ceda;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--amenti-gold-soft);
}

.mobile-nav-toggle {
  padding: 0.5rem;
}

body.mobile-nav-open {
  overflow: hidden;
}

.hero-meta {
  width: 100%;
  min-width: 0;
}

.hero-meta-item {
  min-width: 0;
}

.hero-meta-item dd {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.site-footer-link {
  color: #9aa3b2;
  transition: color 0.15s ease;
}

.site-footer-link:hover {
  color: var(--amenti-gold-soft);
}

.btn-primary {
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, #e2c56a 0%, #c9a227 100%);
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.28);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ddd8cb;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.btn-outline:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--amenti-gold-soft);
  background: rgba(255, 255, 255, 0.04);
}

.btn-icon {
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-icon:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--amenti-ink);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.38);
  color: var(--amenti-gold-soft);
  background: rgba(255, 255, 255, 0.05);
}

.hero-shell {
  border-radius: 1.65rem;
}

.hero-shell-pattern {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-eyebrow-line {
  display: block;
  height: 1px;
  width: 2.5rem;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.75), transparent);
}

.hero-meta-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.hero-logo-panel {
  border-color: rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(212, 175, 55, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse at 72% 18%, rgba(30, 77, 140, 0.08) 0%, transparent 52%),
    transparent;
  min-height: 18rem;
}

@media (min-width: 640px) {
  .hero-logo-panel {
    min-height: 22rem;
  }
}

.hero-medallion {
  width: min(100%, 19rem);
  aspect-ratio: 1;
  padding: 6%;
}

.hero-medallion-plate {
  inset: 4%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 246, 230, 0.16) 0%,
    rgba(212, 175, 55, 0.07) 36%,
    transparent 72%
  );
}

.hero-medallion-ring {
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 52px rgba(212, 175, 55, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.48);
}

.hero-medallion-glow {
  inset: 10%;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
}

.hero-logo-image {
  filter:
    drop-shadow(0 0 22px rgba(212, 175, 55, 0.24))
    drop-shadow(0 16px 34px rgba(0, 0, 0, 0.52))
    brightness(1.07)
    contrast(1.06)
    saturate(1.05);
}

.hero-seal-image {
  filter:
    drop-shadow(0 0 16px rgba(212, 175, 55, 0.16))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42))
    brightness(1.05)
    contrast(1.04);
}

.hero-logo-caption {
  color: rgba(212, 175, 55, 0.62);
}

html:not(.theme-light) .site-brand-mark img,
html:not(.theme-light) .feature-icon img {
  filter: brightness(1.06) contrast(1.04) saturate(1.03);
}

.feature-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.feature-card,
.gallery-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.gallery-card:hover {
  border-color: rgba(212, 175, 55, 0.24);
  transform: translateY(-2px);
}

.gallery-overlay {
  background: linear-gradient(to top, rgba(7, 11, 18, 0.88) 0%, rgba(7, 11, 18, 0.08) 58%, transparent 100%);
}

/* ── Tema claro ──────────────────────────────────────────────── */

.theme-light {
  color-scheme: light;
}

.theme-light .amenti-shell {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(30, 77, 140, 0.1), transparent 55%),
    radial-gradient(800px 400px at 88% 0%, rgba(212, 175, 55, 0.14), transparent 50%),
    var(--amenti-light-bg);
}

.theme-light .amenti-grid-fade {
  background-image:
    linear-gradient(rgba(18, 24, 38, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.05) 1px, transparent 1px);
  opacity: 0.45;
}

.theme-light .amenti-mosaic {
  background-image:
    linear-gradient(45deg, rgba(18, 24, 38, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(18, 24, 38, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(18, 24, 38, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(18, 24, 38, 0.04) 75%);
}

.theme-light .amenti-panel {
  background: linear-gradient(180deg, #ffffff, #f8f5ef);
  border-color: var(--amenti-light-line);
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.07);
}

.theme-light .amenti-panel-gold {
  border-color: rgba(196, 160, 53, 0.35);
}

.theme-light .amenti-mark-ring {
  box-shadow:
    0 0 0 1px rgba(196, 160, 53, 0.45),
    0 8px 22px rgba(18, 24, 38, 0.08);
}

.theme-light .site-header {
  border-color: var(--amenti-light-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(18, 24, 38, 0.04);
}

.theme-light .site-footer {
  border-color: var(--amenti-light-line);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(30, 77, 140, 0.06), transparent 58%),
    #f0ebe2;
}

.theme-light .site-footer-bottom {
  border-color: var(--amenti-light-line);
}

.theme-light .brand-figure-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.12), transparent 62%),
    linear-gradient(180deg, #f3efe6 0%, #ebe6db 100%);
}

.theme-light .brand-figure-caption,
.theme-light .brand-preview-well,
.theme-light .amenti-preview-well {
  border-color: var(--amenti-light-line);
  background: #ffffff;
}

.theme-light .site-nav-link {
  color: var(--amenti-light-muted);
}

.theme-light .site-nav-link:hover {
  color: var(--amenti-light-gold);
  background: rgba(18, 24, 38, 0.05);
}

.theme-light .mobile-nav-panel {
  border-color: var(--amenti-light-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.08);
}

.theme-light .mobile-nav-link {
  color: #334155;
  border-color: var(--amenti-light-line);
}

.theme-light .mobile-nav-link:hover {
  color: var(--amenti-light-gold);
}

.theme-light .site-footer-link {
  color: var(--amenti-light-muted);
}

.theme-light .site-footer-link:hover {
  color: var(--amenti-light-gold);
}

.theme-light .btn-outline {
  border-color: #d5cfc2;
  color: #1d2533;
  background: #ffffff;
}

.theme-light .btn-outline:hover {
  border-color: #c4a035;
  color: var(--amenti-light-gold);
  background: #fffdf8;
}

.theme-light .btn-ghost {
  border-color: #d5cfc2;
  background: #ffffff;
  color: var(--amenti-light-ink);
}

.theme-light .btn-ghost:hover {
  border-color: #c4a035;
  color: var(--amenti-light-gold);
  background: #fffdf8;
}

.theme-light .btn-primary {
  border-color: rgba(138, 106, 18, 0.35);
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(196, 160, 53, 0.18);
}

.theme-light .btn-icon {
  border-color: #d5cfc2;
  background: #ffffff;
  color: var(--amenti-light-muted);
}

.theme-light .btn-icon span:last-child {
  color: var(--amenti-light-gold) !important;
}

.theme-light .site-brand-mark,
.theme-light .feature-icon,
.theme-light .hero-meta-item {
  border-color: rgba(196, 160, 53, 0.28);
  background: #ffffff;
}

.theme-light .hero-logo-panel {
  border-color: var(--amenti-light-line);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(212, 175, 55, 0.14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 244, 236, 0.35) 100%);
}

.theme-light .hero-medallion-plate {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 242, 228, 0.92) 40%,
    rgba(235, 228, 210, 0.45) 68%,
    transparent 80%
  );
}

.theme-light .hero-medallion-ring {
  border-color: rgba(196, 160, 53, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px rgba(18, 24, 38, 0.08);
}

.theme-light .hero-medallion-glow {
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.12) 0%, transparent 72%);
}

.theme-light .hero-logo-image,
.theme-light .hero-seal-image {
  filter: drop-shadow(0 14px 28px rgba(18, 24, 38, 0.12));
}

.theme-light .hero-logo-caption {
  color: #8a7348;
}

.theme-light .site-brand-mark img,
.theme-light .feature-icon img {
  filter: none;
}

.theme-light .gallery-overlay {
  background: linear-gradient(to top, rgba(247, 244, 238, 0.95), transparent);
}

.amenti-asset-stage {
  background: linear-gradient(180deg, #0b1220 0%, #070b12 100%);
}

.theme-light .amenti-asset-stage {
  background: linear-gradient(180deg, #f3efe6 0%, #ebe6db 100%);
}

.amenti-asset-caption {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-light .amenti-asset-caption {
  border-color: var(--amenti-light-line);
}

.amenti-preview-well {
  background: rgba(0, 0, 0, 0.2);
}

.theme-light .amenti-preview-well {
  background: #f0ebe2;
}

.theme-light .text-ink {
  color: var(--amenti-light-ink) !important;
}

.theme-light .text-zinc-100,
.theme-light .text-zinc-200 {
  color: #1d2533 !important;
}

.theme-light .text-zinc-300 {
  color: #475569 !important;
}

.theme-light .text-zinc-400 {
  color: var(--amenti-light-muted) !important;
}

.theme-light .text-zinc-500 {
  color: #64748b !important;
}

.theme-light .text-amber-300,
.theme-light .text-amber-200 {
  color: var(--amenti-light-gold) !important;
}

.theme-light .text-emerald-300 {
  color: #047857 !important;
}

.theme-light .bg-night,
.theme-light .bg-zinc-950 {
  background-color: var(--amenti-light-bg) !important;
}

.theme-light .bg-zinc-900,
.theme-light .bg-panel {
  background-color: var(--amenti-light-panel) !important;
}

.theme-light .bg-black {
  background-color: #121826 !important;
}

.theme-light .border-zinc-800,
.theme-light .border-zinc-700 {
  border-color: var(--amenti-light-line) !important;
}

.theme-light .bg-amber-950\/30,
.theme-light .bg-amber-950\/50 {
  background-color: rgba(253, 246, 227, 0.92) !important;
}

.theme-light .bg-emerald-950\/50 {
  background-color: rgba(236, 253, 245, 0.95) !important;
}

.theme-light .border-amber-800 {
  border-color: #c4a035 !important;
}

.theme-light .border-emerald-800 {
  border-color: #059669 !important;
}

@keyframes amenti-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.amenti-rise {
  animation: amenti-rise 0.7s ease-out both;
}

.amenti-rise-delay-1 { animation-delay: 0.08s; }
.amenti-rise-delay-2 { animation-delay: 0.16s; }
.amenti-rise-delay-3 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .amenti-rise { animation: none; }
}
