:root {
  --ink: #171512;
  --ink-soft: #39352f;
  --paper: #fbfaf7;
  --cream: #f2ede4;
  --sand: #e6dccb;
  --gold: #9b7841;
  --gold-dark: #785b2f;
  --white: #ffffff;
  --line: rgba(23, 21, 18, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(28, 23, 17, 0.10);
  --radius-lg: 34px;
  --radius-md: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.84);
  border-bottom: 1px solid rgba(23, 21, 18, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 80px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding-block: 8px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: url("fondo.jpg") center 35% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 11, 10, 0.83) 0%, rgba(12, 11, 10, 0.54) 45%, rgba(12, 11, 10, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 11, 10, 0.70) 0%, rgba(12, 11, 10, 0.08) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 180px;
  padding-bottom: 92px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8bd8d;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  max-width: 920px;
  font-size: clamp(4.8rem, 11vw, 9.8rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.65rem, 5.8vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 30px 0 40px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 54px;
  padding: 14px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.section {
  padding: 120px 0;
}

.section-white {
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-heading {
  max-width: 880px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: start;
}

.bio-copy {
  max-width: 760px;
}

.bio-copy h2 {
  margin-bottom: 42px;
}

.bio-copy > p:not(.section-kicker) {
  margin: 0 0 1.55rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.92;
  letter-spacing: 0.006em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.bio-copy .bio-lead {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.78;
}

.bio-copy em {
  color: var(--ink);
}

.bio-side {
  position: sticky;
  top: 118px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--sand);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.bio-badges {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bio-badges span {
  padding: 8px 13px;
  border: 1px solid #d9c7aa;
  border-radius: 999px;
  background: #faf6ef;
  color: #4a4338;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bio-badges span:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.cards {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-height: 330px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(28, 23, 17, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(28, 23, 17, 0.10);
}

.card-number {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card h3 {
  margin-bottom: 16px;
}

.card p,
.service-card p {
  margin: 0;
  color: #5b554d;
  line-height: 1.75;
}

.dark {
  color: var(--white);
  background: #141311;
}

.light-heading h2 {
  color: var(--white);
}

.class-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.class-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 38px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
}

.class-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(155, 120, 65, 0.16);
  filter: blur(2px);
}

.class-card h3 {
  position: relative;
  margin-bottom: 32px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.class-meta,
.class-note {
  position: relative;
  margin: 0;
}

.class-meta {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.class-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(54px, 7vw, 96px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 120px;
}

.section-intro {
  max-width: 440px;
  margin: 28px 0 0;
  color: #625b52;
  font-size: 1.02rem;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 120, 65, 0.38);
  box-shadow: 0 20px 55px rgba(28, 23, 17, 0.08);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.65rem;
}

.contact-section {
  background: var(--cream);
}

.contact-box {
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 86px);
  align-items: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: #141311;
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy > p:last-child {
  max-width: 470px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.04rem;
  line-height: 1.75;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.field-group {
  display: grid;
  gap: 8px;
}

.contact-form label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid transparent;
  border-radius: 13px;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d3b57b;
  box-shadow: 0 0 0 3px rgba(211, 181, 123, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #e5d2a8;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--gold);
}

footer {
  padding: 34px 24px;
  color: #6d675f;
  background: var(--paper);
  text-align: center;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .container,
  .header-inner {
    width: min(100% - 44px, var(--container));
  }

  .nav {
    gap: 18px;
    font-size: 0.68rem;
  }

  .bio-layout,
  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .bio-side,
  .sticky-heading {
    position: static;
  }

  .bio-side {
    max-width: 520px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav {
    display: none;
  }

  .logo {
    font-size: 1.65rem;
  }

  .hero {
    min-height: 88svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(4.1rem, 20vw, 6.2rem);
  }

  h2 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  .section {
    padding: 82px 0;
  }

  .bio-copy > p:not(.section-kicker) {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    font-size: 1rem;
    line-height: 1.82;
  }

  .class-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .class-card {
    min-height: 260px;
  }

  .contact-box {
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner {
    width: min(100% - 32px, var(--container));
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .card,
  .class-card,
  .service-card,
  .contact-form {
    padding: 24px;
  }

  .contact-box {
    padding: 26px;
  }
}
.academic-link{
    color:#8c6b35;
    font-weight:600;
    text-decoration:none;
    transition:.25s;
}

.academic-link:hover{
    color:#a8874e;
}

.academic-link::after{
    content:" ↗";
    font-size:.9em;
}
