
:root {
  --primary: #304a5f;
  --primary-dark: #223747;
  --accent: #c89b5c;
  --paper: #f4f1eb;
  --text: #26333d;
  --muted: #687681;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--paper);
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .75rem 1rem;
  background: rgba(34,55,71,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0,0,0,.15);
}

.topnav a,
.nav-more > button {
  color: var(--white);
  text-decoration: none;
  font: inherit;
  font-size: .85rem;
  padding: .55rem .7rem;
  border-radius: .4rem;
  white-space: nowrap;
}

.topnav a:hover,
.nav-more > button:hover {
  background: rgba(255,255,255,.12);
  color: #f0d3a5;
}

.topnav a.active {
  background: rgba(255,255,255,.16);
  color: #f0d3a5;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-more { position: relative; }
.nav-more > button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 230px;
  padding: .45rem;
  margin: 0;
  list-style: none;
  background: var(--white);
  border-radius: .5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
  display: none;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  color: var(--text);
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--paper);
  color: var(--primary);
  box-shadow: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(24,43,57,.82), rgba(48,74,95,.58)),
    url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=2400&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(to bottom, transparent 70%, rgba(244,241,235,.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px,90%);
  text-align: center;
  color: var(--white);
  padding: 2rem;
  transition: opacity .15s linear;
}

.hero-kicker,
.section-label {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-kicker { color: white; opacity: .9; }

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem,7vw,6.8rem);
  line-height: .98;
  font-weight: 500;
  text-shadow: 0 3px 20px rgba(0,0,0,.25);
}

.hero-subtitle {
  max-width: 800px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem,2vw,1.55rem);
  line-height: 1.5;
  font-weight: 300;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  opacity: .85;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: .6rem auto 0;
  background: rgba(255,255,255,.8);
}

.profile {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 7rem 7%;
  background: var(--paper);
}

.profile-inner,
.intro-inner {
  width: min(1180px,100%);
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 5rem;
  align-items: center;
}

.profile h2,
.intro-heading h2 {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--primary-dark);
}

.profile h2 { font-size: clamp(2rem,4vw,3.6rem); }

.student-name {
  margin-bottom: 2rem;
  font-size: clamp(1.35rem,2vw,1.8rem);
  font-weight: 600;
}

.institution {
  margin: .4rem 0;
  line-height: 1.65;
}

.institution strong {
  display: block;
  color: var(--primary);
}

.advisor {
  position: relative;
  padding: 2.2rem;
  background: white;
  border-radius: .8rem;
  box-shadow: 0 12px 35px rgba(34,55,71,.1);
}

.advisor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  border-radius: .8rem 0 0 .8rem;
}

.advisor h3 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.advisor p { margin: 0; line-height: 1.7; color: var(--muted); }

.introduction {
  padding: 8rem 7% 9rem;
  background: var(--paper);
  overflow: hidden;
}

.intro-heading { margin-bottom: 4rem; }
.intro-heading h2 {
  font-size: clamp(3rem,6vw,5.4rem);
  line-height: 1;
}

.intro-profile {
  display: grid;
  grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr);
  gap: 5rem;
  align-items: center;
  margin-bottom: 8rem;
}

.intro-photo { min-height: 480px; }

.photo-placeholder,
.large-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg,rgba(48,74,95,.10),rgba(200,155,92,.18));
  border: 1px dashed rgba(48,74,95,.35);
  color: var(--primary);
  text-align: center;
}

.photo-placeholder span,
.large-photo-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.photo-placeholder small,
.large-photo-placeholder small {
  color: var(--muted);
  font-size: .8rem;
}

.intro-text {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #46545e;
}

.intro-text p { margin: 0 0 1.5rem; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--primary-dark); }

.objectives {
  display: grid;
  grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr);
  gap: 5rem;
  padding: 4rem 0 7rem;
  border-top: 1px solid rgba(48,74,95,.16);
}

.objectives-intro h3 {
  margin: 0 0 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem,3.5vw,3rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--primary-dark);
}

.objectives-intro > p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.objectives-intro .objectives-image {
  display: block;
  width: 100%;
  height: auto;
}

.objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.objectives-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(48,74,95,.13);
  line-height: 1.6;
  color: #46545e;
}

.objectives-list li:first-child { padding-top: 0; }

