:root {
  --bg: #fafaf8;
  --fg: #0a0a0a;
  --muted: #555550;
  --line: #d8d5ce;
  --accent: #0a0a0a;
  --mono: 'DM Mono', 'Courier New', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: underline; }
a:hover { opacity: .55; }

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

/* ---------- HEADER ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}

header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

header nav a {
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--muted);
  transition: color .12s;
}
header nav a:hover { color: var(--fg); opacity: 1; }

.nav-portal {
  border: 1px solid var(--line);
  padding: 6px 14px;
  color: var(--fg) !important;
}
.nav-portal:hover { background: var(--fg); color: var(--bg) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--fg);
}

/* ---------- MAIN ---------- */
main { min-height: calc(100vh - 200px); }

/* ---------- PAGE WRAPPER ---------- */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px;
}

.wrap-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0 0 24px;
  line-height: 1.15;
}

h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

p { margin: 0 0 18px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- HOME ---------- */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 32px 0;
}

.home-top {
  text-align: center;
  margin-bottom: 28px;
}

.home-top h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  margin: 0 0 6px;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.home-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  letter-spacing: .02em;
}

.home-photo-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.home-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 20px 0;
  gap: 0;
}

.home-nav-overlay a {
  font-family: var(--mono);
  font-size: 13.7px;
  font-weight: 400;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 2.1;
  transition: opacity .12s;
  white-space: nowrap;
}
.home-nav-overlay a:hover { opacity: .45; }

.home-icons {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 52px;
}

.home-icons a {
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity .12s;
}
.home-icons a:hover { opacity: .5; }
.home-icons svg { width: 36px; height: 36px; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 48px;
  align-items: start;
}

.about-intro {
  grid-column: 1 / -1;
}

.about-intro h1 { margin-bottom: 4px; }
.about-intro .role { color: var(--muted); font-size: 13px; margin: 0 0 40px; }

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-photos-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
}
.about-photos-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ---------- SESIONES ---------- */
.sesiones-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.sesion-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 40px;
}
.sesion-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.sesion-card p { font-size: 13px; color: var(--muted); margin: 0; }

.sesiones-meta {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-agenda {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: all .12s;
  margin-top: 40px;
}
.btn-agenda:hover { background: var(--fg); color: var(--bg); opacity: 1; }

/* ---------- CONTACTO ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-item { margin-bottom: 32px; }
.contact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-value { font-size: 14px; }
.contact-value a { color: var(--fg); }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.footer-thanks {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

.footer-blog {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
}
.footer-blog:hover { color: var(--fg); opacity: 1; }

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  header { padding: 20px 24px; }

  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0;
  }
  header nav.open { display: flex; }
  header nav a { padding: 12px 24px; width: 100%; }
  .nav-portal { border: none; border-top: 1px solid var(--line); margin-top: 4px; }

  .menu-toggle { display: flex; }

  .wrap, .wrap-narrow { padding: 48px 24px; }

  .home { padding: 40px 24px 0; }
  .home-top h1 { font-size: clamp(26px, 7vw, 36px); }
  .home-photo-box { max-width: 320px; }
  .home-icons svg { width: 30px; height: 30px; }
  .home-icons { gap: 20px; margin-top: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-intro { grid-column: 1; }
  .about-photos-strip { grid-template-columns: 1fr; }

  .sesiones-hero { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }

  footer { padding: 20px 24px; flex-wrap: wrap; gap: 8px; }
  .footer-thanks { width: 100%; }
  .footer-copy { margin-left: auto; }
  .home-nav-overlay a { font-size: 13.1px; }
  .home-icons { margin-bottom: 32px; }
}
