/* =====================================================
   andreasantus.com — Estilos principales
   Minimalista · Cercano · Autoridad
   ===================================================== */

:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F8F6F3;
  --bg-dark:      #0D0D0D;
  --text:         #0D0D0D;
  --text-sec:     #6B6B6B;
  --text-light:   #FFFFFF;
  --accent:       #C9A84C;
  --accent-hover: #A8882E;
  --border:       #E8E4DE;
  --serif:        'Outfit', system-ui, sans-serif;
  --sans:         'Outfit', system-ui, sans-serif;
  --max:          1160px;
  --radius:       4px;
  --transition:   0.3s ease;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilidades ─────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--alt  { background: var(--bg-alt); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Botones ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #0D0D0D;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline-dark:hover { border-color: var(--text); }

/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--text-light); }
.nav__links a.active { color: var(--accent); }
.nav__links a.btn--primary { color: var(--text); padding: 10px 22px; }
.nav__links a.btn--primary.active { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-light);
  transition: var(--transition);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline strong {
  color: var(--text-light);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* ── SOBRE MÍ ───────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

.about__photo {
  position: relative;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  filter: grayscale(10%);
}

.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 0.85rem;
}

.about__photo::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  z-index: -1;
}

.about__content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.about__content p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__content p strong { color: var(--text); font-weight: 500; }

.about__implications {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  color: var(--text-sec);
  line-height: 2;
}

.about__brecha {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-sec);
}

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

/* ── CONFERENCIA ────────────────────────────────────── */
.talk {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.talk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.talk__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.talk__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.talk__title em {
  font-style: italic;
  color: var(--accent);
}

.talk__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 48px;
}

.talk__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.talk__topic {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* ── LIBRO ──────────────────────────────────────────── */
.book__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.book__cover {
  position: relative;
}

.book__cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.book__cover:hover img {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
}

.book__content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.book__subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 28px;
}

.book__content p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.book__quote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* ── IDEAS / LINKEDIN ───────────────────────────────── */
.ideas {
  text-align: center;
}

.ideas h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ideas p {
  color: var(--text-sec);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.ideas__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #0A66C2;
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.ideas__linkedin:hover { background: #0857A5; transform: translateY(-2px); }

.ideas__linkedin svg { width: 20px; height: 20px; fill: #fff; }

/* ── CONTACTO ───────────────────────────────────────── */
.contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.contact p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.contact__email {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 48px;
  transition: opacity var(--transition);
}
.contact__email:hover { opacity: 0.75; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer__social a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.footer__social a:hover { color: var(--accent); }

/* ── MOBILE MENU ────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--accent); }

.nav__mobile-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ── ANIMACIONES ENTRADA ───────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid,
  .book__grid { grid-template-columns: 1fr; gap: 48px; }

  .about__photo { max-width: 360px; }
  .about__photo::before { display: none; }
  .book__cover { max-width: 280px; margin: 0 auto; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  height: 30px;
  width: auto;
  display: block;
}