.objective-number {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding-top: .2rem;
}

.intro-final-image {
  position: relative;
  min-height: 560px;
  margin-top: 1rem;
}

.final-image-caption {
  position: absolute;
  z-index: 2;
  top: -1.8rem;
  right: 2rem;
  max-width: 480px;
  padding: 1rem 1.4rem;
  background: var(--primary-dark);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem,2vw,1.7rem);
  font-style: italic;
  line-height: 1.3;
  box-shadow: 0 10px 25px rgba(34,55,71,.18);
}

.large-photo-placeholder { min-height: 560px; }

.page-section {
  min-height: 80vh;
  padding: 9rem 7%;
  background: var(--paper);
}

.page-section-inner {
  width: min(1180px,100%);
  margin: 0 auto;
}

.page-section h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 500;
  color: var(--primary-dark);
}

.evidence-detail {
  min-height: auto;
}

.evidence-header {
  margin-bottom: 4rem;
}

.evidence-lead {
  max-width: 780px;
  margin: 1.6rem 0 0;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #46545e;
}

.evidence-block {
  padding: 3rem 0;
  border-top: 1px solid rgba(48,74,95,.16);
}

.evidence-block-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.evidence-block-heading h2,
.evidence-block-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary-dark);
  font-weight: 500;
}

.evidence-block-heading h2 {
  margin: 0;
  font-size: clamp(2rem,3.8vw,3.2rem);
  line-height: 1.08;
}

.evidence-block-heading h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.35rem,2.4vw,1.85rem);
}

.evidence-copy {
  max-width: 880px;
}

.evidence-copy p,
.reflection-copy p,
.reflection-copy li,
.interest-links li {
  color: #46545e;
  line-height: 1.85;
}

.evidence-copy p {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
}

.evidence-copy p:last-child {
  margin-bottom: 0;
}

.evidence-copy-spaced {
  margin-top: 2rem;
}

.media-placeholder,
.video-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(48,74,95,.08), rgba(200,155,92,.18));
  border: 1px dashed rgba(48,74,95,.35);
  border-radius: 1rem;
  color: var(--primary);
  text-align: center;
}

.media-frame {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: block;
}

.media-placeholder-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.evidence-graphic-container {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evidence-graphic-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.evidence-graphic-caption {
  margin-top: 1.15rem;
  max-width: 820px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.media-placeholder span,
.video-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.media-placeholder small,
.video-placeholder small {
  max-width: 460px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.video-placeholder-card {
  margin-top: 2.2rem;
}

.video-frame {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(34,55,71,.12);
  box-shadow: 0 14px 30px rgba(34,55,71,.12);
}

.video-placeholder-wide {
  min-height: 360px;
}

.evidence-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.video-placeholder code {
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
}

.evidence-actions {
  margin-top: 2rem;
}

.pdf-viewer-card {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid rgba(48, 74, 95, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(34, 55, 71, 0.08);
}

.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(48, 74, 95, 0.04);
  border-bottom: 1px solid rgba(48, 74, 95, 0.1);
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 600;
}

.pdf-viewer-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.pdf-viewer-header a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.pdf-viewer-frame {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .pdf-viewer-frame {
    height: 480px;
  }
}

.evidence-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.35rem;
  border-radius: .75rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(34,55,71,.14);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.evidence-link-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(34,55,71,.18);
}

.reflection-row {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 3rem;
  align-items: stretch;
  padding: 2rem 0;
}

.reflection-row + .reflection-row {
  border-top: 1px solid rgba(48,74,95,.12);
}

.reflection-row-alt {
  grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr);
}

.reflection-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reflection-title {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem,2.7vw,2.2rem);
  line-height: 1.2;
  color: var(--primary-dark);
}

.reflection-list {
  margin: 0;
  padding-left: 1.3rem;
}

.reflection-list li + li {
  margin-top: 1rem;
}

.reflection-list strong {
  color: var(--primary-dark);
}

.reflection-question {
  margin: 0 0 1.4rem;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 25px rgba(34,55,71,.06);
}

.reflection-question p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--primary-dark);
}

.links-block {
  padding-bottom: 0;
}

.interest-links {
  margin: 0;
  padding-left: 1.2rem;
}

.interest-links li + li {
  margin-top: 1rem;
}

