:root {
  --bg: #fff8f3;
  --paper: #ffffff;
  --ink: #222222;
  --muted: #666666;
  --accent: #f26cb3;
  --accent-soft: #ffd4ea;
  --line: #f0d8e5;
  --shadow: 0 16px 35px rgba(103, 46, 89, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 8%, #ffe8f4 0, transparent 30%),
    radial-gradient(circle at 92% 20%, #ffeccf 0, transparent 32%),
    var(--bg);
  line-height: 1.45;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 78px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--muted);
}

.eyebrow.center {
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-role {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 700;
}

.hero-text {
  max-width: 55ch;
  margin: 18px 0 24px;
  color: #393939;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.photo-collage {
  position: relative;
  width: min(520px, 100%);
  padding: 18px;
  border: 2px solid #1f1f1f;
  border-radius: 30px;
  background: linear-gradient(145deg, #ffd95a, #ffbe40);
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 2px solid #1f1f1f;
  object-fit: cover;
}

.sticker {
  position: absolute;
  z-index: 2;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid #1f1f1f;
  background: #fff6d6;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
}

.sticker-top {
  top: -14px;
  left: 18px;
}

.sticker-right {
  top: 20px;
  right: -16px;
  background: #ffd8ea;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
}

.hero-icon-card {
  background: var(--paper);
  border: 1px solid #f4d8e8;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-icon-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-icon-card p {
  margin: 4px 0 0;
  color: #555555;
  font-size: 0.92rem;
}

section {
  padding: 64px 0;
}

h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

/* Make these section titles match the DATOS ACADÉMICOS heading size and weight */
.subjects-section h2,
.group-section h2,
.featured-portfolio h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.subjects-grid {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 26px;
  align-items: start;
}

.subject-list {
  margin: 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  list-style: none;
}

.subject-list li + li {
  margin-top: 10px;
}

.subject-list li::before {
  content: "✿ ";
  color: var(--accent);
}

.progress-card {
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.progress-label {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.progress-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 18px auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 62%, transparent 63%),
    conic-gradient(#ff7bbf 78%, #f2d6e7 0);
}

.progress-ring span {
  font-size: 2rem;
  font-weight: 800;
}

.progress-text {
  margin: 0;
  color: #484848;
}

.subjects-section {
  background:
    radial-gradient(circle at 10% 20%, #ffe6f4 0, transparent 30%),
    radial-gradient(circle at 92% 10%, #ffeccf 0, transparent 28%),
    linear-gradient(180deg, #fff8f3, #fff3fa 45%, #fff8f3);
  color: #2a2a35;
}

.subjects-section .eyebrow,
.subjects-section h2 {
  color: #2a2a35;
  margin: 0;
  text-align: left;
}

.subjects-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.overall-progress {
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #f1d8e8;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.overall-progress p {
  margin: 0 0 8px;
  font-weight: 700;
}

.overall-progress small {
  color: #6e6a7f;
}

.overall-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #efe5ef;
  margin-bottom: 8px;
  overflow: hidden;
}

.overall-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f070b6, #a476ff);
}

.level-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.level-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.level-card .level-badge {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.level-card:hover .level-badge {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.10));
}

.level-card.active {
  /* wrapper stays clean and transparent; no card styling here */
}

.level-card.active .level-badge {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 18px rgba(180,95,255,0.35));
}

.level-card.locked {
  opacity: 0.6;
}

.level-detail {
  display: none;
  background: #ffffff;
  color: #131727;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #efd6e8;
  box-shadow: var(--shadow);
}

.level-detail.active {
  display: block;
}

.level-detail + .level-detail {
  margin-top: 16px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
}

.detail-header h3 {
  margin: 0;
  font-size: 1.85rem;
}

.detail-header p {
  margin: 5px 0 0;
  color: #545b76;
}

.detail-progress {
  min-width: 300px;
}

.detail-progress p {
  margin: 0 0 6px;
  font-weight: 700;
  color: #202742;
}

.detail-track {
  height: 9px;
  border-radius: 999px;
  background: #efe5ef;
  overflow: hidden;
}

.detail-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f070b6, #a476ff);
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.subject-item {
  background: #ffffff;
  border: 1px solid #efd9e8;
  border-radius: 14px;
  padding: 12px;
}

.subject-tag {
  display: inline-block;
  border-radius: 999px;
  background: #ffe0f0;
  color: #ab2f79;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 8px;
}

.subject-item h4 {
  margin: 0;
  font-size: 1.2rem;
}

.subject-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.check-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  background: #43b05c;
}

.check-mark.pending {
  background: #ece8f3;
  color: #8a829f;
}

.group-section {
  background: linear-gradient(180deg, transparent, #fff2f9 30%, transparent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 260px));
  justify-content: center;
  gap: 20px;
}

.team-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffc2e4, #ffd8aa);
  color: #fff;
  font-weight: 800;
}

.team-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.team-card p {
  margin: 8px 0 10px;
  color: #575757;
}

.team-card a {
  color: #c04b8b;
  text-decoration: none;
  font-weight: 700;
}

/* Featured portfolio: clean, JS-free responsive grid */
.featured-portfolio {
  padding: 64px 0 78px;
}

.featured-portfolio h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

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

.pf-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 3 / 4;
  transition: transform 0.32s ease;
}

.pf-card:hover {
  transform: translateY(-6px);
}

.pf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
  background: #FFC70D;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.pf-card:hover .pf-overlay {
  opacity: 1;
  transform: translateY(0);
}

.pf-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pf-title {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
}

.pf-meta {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Academic Information Section */
.academic-info {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, transparent, #fff2f9 40%, transparent);
}

.academic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 42px;
}

