/* AJ Soluciones — sistema de diseño de la web propia */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Instrument+Serif:ital@1&display=swap');

:root {
  --bg: #121212;
  --bg-elevated: #171512;
  --bg-card: #1c1a15;
  --accent: #ffcc00;
  --accent-dim: #b8930a;
  --accent-soft: rgba(255, 204, 0, 0.08);
  --text: #f5f1e6;
  --text-muted: #a39c8f;
  --text-faint: #6f6a5f;
  --border: #2a2620;
  --border-bright: #3a3427;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

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

/* ---------- liquid glass ---------- */

.liquid-glass {
  background: rgba(255, 255, 255, 0.03);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0.35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 204, 0, 0.07);
  background-blend-mode: luminosity;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 204, 0, 0.55) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 204, 0, 0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn.liquid-glass { color: var(--text); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-dim);
}

p { margin: 0; }

.lede {
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 56ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  position: relative;
  background: var(--accent);
  color: #121212;
}

.btn-primary:hover { background: #ffd633; transform: translateY(-2px) scale(1.015); }

.hero-actions .btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  animation: btn-pulse 2.6s ease-out 2.4s infinite;
  pointer-events: none;
}

@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(255, 204, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.btn.liquid-glass:hover { background: rgba(255, 255, 255, 0.06); }

.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled { padding: 14px 0; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 100px;
}

.brand img { width: 32px; height: 32px; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-top: 2px;
}

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 100px;
}

.nav-pill a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-pill a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

@media (min-width: 880px) {
  .nav-pill { display: flex; }
}

.site-header .btn { padding: 11px 20px; font-size: 14px; flex-shrink: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black 10%, transparent 75%);
  animation: drift 40s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 128px, 64px 128px; }
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 500px;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  transform: translateX(-50%);
  animation: glow-breathe 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hero-orb {
  position: absolute;
  top: 230px;
  left: 50%;
  width: 760px;
  height: 760px;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 44% 56% 60% 40% / 50% 45% 55% 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.4), transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(94, 150, 255, 0.26), transparent 55%),
    radial-gradient(circle at 32% 78%, rgba(255, 204, 0, 0.38), transparent 58%),
    radial-gradient(circle at 65% 18%, rgba(255, 204, 0, 0.16), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  filter: blur(1px);
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.05), 0 60px 140px rgba(0, 0, 0, 0.55);
  opacity: 0.75;
  animation: orb-morph 16s ease-in-out infinite, orb-breathe 8s ease-in-out infinite;
  will-change: transform, border-radius;
}

@keyframes orb-morph {
  0%, 100% { border-radius: 44% 56% 60% 40% / 50% 45% 55% 50%; }
  34% { border-radius: 58% 42% 40% 60% / 42% 60% 40% 58%; }
  67% { border-radius: 38% 62% 52% 48% / 60% 38% 64% 36%; }
}

@keyframes orb-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.85; }
}

@media (max-width: 760px) {
  .hero-orb { width: 480px; height: 480px; top: 320px; }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 15%), var(--accent-soft), transparent 68%);
  transition: background-position 0.3s ease;
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  transform: perspective(1200px) rotateX(var(--tilty, 0deg)) rotateY(var(--tiltx, 0deg));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero .lede,
.hero-actions {
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .lede { margin: 26px 0 40px; animation-delay: 0.95s; }
.hero-actions { animation-delay: 1.2s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 100px;
  margin-bottom: 26px;
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-badge-pill {
  background: var(--accent);
  color: #121212;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
}

.hero-badge span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes hero-fade-up {
  from { opacity: 0; filter: blur(8px); transform: translateY(20px) scale(0.98); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.hero-h1 {
  position: relative;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.22em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}

.hero-h1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: hero-shine 1.3s cubic-bezier(0.16, 1, 0.3, 1) 1.85s forwards;
  pointer-events: none;
}

.hw {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px) scale(0.94);
  animation: hero-word-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.09s);
}

.hw.em { color: var(--accent); }

@keyframes hero-word-in {
  0% { opacity: 0; filter: blur(10px); transform: translateY(30px) scale(0.94); }
  55% { opacity: 0.6; filter: blur(5px); transform: translateY(-4px) scale(0.98); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes hero-shine {
  to { transform: translateX(120%); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.stat-card {
  border-radius: 20px;
  padding: 20px 22px;
  min-width: 190px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.55s forwards;
  transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
}

.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- sections ---------- */

section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 160px 0 90px; }
}

.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-head .lede { font-size: 17px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- problema ---------- */

.problema-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .problema-body { grid-template-columns: 1fr; gap: 40px; }
}

.problema-story p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 18px;
}

.problema-story strong { color: var(--text); font-weight: 700; }

.reframe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 32px;
  border-radius: 14px;
}

.reframe-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 14px;
  display: block;
}

.reframe-card p {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ---------- incluye ---------- */

.incluye-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .incluye-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .incluye-grid { grid-template-columns: 1fr; }
}

.incluye-item {
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform 0.2s ease;
}

.incluye-item:hover { transform: translateY(-3px); }

.incluye-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.incluye-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.incluye-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.incluye-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- 3R ---------- */

.marco-3r {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
}

@media (max-width: 760px) {
  .marco-3r { flex-direction: column; gap: 20px; }
}

.marco-step {
  flex: 1;
  padding: 0 28px;
  position: relative;
}

.marco-step:first-child { padding-left: 0; }
.marco-step:last-child { padding-right: 0; }

.marco-step .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 18px;
}

.marco-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.marco-step p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.marco-arrow {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  padding: 0 4px;
}

@media (max-width: 760px) {
  .marco-arrow { display: none; }
}

.marco-warning {
  margin-top: 48px;
  padding: 22px 26px;
  background: var(--accent-soft);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.marco-warning strong { color: var(--text); }

/* ---------- honestidad ---------- */

.honestidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .honestidad-grid { grid-template-columns: 1fr; }
}

.honestidad-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.honestidad-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.honestidad-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- cta final ---------- */

.cta-final {
  text-align: center;
  padding: 140px 0;
}

.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::before { display: none; }

.cta-final h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 720px;
  margin: 0 auto 22px;
}

.cta-final .lede {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 17px;
}

.cta-final .hero-actions { justify-content: center; }

.calendar-embed {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border-bright);
}

.calendar-embed iframe { display: block; min-height: 760px; }

@media (max-width: 640px) {
  .calendar-embed iframe { min-height: 900px; }
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-brand img { width: 20px; height: 20px; }

footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer nav a {
  font-size: 13.5px;
  color: var(--text-faint);
  transition: color 0.15s ease;
}

footer nav a:hover { color: var(--text-muted); }
