/*
Theme Name: AELUM
Theme URI: https://aelum.cl/
Author: AELUM
Author URI: https://aelum.cl/
Description: Tema premium para AELUM, presencia que permanece.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aelum
*/

:root {
  --aelum-bg: #050607;
  --aelum-bg-soft: #0b0d0f;
  --aelum-panel: #101113;
  --aelum-panel-soft: #16130f;
  --aelum-gold: #d4a84f;
  --aelum-gold-soft: #f2d58a;
  --aelum-bronze: #8f642f;
  --aelum-text: #f7f0df;
  --aelum-muted: #c7bca7;
  --aelum-line: rgba(212, 168, 79, 0.36);
  --aelum-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --aelum-radius: 8px;
  --aelum-max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(212, 168, 79, 0.12), transparent 28rem),
    linear-gradient(180deg, #050607 0%, #090807 44%, #050607 100%);
  color: var(--aelum-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 7, 0.78);
  border-bottom: 1px solid rgba(212, 168, 79, 0.18);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--aelum-max);
  padding: 16px 22px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand img {
  width: 56px;
}

.brand span {
  color: var(--aelum-gold-soft);
  font-size: 0.9rem;
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--aelum-line);
  border-radius: var(--aelum-radius);
  color: var(--aelum-text);
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  background: var(--aelum-gold-soft);
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.site-nav ul {
  align-items: center;
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--aelum-muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--aelum-gold-soft);
}

.hero {
  align-items: stretch;
  display: grid;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.64) 42%, rgba(5, 6, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.1) 0%, rgba(5, 6, 7, 0.9) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-content {
  align-self: center;
  margin: 0 auto;
  max-width: var(--aelum-max);
  padding: 96px 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-copy {
  max-width: 610px;
}

.hero-logo {
  margin-bottom: 28px;
  width: min(340px, 74vw);
}

.eyebrow {
  color: var(--aelum-gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: #fff8e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.9rem);
  font-weight: 500;
  line-height: 0.92;
  margin-bottom: 22px;
}

h2 {
  color: #fff4d7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  color: var(--aelum-gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.lead {
  color: var(--aelum-muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  max-width: 720px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid var(--aelum-gold);
  border-radius: var(--aelum-radius);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.16em;
  min-height: 48px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--aelum-gold);
  color: #090806;
}

.button-secondary {
  background: rgba(5, 6, 7, 0.42);
  color: var(--aelum-gold-soft);
}

.section {
  padding: 92px 22px;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--aelum-max);
}

.intro {
  padding-bottom: 72px;
}

.intro-grid,
.promise-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.intro-grid {
  align-items: start;
  margin-bottom: 42px;
}

.intro-copy {
  color: var(--aelum-muted);
  font-size: 1.08rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--aelum-line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  margin-bottom: 36px;
  padding-bottom: 24px;
}

.section-heading p {
  color: var(--aelum-muted);
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.step-card,
.pack-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(212, 168, 79, 0.2);
  border-radius: var(--aelum-radius);
}

.value-card {
  min-height: 190px;
  padding: 28px;
}

.value-icon {
  color: var(--aelum-gold);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 28px;
}

.value-card p,
.step-card p,
.pack-card p,
.deliverables-grid p,
.promise-list p,
.faq-grid p {
  color: var(--aelum-muted);
  margin-bottom: 0;
}

.promise {
  background: var(--aelum-bg-soft);
  border-bottom: 1px solid rgba(212, 168, 79, 0.16);
  border-top: 1px solid rgba(212, 168, 79, 0.16);
}

.promise-grid {
  align-items: stretch;
}

.promise-panel {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.28), rgba(5, 6, 7, 0.88)),
    url("assets/img/aelum-marketing.png") center / cover;
  border: 1px solid rgba(212, 168, 79, 0.26);
  border-radius: var(--aelum-radius);
  min-height: 420px;
  padding: 34px;
}

.promise-list,
.deliverables-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.promise-list article,
.deliverables-grid article,
.faq-grid article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 168, 79, 0.2);
  border-radius: var(--aelum-radius);
  padding: 26px;
}

.experience {
  background: linear-gradient(180deg, rgba(212, 168, 79, 0.06), transparent);
}

.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}

.step-card img {
  aspect-ratio: 4 / 3;
  background: #111;
  object-fit: cover;
  width: 100%;
}

.step-body {
  padding: 22px;
}

