/* Alexandra Salgado — editorial redesign */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --ink: #1d1a16;
  --ink-soft: #4a453d;
  --taupe: #8c8272;
  --line: #ddd2bd;
  --accent: #a8341f;
  --accent-deep: #7e2717;
  --white: #fffdf9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gap-section: clamp(4rem, 8vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  padding: 2rem 0 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav a {
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
    z-index: 100;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a {
    padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
  }
  .header-inner { position: relative; }
}

/* ---------- buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover { border-color: var(--accent); gap: 0.6rem; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 var(--gap-section);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero .eyebrow { display: block; margin-bottom: 1.25rem; }

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  max-width: 14ch;
  line-height: 1.02;
}

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

.hero-lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px -20px rgba(29, 26, 22, 0.35);
}

.hero-blob {
  position: absolute;
  inset: -6% -10% -10% -6%;
  background: linear-gradient(150deg, var(--accent), #e0a15c 85%);
  opacity: 0.9;
  border-radius: 42% 58% 53% 47% / 48% 45% 55% 52%;
  z-index: 0;
  animation: blob-shift 12s ease-in-out infinite alternate;
}

@keyframes blob-shift {
  from { border-radius: 42% 58% 53% 47% / 48% 45% 55% 52%; }
  to   { border-radius: 55% 45% 40% 60% / 40% 55% 45% 60%; }
}

.hero-quotemark {
  position: absolute;
  top: -1.6rem;
  left: -1.4rem;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--accent);
  opacity: 0.9;
  z-index: 2;
}

.hero-quotemark text { fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

/* ---------- quotes / editorial ---------- */

.quotes {
  padding-bottom: var(--gap-section);
  border-top: 1px solid var(--line);
}

.quotes-head {
  padding-top: var(--gap-section);
  margin-bottom: 3rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}

@media (max-width: 720px) {
  .quote-grid { grid-template-columns: 1fr; }
}

blockquote.quote {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

blockquote.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

blockquote.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- page header (interior pages) ---------- */

.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
}

.page-head .eyebrow { display: block; margin-bottom: 1rem; }

.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 20ch; }

.page-head .lede {
  margin-top: 1.5rem;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--taupe);
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--accent); }

/* ---------- portfolio hub cards ---------- */

.practice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: var(--gap-section);
}

@media (max-width: 860px) {
  .practice-cards { grid-template-columns: 1fr; gap: 2rem; }
}

.practice-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.practice-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(45%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.practice-card:hover img { transform: scale(1.05); filter: grayscale(0%); }

.practice-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,10,0.82), rgba(20,15,10,0) 55%);
}

.practice-card-label {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  z-index: 1;
}

.practice-card-label .eyebrow { color: #e8c9a0; }

.practice-card-label h3 {
  font-family: var(--serif);
  color: var(--white);
  margin-top: 0.4rem;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-bottom: var(--gap-section);
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-deep);
}

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.5s ease;
}

.gallery a:hover img,
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- project blocks (infantojuvenil) ---------- */

.project {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.project:last-child { border-bottom: none; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 780px) {
  .project-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.project-body h3 { margin-bottom: 0.9rem; }
.project-body p { color: var(--ink-soft); margin: 0 0 1rem; }

.project-media img { border-radius: 3px; }

/* ---------- media-text (comunidades hero) ---------- */

.media-banner {
  margin-bottom: var(--gap-section);
}

.media-banner img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: 3px;
}

/* ---------- bio (sobre mim) ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: var(--gap-section);
}

@media (max-width: 780px) {
  .bio-grid { grid-template-columns: 1fr; }
}

.bio-photo {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
}

.bio-photo img { width: 100%; height: 100%; object-fit: cover; }

.bio-name { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }

.bio-contact {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.bio-contact a { text-decoration: none; color: var(--accent); }
.bio-contact a:hover { text-decoration: underline; }

.bio-text p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.bio-text a { color: var(--accent); }

/* ---------- timeline (experience / education) ---------- */

.section-block {
  padding-bottom: var(--gap-section);
}

.section-block > .eyebrow { display: block; margin-bottom: 0.75rem; }
.section-block > h2 { margin-bottom: 2.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 700px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

.timeline-when {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--taupe);
}

.timeline-item h3 { margin-bottom: 0.35rem; }

.timeline-org {
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.timeline-item ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.timeline-item li { margin-bottom: 0.35rem; }
.timeline-item p { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* ---------- article (blog posts) ---------- */

.article {
  max-width: 68ch;
  margin: 0 auto;
  padding-bottom: var(--gap-section);
}

.article .page-head { padding-left: 0; padding-right: 0; }

.article-meta {
  font-size: 0.85rem;
  color: var(--taupe);
  margin-top: 1rem;
}

.article-media {
  margin: 2.5rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.article-body p { color: var(--ink-soft); }
.article-body a { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--taupe);
}

.footer-inner a { color: var(--taupe); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

.footer-name { font-family: var(--serif); color: var(--ink); margin: 0; }