.interest-links a {
  color: var(--primary);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.concept-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.concept-card-media {
  width: 100%;
  height: 155px;
  margin: 0.9rem 0 1.1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(34, 55, 71, 0.08);
}

.concept-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.concept-card:hover .concept-card-media img {
  transform: scale(1.04);
}

.evidence-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 3rem;
  align-items: center;
}

.evidence-visual-grid-alt {
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
}

.evidence-visual {
  min-height: 360px;
  box-shadow: 0 14px 30px rgba(34,55,71,.10);
}

.infographic-frame {
  background: var(--white);
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 14px 32px rgba(34, 55, 71, 0.12);
  border: 1px solid rgba(48, 74, 95, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
}

.infographic-frame img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 0.6rem;
}

.concept-card {
  padding: 1.6rem;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(48,74,95,.12);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(34,55,71,.06);
}

.concept-number {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.concept-card h3 {
  margin: 0 0 .9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--primary-dark);
  font-weight: 500;
}

.concept-card p:last-child {
  margin: 0;
  color: #46545e;
  line-height: 1.75;
}

.evidence-closing-quote {
  margin: 2rem 0;
  padding: 1.8rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(48,74,95,.95), rgba(34,55,71,.92));
  box-shadow: 0 14px 30px rgba(34,55,71,.14);
}

.evidence-closing-quote p {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem,2.2vw,1.55rem);
  line-height: 1.6;
}

.bibliography-block {
  padding-bottom: 0;
}

.bibliography-entry {
  margin: 0;
  max-width: 900px;
  color: #46545e;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .topnav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .profile-grid,
  .intro-profile,
  .objectives,
  .concept-grid,
  .evidence-visual-grid,
  .evidence-visual-grid-alt,
  .reflection-row,
  .reflection-row-alt {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .concept-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .profile { padding-top: 5rem; }
  .intro-profile { margin-bottom: 5rem; }

  .intro-photo,
  .photo-placeholder { min-height: 420px; }

  .intro-final-image,
  .large-photo-placeholder { min-height: 480px; }

  .media-placeholder,
  .video-placeholder {
    min-height: 280px;
  }

  .video-placeholder-wide {
    min-height: 300px;
  }

  .evidence-visual {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .topnav a,
  .nav-more > button {
    font-size: .78rem;
    padding: .5rem;
  }

  .hero { background-attachment: scroll; }
  .hero-content { padding: 1rem; }

  .profile,
  .introduction,
  .page-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .profile { padding-top: 5rem; }
  .introduction { padding-top: 5rem; padding-bottom: 6rem; }

  .intro-heading { margin-bottom: 3rem; }
  .intro-profile { margin-bottom: 4rem; }

  .intro-photo,
  .photo-placeholder { min-height: 360px; }

  .objectives { padding: 3rem 0 5rem; }

  .objectives-list li {
    grid-template-columns: 2.8rem 1fr;
    gap: .8rem;
  }

  .evidence-header { margin-bottom: 3rem; }
  .evidence-block { padding: 2.25rem 0; }
  .reflection-row { gap: 1.5rem; padding: 1.6rem 0; }

  .intro-final-image,
  .large-photo-placeholder { min-height: 360px; }

  .final-image-caption {
    top: -1.2rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    font-size: 1.15rem;
  }

  .media-placeholder,
  .video-placeholder {
    min-height: 220px;
    padding: 1.4rem;
  }

  .concept-card {
    padding: 1.3rem;
  }

  .evidence-visual {
    min-height: 260px;
  }

  .evidence-closing-quote {
    padding: 1.3rem 1.2rem;
  }

  .reflection-question {
    padding: 1.15rem 1.2rem;
  }

  .advisor { padding: 1.6rem; }

  .concept-grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Puzzle Section & Interactive Pieces (Módulo 2 / Evidencia 3)
   ========================================================================== */
.puzzle-section {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 1.8rem 2.2rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(48, 74, 95, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(34, 55, 71, 0.06);
}

.puzzle-intro {
  margin-bottom: 1.4rem;
}

.puzzle-title {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--primary-dark);
}

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

.puzzle-piece {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 1.2rem 1.1rem;
  background: var(--white);
  border: 2px dashed rgba(48, 74, 95, 0.25);
  border-radius: 0.95rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(34, 55, 71, 0.05);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: visible;
}

/* Encastre / pestaña de rompecabezas */
.puzzle-piece::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 12px;
  background: inherit;
  border: 2px dashed rgba(48, 74, 95, 0.25);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  transition: inherit;
}

.puzzle-piece:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: 0 12px 24px rgba(200, 155, 92, 0.2);
}

.puzzle-piece:hover::before {
  border-color: var(--accent);
  border-style: solid;
}

.puzzle-piece.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(34, 55, 71, 0.25);
}

