
/* JULIAN MUJICA — DGPC 2026 */
/* ESTÉTICA EDITORIAL */

:root {
  --bg: #f4f2ed;
  --ink: #171717;
  --muted: #777570;
  --line: #d3d0c9;
  --soft: #eae7e0;
  --accent: #d84b32;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

/* BASE */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--ink);
  color: var(--bg);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section {
  padding: 100px 5%;
}

.section-muted {
  background: var(--soft);
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.display-title {
  font-family: var(--serif);
  font-size: clamp(58px, 7.4vw, 115px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.07;
}

.display-title em {
  font-weight: 400;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin: 100px 0 70px;
}

.section-intro > p {
  max-width: 260px;
  font-size: 16px;
  line-height: 1.65;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 78px;
  padding: 15px 5%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -2px;
  flex-shrink: 0;
}

.logo span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: top;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: opacity .2s;
}

.main-nav a:hover {
  opacity: .5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.back-link:hover {
  background: var(--ink);
  color: var(--bg);
}

/* HERO */

.hero {
  min-height: calc(100svh - 78px);
  padding: 30px 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-main {
  padding: 75px 0;
}

.hero h1 {
  margin-top: 35px;
  font-family: var(--serif);
  font-size: clamp(90px, 16vw, 250px);
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: .96;
}

.hero h1 em {
  display: inline-block;
  padding-left: 12%;
  font-weight: 400;
}

.hero-description {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-top: 65px;
}

.hero-description p {
  font-size: 18px;
  line-height: 1.6;
}

.round-arrow {
  width: 62px;
  height: 62px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  transition: background .2s, color .2s;
}

.round-arrow:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* PERFIL */

.profile-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 9%;
  align-items: start;
  padding-top: 90px;
}

/* FOTO PERSONAL MÁS PEQUEÑA */

.photo-block {
  width: 100%;
  max-width: 350px;
}

.profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d4d0c8;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
}

.profile-copy {
  padding-top: 10px;
}

.profile-copy .display-title {
  margin: 30px 0 50px;
}

.profile-copy p:not(.eyebrow) {
  max-width: 630px;
  margin-bottom: 23px;
  font-size: 17px;
  line-height: 1.75;
}

.profile-copy p.lead {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.35;
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.mini-facts div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-facts span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.mini-facts strong {
  font-size: 13px;
  font-weight: 600;
}

/* ACADÉMICO */

.academic-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 35px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.academic-summary div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.academic-summary strong {
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}

.academic-summary span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}

.academic-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 85px;
}

.group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.group-heading h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.group-heading > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
}

.subject-list {
  list-style: none;
  counter-reset: subject;
}

.subject-list li {
  counter-increment: subject;
  display: flex;
  align-items: baseline;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.subject-list li::before {
  content: counter(subject, decimal-leading-zero);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.current li {
  font-weight: 600;
}

.course-note {
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.course-note span {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.course-note p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 24px;
}

/* EQUIPO */

.team-list {
  margin-bottom: 100px;
}

.member-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}

a.member-row {
  transition: background .2s, padding-left .2s;
}

a.member-row:hover {
  background: var(--soft);
  padding-left: 25px;
}

.member-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.member-row strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
}

.member-action {
  font-size: 27px;
}

.member-pending {
  font-size: 11px;
  color: var(--muted);
}

/* PROYECTO GRUPAL */

.project-panel {
  padding: 70px 6%;
  background: var(--soft);
}

.project-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.project-panel h3 {
  margin: 55px 0 75px;
  font-family: var(--serif);
  font-size: clamp(70px, 11vw, 175px);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .98;
}

.project-panel h3 em {
  padding-left: 12%;
  font-weight: 400;
}

.project-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--ink);
}

.project-bottom span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-bottom p {
  font-size: 17px;
  line-height: 1.7;
}

/* ENLACES DEL TRABAJO */

.resources {
  margin-top: 100px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.resource-card {
  min-height: 175px;
  padding: 20px;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .2s, color .2s;
}

a.resource-card:hover {
  background: var(--ink);
  color: var(--bg);
}

.resource-card strong {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 400;
}

.resource-card small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.resource-card small:last-child {
  align-self: flex-end;
}

.resource-card.pending {
  opacity: .45;
  cursor: default;
}

/* INSTITUCIONAL */

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

.institution-card {
  border-top: 1px solid var(--ink);
  padding-top: 25px;
}

.institution-card h3 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1;
}

