/* =========================================
   AEJ ADVISORS — Stylesheet
   Paleta inspirada en el logo (teals + dark)
   ========================================= */

:root {
  --teal-50:  #e9f7f8;
  --teal-100: #c7ebee;
  --teal-300: #5fc0c7;
  --teal-400: #2ea7b0;
  --teal-500: #1b8c95;
  --teal-600: #126b73;
  --teal-700: #0c4f55;

  --ink-900: #0a1a1d;
  --ink-800: #0e2428;
  --ink-700: #142e33;
  --ink-500: #2b4a50;
  --ink-300: #6b8388;

  --bg:       #ffffff;
  --bg-soft:  #f4f8f9;
  --bg-dark:  #0a1a1d;

  --text:     #102329;
  --text-mut: #5b7177;
  --text-inv: #eaf6f7;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(10,26,29,.06);
  --shadow-md: 0 14px 40px rgba(10,26,29,.10);
  --shadow-lg: 0 30px 80px rgba(10,26,29,.18);

  --max: 1180px;
  --grad: linear-gradient(120deg, #2ea7b0 0%, #5fc0c7 50%, #126b73 100%);

  --t: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--t); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--ink-900);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p  { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--text-mut); }
.lead  { font-size: 1.15rem; color: var(--ink-500); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 1rem;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(46,167,176,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(46,167,176,.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn-ghost:hover { background: var(--ink-900); color: #fff; }
.btn.block { width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: all .3s var(--t);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(0,0,0,.05);
  padding: 12px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-900);
}
.brand-text em { font-style: italic; color: var(--teal-500); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
}
.nav a:hover { color: var(--teal-500); }
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal-400);
  transition: width .3s var(--t);
}
.nav a:hover::after { width: 100%; }
.nav .nav-cta {
  padding: 10px 22px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 999px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--teal-500); color:#fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--ink-900);
  transition: all .3s var(--t);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(95,192,199,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(18,107,115,.14), transparent 60%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
}
.hero-copy h1 { margin-bottom: .4em; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-logo {
  width: min(420px, 90%);
  filter: drop-shadow(0 30px 60px rgba(18,107,115,.28));
  position: relative; z-index: 2;
}
.floating { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.orb-1 { width: 280px; height: 280px; background: #5fc0c7; top: 10%; left: 5%; }
.orb-2 { width: 220px; height: 220px; background: #126b73; bottom: 8%; right: 8%; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--ink-500);
  border-radius: 14px;
  opacity: .55;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: var(--ink-500);
  border-radius: 4px;
  margin: 6px auto;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section.soft { background: var(--bg-soft); }
.section.dark {
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(46,167,176,.18), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(95,192,199,.10), transparent 60%),
    var(--bg-dark);
  color: var(--text-inv);
}
.section.dark h2,
.section.dark h3 { color: #fff; }
.section.dark .muted { color: #97b0b5; }
.section.dark .section-tag {
  background: rgba(95,192,199,.12);
  border-color: rgba(95,192,199,.25);
  color: var(--teal-300);
}

.section-head { margin-bottom: 60px; max-width: 720px; }
.section-head.center { margin: 0 auto 60px; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat {
  background: #fff;
  border: 1px solid #e6eef0;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--t), box-shadow .3s var(--t);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1;
}
.stat .plus {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--teal-500);
  font-weight: 600;
}
.stat p { margin: 8px 0 0; color: var(--text-mut); font-size: .9rem; }

/* Grid 3 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all .35s var(--t);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(95,192,199,.35);
  background: rgba(95,192,199,.06);
}
.card .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95,192,199,.18), rgba(46,167,176,.05));
  border: 1px solid rgba(95,192,199,.3);
  display: grid; place-items: center;
  color: var(--teal-300);
  margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: #b9cdd1; }
.bullets { padding-left: 18px; margin: 0; color: #b9cdd1; }
.bullets li { margin-bottom: 6px; }

/* Services */
.service {
  background: #fff;
  border: 1px solid #e6eef0;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s var(--t);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--t);
}
.service:hover::before { transform: scaleY(1); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service h4 { color: var(--ink-900); margin-bottom: 8px; }
.service p { color: var(--text-mut); margin: 0; }

/* Projects */
.projects .project {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--t);
}
.projects .project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.thumb {
  height: 180px;
  background: var(--grad);
  position: relative;
  overflow: hidden;
}
.thumb::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.15), transparent 50%);
}
.t1 { background: linear-gradient(135deg,#0c4f55,#2ea7b0); }
.t2 { background: linear-gradient(135deg,#126b73,#5fc0c7); }
.t3 { background: linear-gradient(135deg,#0a1a1d,#1b8c95); }
.t4 { background: linear-gradient(135deg,#2ea7b0,#0a1a1d); }
.t5 { background: linear-gradient(135deg,#5fc0c7,#0c4f55); }
.t6 { background: linear-gradient(135deg,#1b8c95,#142e33); }

.project .body { padding: 24px 26px 28px; }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}
.project h4 { margin: 0 0 6px; color: var(--ink-900); }
.project p { margin: 0; color: var(--text-mut); font-size: .92rem; }

/* Generador */
.generador {
  background:
    radial-gradient(700px 500px at 70% 50%, rgba(46,167,176,.15), transparent 60%),
    linear-gradient(180deg, #f7fbfc 0%, #eaf4f5 100%);
  overflow: hidden;
}
.generador-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.generador-copy h2 { font-size: clamp(2.2rem,4vw,3.4rem); }

.generador-visual {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
}
.generador-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(46,167,176,.35);
}
.r1 { width: 380px; height: 380px; animation: spin 22s linear infinite; }
.r2 { width: 280px; height: 280px; animation: spin 14s linear infinite reverse; border-style: dashed;}
.r3 { width: 180px; height: 180px; animation: spin 9s linear infinite; }
.core {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 60px rgba(46,167,176,.55);
  position: relative;
}
.core::after {
  content: '';
  position: absolute; inset: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { margin-bottom: 10px; color: #b9cdd1; }
.contact-list a { color: var(--teal-300); }
.contact-list a:hover { color: #fff; }

.contact-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 36px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #97b0b5;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font: inherit;
  transition: all .25s var(--t);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-300);
  background: rgba(255,255,255,.1);
}
.form-msg {
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--teal-300);
  min-height: 20px;
}

/* Footer */
.site-footer {
  background: #050f11;
  color: #97b0b5;
  padding: 70px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.foot-brand img { width: 64px; margin-bottom: 16px; }
.foot-brand p { color: #97b0b5; max-width: 280px; }
.foot-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.foot-col a {
  display: block;
  margin-bottom: 10px;
  font-size: .92rem;
}
.foot-col a:hover { color: var(--teal-300); }
.copyright {
  text-align: center;
  font-size: .82rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #607479;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--t), transform .8s var(--t);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner,
  .two-col,
  .generador-wrap,
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .hero-logo { width: 280px; }
  .section { padding: 80px 0; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 2.4rem; }
  .hero { padding: 110px 0 50px; }
}