.academic-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: left;
}

.academic-subtitle {
  margin: 0;
  color: #c04b8b;
  font-size: 0.92rem;
  font-style: italic;
  text-align: right;
  white-space: nowrap;
}

.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.academic-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.academic-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #efe5ef;
  align-items: start;
}

.academic-row:last-child {
  border-bottom: none;
}

.academic-label {
  font-weight: 700;
  color: #c04b8b;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.academic-value {
  color: #333333;
  font-size: 0.96rem;
  line-height: 1.4;
}

/* Decisions / Design choices — Option A editorial layout */
.decisions-section {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, #fff7f9 30%, transparent);
}

.decisions-section h2 {
  margin: 6px 0 28px;
  text-align: center;
  font-weight: 800;
}

.decisions-grid {
  display: grid;
  gap: 18px 0;
  margin-bottom: 24px;
}

.decisions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.decisions-divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  border-radius: 2px;
  margin: 4px 0;
}

.decisions-item {
  padding: 6px 0;
  background: transparent;
}

.decisions-number {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.decisions-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.decisions-item p {
  margin: 0;
  color: #333333;
  line-height: 1.6;
  font-size: 0.98rem;
}

.decisions-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 0 0;
  border-top: 1px solid var(--line);
}

.decisions-cta .cta-copy h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
}

.decisions-cta .cta-copy p {
  margin: 0;
  color: #333333;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  padding: 0 34px;
  min-width: 220px;
  min-height: 52px;
  border-radius: 999px;
  transition: transform 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(242,108,179,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ee5b9b;
}

@media (max-width: 1024px) {
  .decisions-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .decisions-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 14px;
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .decisions-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.process-page {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, transparent, #fff7f9 40%, transparent);
}

.process-page .section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.process-page .section-description {
  margin: 18px auto 0;
  color: #4f4a56;
  max-width: 700px;
  line-height: 1.75;
}

.process-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
  overflow: visible;
}

.process-nav {
  order: 1;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 120px;
  align-self: start;
  height: fit-content;
}

.process-content {
  order: 2;
}

.process-step {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #222222;
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.18s ease;
  background: transparent;
}

.process-step:hover {
  color: var(--accent);
  background: transparent;
}

.process-step span {
  flex-shrink: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-stage {
  padding: 0;
  scroll-margin-top: 140px;
}

.process-step.active,
#investigacion:target ~ .process-nav a[href="#investigacion"],
#desarrollo:target ~ .process-nav a[href="#desarrollo"],
#resultado:target ~ .process-nav a[href="#resultado"] {
  color: #222222;
  background: rgba(242, 108, 179, 0.16);
}

.process-step.active span,
#investigacion:target ~ .process-nav a[href="#investigacion"] span,
#desarrollo:target ~ .process-nav a[href="#desarrollo"] span,
#resultado:target ~ .process-nav a[href="#resultado"] span {
  color: var(--accent);
}

.process-content {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.process-stage {
  padding: 0;
  scroll-margin-top: 140px;
}

.process-stage-inner {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
  min-height: 520px;
}

.process-thumb {
  min-height: 420px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 229, 241, 1), rgba(255, 244, 250, 1));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.process-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-card {
  padding: 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.process-stage-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: var(--ink);
}

.process-card p {
  margin: 0 0 18px;
  color: #333333;
  line-height: 1.8;
}

.process-result {
  margin-top: 8px;
  color: #494949;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-nav {
    position: relative;
    top: auto;
    width: 100%;
  }

  .process-step {
    display: inline-flex;
    min-width: 180px;
    padding: 12px 14px;
  }

  .process-stage-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .process-page {
    padding: 56px 0 40px;
  }

  .process-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .process-step {
    min-width: auto;
    flex: 1 1 100%;
  }

  .process-stage-inner {
    gap: 24px;
  }

  .process-thumb {
    min-height: 240px;
  }
}


.site-footer {
  position: relative;
  margin-top: 26px;
  background: #ffbe40;
  color: #222222;
}

.footer-scallop {
  height: 44px;
  background:
    radial-gradient(44px at 44px 44px, #ffbe40 98%, transparent 100%) 0 0/88px 44px repeat-x;
}

.footer-content {
  padding: 44px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-meta,
.footer-disclaimer,
.footer-credits {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #222222;
}

/* New footer eyebrow (top label) matching sample image */
.footer-eyebrow {
  margin: 0 0 18px;
  text-align: center;
  color: #d95b00;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.footer-meta strong {
  font-weight: 800;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 8px auto 0;
  font-size: 0.78rem;
  color: #3e3320;
  text-align: center;
  line-height: 1.6;
  opacity: 0.95;
}

.footer-disclaimer + .footer-disclaimer {
  margin-top: 10px;
}

.footer-credits {
  margin: 22px auto 0;
  text-align: center;
  font-weight: 700;
  color: #3a2a0f;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-art {
    order: -1;
  }

  .hero-icons {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
  }

  .subjects-header,
  .detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .overall-progress,
  .detail-progress {
    min-width: 0;
  }

  .level-roadmap {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .subject-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academic-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .academic-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .academic-subtitle {
    text-align: left;
    white-space: normal;
  }

}

@media (max-width: 640px) {
  .main-nav {
    gap: 12px;
    justify-content: flex-end;
    font-size: 0.92rem;
  }

  .photo-collage {
    transform: none;
  }

  .hero-icons {
    grid-template-columns: 1fr;
  }

  .level-roadmap,
  .subject-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

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

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

  .academic-row {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 10px 0;
  }

}