.institution-name {
  max-width: 370px;
  min-height: 70px;
  font-size: 17px;
  line-height: 1.5;
}

.institution-card dl {
  margin-top: 25px;
}

.institution-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.institution-card dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.institution-card dd {
  font-size: 14px;
  line-height: 1.5;
}

/* CONTACTO */

.contact {
  min-height: 70vh;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
}

.contact .section-label {
  border-color: #555;
}

.contact-main {
  flex: 1;
  padding: 110px 0;
}

.contact-main h2 {
  margin: 20px 0 35px;
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 210px);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: 1.15;
}

.contact-main h2 span {
  color: var(--accent);
}

.email-link {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg);
  font-size: clamp(16px, 2.2vw, 28px);
  overflow-wrap: anywhere;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #555;
}

.social-grid a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 15px 25px 0;
  border-bottom: 1px solid #555;
  font-size: 16px;
}

.social-grid a span {
  font-size: 23px;
}

/* FOOTER */

.footer {
  padding: 35px 5%;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid #555;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.footer-legal {
  display: block;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #555;
}

.footer-legal p {
  max-width: 850px;
  font-size: 11px;
  line-height: 1.7;
  color: #aaa;
}

/* TABLET */

@media (max-width: 1050px) {
  .header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .profile-layout {
    gap: 5%;
  }

  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CELULAR */

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

  .header {
    padding: 12px 5%;
    gap: 12px;
  }

  .logo {
    font-size: 27px;
  }

  .back-link {
    padding: 9px 12px;
    font-size: 10px;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .hero {
    min-height: calc(100svh - 120px);
    padding: 25px 5%;
  }

  .hero-meta,
  .hero-bottom {
    font-size: 9px;
  }

  .hero-main {
    padding: 65px 0;
  }

  .hero h1 {
    font-size: clamp(62px, 17vw, 110px);
  }

  .hero h1 em {
    padding-left: 5%;
  }

  .hero-description {
    margin-top: 50px;
  }

  .hero-description p {
    font-size: 14px;
  }

  .round-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .section {
    padding: 75px 5%;
  }

  .section-label {
    font-size: 9px;
  }

  .section-intro {
    flex-direction: column;
    align-items: start;
    gap: 25px;
    margin: 75px 0 50px;
  }

  .display-title {
    font-size: clamp(52px, 11vw, 78px);
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 65px;
  }

  .photo-block {
    max-width: 350px;
  }

  .profile-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .profile-copy p.lead {
    font-size: 28px;
  }

  .academic-summary {
    gap: 10px;
  }

  .academic-summary strong {
    font-size: clamp(50px, 13vw, 80px);
  }

  .academic-summary span {
    font-size: 9px;
  }

  .academic-columns {
    grid-template-columns: 1fr;
    gap: 65px;
    margin-top: 60px;
  }

  .group-heading h3 {
    font-size: 25px;
  }

  .group-heading > span {
    font-size: 9px;
  }

  .member-row {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    min-height: 80px;
  }

  .member-row strong {
    font-size: clamp(21px, 5vw, 31px);
  }

  .member-pending {
    max-width: 65px;
    text-align: right;
    font-size: 9px;
  }

  .project-panel {
    padding: 55px 6%;
  }

  .project-panel h3 {
    font-size: clamp(60px, 14vw, 100px);
  }

  .project-panel h3 em {
    padding-left: 5%;
  }

  .project-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-bottom p {
    font-size: 15px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .resource-card {
    min-height: 145px;
    padding: 15px;
  }

  .resource-card strong {
    font-size: 30px;
  }

  .institution-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .institution-name {
    min-height: 0;
  }

  .institution-card dl div {
    grid-template-columns: 100px 1fr;
  }

  .contact-main {
    padding: 90px 0;
  }

  .contact-main h2 {
    font-size: clamp(65px, 15vw, 100px);
  }

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

  .footer-main {
    flex-direction: column;
    gap: 20px;
  }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 380px) {
  .hero h1 {
    font-size: 60px;
  }

  .mini-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-card strong {
    font-size: 25px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
