/* ============ Tokens ============ */
:root {
  /* Colores */
  --ink: #000000;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --blush: #f8dbd5;
  --lilac: #cccccc;
  --violet: #2b189b;
  --violet-deep: #211375;
  --violet-wash: rgba(43, 24, 155, .08);

  /* Tipografía */
  --font-display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --font-text: "Source Serif 4", "Lora", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radios */
  --radius-small: 4px;
  --radius-card: 12px;
  --radius-feature: 20px;
  --radius-button: 40px;

  /* Elevación (solo fotos) */
  --shadow-photo: 0 8px 24px rgba(0, 0, 0, .08);

  --max: 1200px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 24px;
}
h1 { font-size: clamp(48px, 7vw, 88px); letter-spacing: -.01em; }
h1 em { font-style: italic; }
h2 { font-size: clamp(40px, 4.5vw, 56px); }
h3, h4 {
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
}
h3 { font-size: 24px; letter-spacing: -.02em; }
h4 { font-size: 20px; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* Etiqueta en píldora (sobre títulos) */
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 500; line-height: 1.5;
  padding: 4px 10px;
  border: 1px solid var(--lilac); border-radius: var(--radius-small);
  margin: 0 0 16px;
}

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: var(--radius-button);
  background: var(--violet); color: #fff; border: 1px solid var(--violet);
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.25;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--violet-deep); border-color: var(--violet-deep); }
.btn--outline { background: transparent; color: var(--violet); }
.btn--outline:hover { background: var(--violet-wash); border-color: var(--violet); }
/* WhatsApp: verde de marca con texto oscuro para mantener buen contraste */
.btn--whatsapp { background: #25d366; border-color: #25d366; color: #06301a; gap: 10px; }
.btn--whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}
.nav__inner { display: flex; align-items: center; gap: 48px; height: 80px; }

.brand {
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.brand span { font-family: var(--font-sans); font-size: 12px; font-weight: 500; margin-left: 6px; color: var(--ink-soft); }

.nav__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-weight: 500; padding-block: 8px; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav__actions { display: flex; gap: 8px; }
.nav__actions .btn { padding: 10px 20px; }

.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; }

/* ============ Hero ============ */
.hero { background: var(--blush); padding-top: 80px; margin-bottom: 24px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero__text { padding-bottom: 80px; }
.lead { font-size: 18px; letter-spacing: -.016em; max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero__photo { margin: 0 0 -24px; align-self: end; }
.hero__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 47% 30%;
  border-radius: var(--radius-card); box-shadow: var(--shadow-photo);
}

/* ============ Credenciales ============ */
.trust { padding-block: 64px 56px; text-align: center; }
.trust__caption { font-size: 14px; margin-bottom: 32px; }
.trust__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px;
}
.trust__list strong { display: block; font-family: var(--font-text); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.trust__list span { font-size: 12px; font-weight: 500; color: var(--ink-soft); }

/* ============ Secciones ============ */
.section { padding-block: 96px; }
.section--mist { background: var(--mist); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__intro { font-size: 18px; letter-spacing: -.016em; color: var(--ink-soft); margin: 0; }

/* ============ Áreas ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--paper); border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); margin: 0; }
.card__icon {
  width: 28px; height: 28px; margin-bottom: 32px;
  fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card--cta { background: transparent; border: 1px solid var(--lilac); justify-content: center; }
.card--cta p { margin-bottom: 24px; }
.card--cta .btn { align-self: flex-start; }

/* ============ Sobre mí ============ */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.about__photo { margin: 0; }
.about__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius-card); box-shadow: var(--shadow-photo);
}
.about__text > p:not(.tag) { font-size: 18px; letter-spacing: -.016em; color: var(--ink-soft); }

.plus-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.plus-list li { display: flex; gap: 12px; font-weight: 500; }
.plus-list li::before { content: "+"; color: var(--violet); font-weight: 500; }

/* ============ Trayectoria ============ */
.timeline-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; column-gap: 24px; padding: 24px 0; border-top: 1px solid var(--lilac); }
.timeline li:last-child { border-bottom: 1px solid var(--lilac); }
.timeline time { grid-row: span 2; font-size: 14px; font-weight: 500; padding-top: 4px; }
.timeline p { color: var(--ink-soft); margin: 0; }

.courses { background: var(--paper); border-radius: var(--radius-card); padding: 40px; }
.courses__title { margin-bottom: 24px; }
.course + .course { border-top: 1px solid var(--mist); margin-top: 24px; padding-top: 24px; }
.course .tag { margin-bottom: 12px; }
.course p:last-child { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ============ Contacto ============ */
.contact { padding-top: 128px; }
.contact__card {
  position: relative;
  background: var(--mist); border-radius: var(--radius-feature);
  padding: 80px 40px 56px; text-align: center;
}
.contact__avatar {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--paper);
}
.contact__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 22%; }
.contact__caption { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.contact__card h2 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; }
.contact__intro { font-size: 18px; letter-spacing: -.016em; max-width: 34em; margin: 0 auto 32px; }

.contact__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px;
  margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--lilac);
}
.contact__list dt { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.contact__list dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

/* ============ Banner de cierre ============ */
.banner { padding-block: 0 56px; }
.banner img {
  width: 100%; height: auto; max-width: 900px; margin-inline: auto;
  border-radius: var(--radius-card); box-shadow: var(--shadow-photo);
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--mist); padding-block: 32px; font-size: 14px; color: var(--ink-soft); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.redes { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; width: 100%; }
.redes a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--ink); }
.redes a:hover { text-decoration: underline; text-underline-offset: 4px; }
.redes svg { width: 18px; height: 18px; fill: currentColor; }
.footer p { margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline-wrap { grid-template-columns: 1fr; gap: 48px; }
  .about { gap: 48px; }
  .nav__inner { gap: 32px; }
  .nav__links { gap: 24px; }
}

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--paper); padding: 8px 24px 24px;
    border-bottom: 1px solid var(--mist);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding-block: 14px; border-bottom: 1px solid var(--mist); }
  .nav__actions .btn { flex: 1; padding: 14px 20px; }

  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding-bottom: 48px; }
  .hero__photo { max-width: 460px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .section { padding-block: 72px; }
  .contact { padding-top: 104px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card, .courses { padding: 24px; }
  .hero__actions .btn { width: 100%; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline time { grid-row: auto; padding: 0 0 4px; }
  .contact__card { padding: 72px 20px 40px; }
  .contact__card .btn { width: 100%; }
  .contact__list { flex-direction: column; gap: 16px; }
}
