/* ══════════════════════════════════════════
   NOELIA RIVADA · Portfolio · FADU UBA 2026
   styles.css
══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f5f3ef;
  --ink:     #1a1814;
  --muted:   #7a7570;
  --accent:  #c8b89a;
  --accent2: #e8533a;
  --rule:    #d4cfc8;
  --serif:   'Instrument Serif', Georgia, serif;
  --sans:    'Google Sans Flex', 'DM Sans', sans-serif;
  --display: 'Passion One', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── ANCHO MÁXIMO CENTRADO ── */
nav,
section {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
  z-index: 9999;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(245,243,239,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  gap: 3rem;
  border-bottom: 1px solid var(--rule);
}

/* Left column: text */
.hero-text { max-width: 480px; }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--muted);
}
.hero-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .5rem;
}
.hero-name span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.8rem);
  text-transform: none;
  display: block;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.1;
}
.hero-desc {
  margin-top: 1.75rem;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}
.hero-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .32rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink);
  background: transparent;
}
.hero-cta {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s;
}
.hero-cta:hover { background: var(--accent2); }

/* Center column: avatar */
.hero-avatar-wrap {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}
.hero-avatar-wrap::before {
  /* decorative ring */
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  z-index: 0;
}
.hero-avatar {
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  /* clip to soft rounded rectangle */
  border-radius: 160px 160px 120px 120px;
  /* slight desaturation to blend with palette */
  filter: grayscale(8%) contrast(1.04);
  box-shadow: 0 32px 80px rgba(26,24,20,.18);
}
/* red accent glow matching the photo's light */
.hero-avatar-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(232,83,58,.25) 0%, transparent 70%);
  z-index: 0;
  filter: blur(12px);
}

/* Right column: stats */
.hero-stats {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 2.5rem;
  text-align: right;
  align-self: center;
}
.stat-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

/* ══════════════════════════════
   SECTIONS — SHARED
══════════════════════════════ */
section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--rule);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: .95;
}
.section-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
}

/* ══════════════════════════════
   SOBRE MÍ
══════════════════════════════ */
#sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.sobre-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 2rem;
}
.sobre-body {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--muted);
}
.sobre-block {
  background: var(--ink);
  color: var(--bg);
  padding: 3rem;
  position: relative;
}
.sobre-block::before {
  content: '"';
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  opacity: .08;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  pointer-events: none;
}
.sobre-block p {
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(245,243,239,.8);
  position: relative;
  z-index: 1;
}
.sobre-block .services {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.service-item {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bg);
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(245,243,239,.15);
}
.service-item:last-child { border-bottom: none; }

/* ══════════════════════════════
   MATERIAS
══════════════════════════════ */
.materias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.year-block {
  background: white;
  border: 1px solid var(--rule);
  padding: 1.5rem;
}
.year-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ink);
}
.materia-item {
  font-size: .82rem;
  color: var(--muted);
  padding: .3rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}
.materia-item:last-child { border-bottom: none; }
.materia-item.equiv { color: var(--accent); font-style: italic; }

.progress-bar-wrapper {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.progress-info { flex: 1; min-width: 200px; }
.pct-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
}
.pct-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,243,239,.5);
  margin-top: .25rem;
}
.progress-bar-container { flex: 3; min-width: 240px; }
.progress-bar-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,243,239,.5);
  margin-bottom: .75rem;
}
.progress-bar {
  height: 6px;
  background: rgba(245,243,239,.15);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent2);
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.progress-sub {
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
}
.progress-sub div { font-size: .82rem; color: rgba(245,243,239,.65); }
.progress-sub strong { color: var(--bg); }

/* ══════════════════════════════
   PORTFOLIO
══════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.project-card:hover .project-img  { transform: scale(1.05); }
.project-card:hover .project-overlay { opacity: 1; }
.project-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,.92) 50%, transparent);
  opacity: .7;
  transition: opacity .35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}
.project-year {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.project-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 1.05;
  margin-bottom: .5rem;
}
.project-type {
  font-size: .75rem;
  color: rgba(245,243,239,.6);
  letter-spacing: .06em;
}
.project-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.project-card:hover .project-arrow { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
#contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-big {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 6rem);
  text-transform: uppercase;
  line-height: .9;
  margin-bottom: 1.5rem;
}
.contact-big span {
  font-family: var(--serif);
  font-style: italic;
  font-size: .6em;
  text-transform: none;
  display: block;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
}
.contact-email {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .1rem;
  transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--accent2); border-color: var(--accent2); }
.social-list { display: flex; flex-direction: column; gap: 0; }
.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: color .2s;
}
.social-item:first-child { border-top: 1px solid var(--rule); }
.social-item:hover { color: var(--accent2); }
.social-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.social-handle { font-size: .8rem; color: var(--muted); font-style: italic; }
.social-arrow  { font-size: 1.2rem; opacity: .4; transition: opacity .2s, transform .2s; }
.social-item:hover .social-arrow { opacity: 1; transform: translateX(4px); }

/* ══════════════════════════════
   DATOS ACADÉMICOS
══════════════════════════════ */
#datos {
  background: var(--ink);
  color: var(--bg);
}
#datos .section-title   { color: var(--bg); }
#datos .section-subtitle { color: rgba(245,243,239,.4); }
.datos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 6rem;
}
.dato-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(245,243,239,.08);
  gap: 1rem;
}
.dato-key {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,243,239,.35);
  flex-shrink: 0;
}
.dato-val { font-size: .88rem; color: rgba(245,243,239,.8); text-align: right; }
.integrantes-block {
  grid-column: 1/-1;
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid rgba(245,243,239,.1);
}
.integrantes-label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245,243,239,.3);
  margin-bottom: 1rem;
}
.integrantes-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.integrante-pill {
  padding: .4rem 1rem;
  border: 1px solid rgba(245,243,239,.15);
  font-size: .8rem;
  color: rgba(245,243,239,.7);
}
.integrante-pill.me {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--bg);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: rgba(245,243,239,.3);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(245,243,239,.1);
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1100px) {
  #hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero-avatar-wrap {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: center;
    width: 260px;
  }
  .hero-avatar { width: 260px; height: 320px; }
  .hero-stats {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    display: flex;
    gap: 2rem;
  }
}

/* ══════════════════════════════
   EQUIPO
══════════════════════════════ */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.equipo-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.equipo-card:hover { transform: translateY(-6px); }
.equipo-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 1rem;
}
.equipo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
  transition: filter .3s, transform .4s cubic-bezier(.22,1,.36,1);
}
.equipo-card:hover .equipo-img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.equipo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .2rem;
}
.equipo-link {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.equipo-card:hover .equipo-link { color: var(--accent2); }
.equipo-card--me { cursor: default; }
.equipo-card--me .equipo-img-wrap {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}
.equipo-card--me .equipo-img  { filter: grayscale(0%); }
.equipo-card--me .equipo-link { color: var(--accent2); }
.equipo-card--me:hover        { transform: none; }

@media (max-width: 780px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .equipo-grid { grid-template-columns: repeat(2, 1fr); }

  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 6rem 1.5rem 3rem;
  }
  .hero-avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 200px;
    margin-bottom: 1rem;
  }
  .hero-avatar { width: 200px; height: 250px; }
  .hero-text { grid-row: 2; }
  .hero-stats {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  #sobre, #contacto { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .materias-grid  { grid-template-columns: 1fr; }
  .datos-grid     { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .section-subtitle { text-align: left; }
  footer { flex-direction: column; gap: .75rem; text-align: center; }
}