.puzzle-piece.active::before {
  background: var(--primary);
  border: 2px solid var(--primary-dark);
  border-bottom: none;
}

.puzzle-piece.active .puzzle-number {
  color: var(--accent);
  opacity: 1;
}

.puzzle-piece.active .puzzle-label {
  color: var(--white);
  font-weight: 600;
}

.puzzle-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
}

.puzzle-label {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--primary-dark);
  font-weight: 500;
}

.puzzle-icon {
  align-self: flex-end;
  font-size: 1.25rem;
  margin-top: 0.4rem;
  opacity: 0.85;
}

/* Contenido de cada pieza */
.puzzle-content-block {
  display: none;
  animation: puzzleFadeIn 0.35s ease;
}

.puzzle-content-block.active {
  display: block;
}

@keyframes puzzleFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 580px) {
  .puzzle-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .puzzle-piece {
    min-height: auto;
  }
}

/* ==========================================================================
   Evidencia 5: Audio Card, Visores de Trabajos y Rúbricas
   ========================================================================== */
.audio-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(135deg, rgba(48, 74, 95, 0.08), rgba(200, 155, 92, 0.16));
  border: 1px solid rgba(48, 74, 95, 0.18);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(34, 55, 71, 0.06);
  margin-top: 1.5rem;
}

.audio-player-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.audio-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(34, 55, 71, 0.2);
  flex-shrink: 0;
}

.audio-player-details h3 {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.audio-player-details p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.audio-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.75rem;
  background: #ff5500;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.audio-action-btn:hover {
  background: #e04b00;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 85, 0, 0.35);
}

/* Tabs para Visores de Trabajos */
.work-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.work-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.65rem;
  background: var(--white);
  border: 1px solid rgba(48, 74, 95, 0.15);
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.work-tab-btn:hover {
  border-color: var(--accent);
  background: rgba(200, 155, 92, 0.08);
}

.work-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(34, 55, 71, 0.18);
}

.work-panel {
  display: none;
  animation: puzzleFadeIn 0.3s ease;
}

.work-panel.active {
  display: block;
}

/* Descarga de PowerPoint */
.pptx-download-card {
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid rgba(48, 74, 95, 0.14);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(34, 55, 71, 0.08);
}

.pptx-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.pptx-download-card h4 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.pptx-download-card p {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Rúbricas lado a lado */
.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.rubric-card {
  background: var(--white);
  border: 1px solid rgba(48, 74, 95, 0.14);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 26px rgba(34, 55, 71, 0.08);
  display: flex;
  flex-direction: column;
}

.rubric-card-heading {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.rubric-card-image {
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(48, 74, 95, 0.08);
}

.rubric-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.rubric-card:hover .rubric-card-image img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .audio-player-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ==========================================================================
   Evidencias Complementarias: Videos de YouTube
   ========================================================================== */
.video-youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.video-youtube-card {
  background: var(--white);
  border: 1px solid rgba(48, 74, 95, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(34, 55, 71, 0.08);
  display: flex;
  flex-direction: column;
}

.video-youtube-card-header {
  padding: 1.2rem 1.4rem;
  background: rgba(48, 74, 95, 0.04);
  border-bottom: 1px solid rgba(48, 74, 95, 0.1);
}

.video-youtube-card-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.video-youtube-card-header p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.video-youtube-thumbnail-link {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #111;
  overflow: hidden;
  text-decoration: none;
}

.video-youtube-thumbnail-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  z-index: 2;
}

.video-play-btn::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 3px;
}

.video-youtube-thumbnail-link:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.video-youtube-thumbnail-link:hover .video-play-btn {
  background: #cc0000;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.45);
}

.video-youtube-footer {
  padding: 1rem 1.4rem;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-youtube-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cc0000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.video-youtube-footer a:hover {
  opacity: 0.85;
  text-decoration: underline;
}