.step-number {
  color: var(--aelum-gold);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.packs {
  background: var(--aelum-bg-soft);
}

.deliverables {
  background:
    radial-gradient(circle at 15% 12%, rgba(212, 168, 79, 0.1), transparent 26rem),
    var(--aelum-bg);
}

.deliverables-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.packs-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pack-card {
  padding: 30px;
}

.pack-card.featured {
  background: linear-gradient(180deg, rgba(212, 168, 79, 0.16), rgba(255, 255, 255, 0.02));
  border-color: rgba(242, 213, 138, 0.55);
  box-shadow: var(--aelum-shadow);
}

.pack-price {
  color: var(--aelum-gold-soft);
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  margin: 20px 0 4px;
}

.pack-note {
  color: var(--aelum-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pack-list {
  border-top: 1px solid rgba(212, 168, 79, 0.2);
  color: var(--aelum-muted);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
}

.pack-list li {
  padding-left: 18px;
  position: relative;
}

.pack-list li::before {
  background: var(--aelum-gold);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.68em;
  width: 5px;
}

.story-split {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.story-image {
  border: 1px solid rgba(212, 168, 79, 0.26);
  border-radius: var(--aelum-radius);
  box-shadow: var(--aelum-shadow);
  overflow: hidden;
}

.story-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.process-item {
  border-left: 1px solid var(--aelum-line);
  padding-left: 22px;
  position: relative;
}

.process-item::before {
  align-items: center;
  background: var(--aelum-bg);
  border: 1px solid var(--aelum-gold);
  border-radius: 50%;
  color: var(--aelum-gold-soft);
  content: counter(process);
  counter-increment: process;
  display: flex;
  font-size: 0.78rem;
  height: 30px;
  justify-content: center;
  left: -16px;
  position: absolute;
  top: 0;
  width: 30px;
}

.process-item h3,
.process-item p {
  margin-left: 14px;
}

.cta {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94), rgba(5, 6, 7, 0.58)),
    url("assets/img/aelum-marketing.png") center / cover;
  border-top: 1px solid rgba(212, 168, 79, 0.2);
  border-bottom: 1px solid rgba(212, 168, 79, 0.2);
}

.cta-box {
  max-width: 660px;
}

.faq {
  background: linear-gradient(180deg, transparent, rgba(212, 168, 79, 0.05));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.contact-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 168, 79, 0.25);
  border-radius: var(--aelum-radius);
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list a {
  color: var(--aelum-gold-soft);
}

.site-footer {
  border-top: 1px solid rgba(212, 168, 79, 0.18);
  padding: 28px 22px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--aelum-max);
}

.footer-inner p {
  color: var(--aelum-muted);
  font-size: 0.88rem;
  margin: 0;
}

.footer-logo {
  width: 88px;
}

.aelum-agent {
  bottom: 24px;
  position: fixed;
  right: 24px;
  z-index: 80;
}

.agent-launcher {
  align-items: center;
  background: var(--aelum-gold);
  border: 1px solid rgba(255, 248, 232, 0.5);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  color: #080706;
  cursor: pointer;
  display: flex;
  height: 62px;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
  width: 62px;
}

.agent-launcher:hover,
.agent-launcher:focus {
  background: var(--aelum-gold-soft);
  transform: translateY(-2px);
}

.agent-launcher-icon {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.agent-panel {
  background: rgba(9, 9, 8, 0.98);
  border: 1px solid rgba(242, 213, 138, 0.34);
  border-radius: var(--aelum-radius);
  bottom: 78px;
  box-shadow: var(--aelum-shadow);
  display: grid;
  gap: 16px;
  max-height: min(680px, calc(100vh - 126px));
  overflow: hidden;
  padding: 18px;
  position: absolute;
  right: 0;
  width: min(380px, calc(100vw - 36px));
}

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

.agent-header {
  align-items: start;
  border-bottom: 1px solid rgba(212, 168, 79, 0.2);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.agent-kicker {
  color: var(--aelum-gold);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.agent-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0;
}

.agent-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(212, 168, 79, 0.24);
  border-radius: 50%;
  color: var(--aelum-gold-soft);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.3rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.agent-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.agent-message {
  border-radius: var(--aelum-radius);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 88%;
  padding: 11px 13px;
}

.agent-message-bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 79, 0.16);
  color: var(--aelum-text);
}

.agent-message-user {
  background: rgba(212, 168, 79, 0.16);
  border: 1px solid rgba(242, 213, 138, 0.28);
  color: #fff8e8;
  justify-self: end;
}

.agent-whatsapp {
  background: var(--aelum-gold);
  border-radius: var(--aelum-radius);
  color: #090806;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  justify-content: center;
  justify-self: start;
  letter-spacing: 0.12em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.agent-quick-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-quick-actions button,
.agent-form button {
  background: rgba(212, 168, 79, 0.12);
  border: 1px solid rgba(212, 168, 79, 0.32);
  border-radius: var(--aelum-radius);
  color: var(--aelum-gold-soft);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  min-height: 40px;
  padding: 0 12px;
  text-transform: uppercase;
}

.agent-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.agent-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 79, 0.24);
  border-radius: var(--aelum-radius);
  color: var(--aelum-text);
  font: inherit;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
}

.agent-form input::placeholder {
  color: rgba(199, 188, 167, 0.78);
}

.entry-content {
  margin: 0 auto;
  max-width: 840px;
  padding: 72px 22px;
}

.entry-content a {
  color: var(--aelum-gold-soft);
  text-decoration: underline;
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .site-nav {
    background: rgba(5, 6, 7, 0.96);
    border-bottom: 1px solid var(--aelum-line);
    display: none;
    left: 0;
    padding: 0 22px 22px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    border-top: 1px solid rgba(212, 168, 79, 0.14);
    display: block;
    padding: 14px 0;
  }

  .section-heading,
  .intro-grid,
  .promise-grid,
  .story-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .packs-grid,
  .deliverables-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 18px;
  }

  .values-grid,
  .steps-grid,
  .packs-grid,
  .deliverables-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .promise-panel {
    min-height: 340px;
    padding: 26px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .aelum-agent {
    bottom: 18px;
    right: 18px;
  }

  .agent-panel {
    bottom: 76px;
  }

  .agent-form {
    grid-template-columns: 1fr;
  }
}
