/* =====================================================
   PORTAFOLIO CATALINA MONTES
   Editorial / bold layout. Inter. Mobile first → desktop.
   ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ---------- VARIABLES ---------- */
:root {
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #9a9a9a;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f5f3;
  --color-border: rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --content-width: 720px;
  --spacing-section: 80px;
}

/* ---------- HEADER ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

/* ---------- TIPOGRAFÍA GLOBAL ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

h1 {
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.display-title {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- MAIN / SECCIONES ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--spacing-section) 0;
}

main > section + section {
  border-top: 1px solid var(--color-border);
}

/* ---------- HERO (contained card) ---------- */
.hero {
  height: 480px;
  padding: 40px;
  margin-top: 24px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1) 50%, transparent),
    url('images/hero-catalina.jpg') center/cover no-repeat,
    linear-gradient(135deg, #D2B6FF 0%, #FCE4EC 100%);
  background-size: cover;
  background-position: center 35%;
  border-radius: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

main > .hero + section {
  border-top: none;
}

.hero-title {
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fafafa;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

/* ---------- INTRO ---------- */
.intro {
  padding: 64px 0 80px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-main  { grid-column: span 8; }
.intro-aside { grid-column: span 4; }

.intro-main p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--color-text);
}

.intro-aside p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.intro-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.intro-link:hover {
  opacity: 0.6;
}

/* ---------- TOOLS ---------- */
.tools {
  text-align: left;
  padding: 40px 0;
}

.tools-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 24px;
}

.tool-logo {
  height: 44px;
  width: auto;
  fill: var(--color-text-muted);
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

/* Optical alignment: Figma SVG has ~7px internal padding within its 24x24 viewBox */
.tools-logos > :first-child {
  margin-left: -7px;
}

.tool-logo:hover {
  fill: var(--color-text);
}

.tool-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tool-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tool-item:hover .tool-tooltip {
  opacity: 1;
}

/* ---------- WORK ---------- */
.work-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.work-header > .display-title { grid-column: span 8; }
.work-eyebrow                 { grid-column: span 4; }

.work-eyebrow {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 14px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.project-card {
  display: block;
  cursor: pointer;
}

.project-card--inactive {
  cursor: default;
  pointer-events: none;
}

.project-card:not(.project-card--inactive):hover .project-image img {
  filter: brightness(0.75);
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.project-image--dark {
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-meta h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-text);
  color: #ffffff;
  flex-shrink: 0;
}

.project-arrow svg {
  width: 12px;
  height: 12px;
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.card-badge--dark {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.card-badge--solid {
  background: #1a1a1a;
  color: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-image .card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
}

.project-image .badge-group {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-image .badge-group .card-badge {
  position: static;
}

.project-image--blurred img {
  filter: blur(10px);
  transform: scale(1.1);
}

.project-card:not(.project-card--inactive):hover .project-image--blurred img {
  filter: blur(10px) brightness(0.75);
}

/* ---------- ABOUT ---------- */
.about .display-title {
  margin-bottom: 32px;
}

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

.about-content p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--color-text);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  font-weight: 500;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f3;
}

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

/* ---------- CONTACT ---------- */
.contact-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.contact-header > .display-title { grid-column: span 8; }
.contact-header > .btn-primary   { grid-column: span 4; justify-self: end; align-self: start; margin-top: 14px; }

.btn-primary {
  display: inline-block;
  background: var(--color-text);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #2a2a2a;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 32px;
  font-size: 15px;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  min-width: 80px;
}

.contact-email {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text-light);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  text-align: center;
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 40px;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: 13px;
  color: var(--color-text-light);
}

.footer-logo {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 16px auto;
}

/* ---------- RESPONSIVE: TABLET / MÓVIL ---------- */
@media (max-width: 768px) {
  :root {
    --spacing-section: 56px;
  }

  .site-header {
    padding: 24px 24px;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 13px;
  }

  main {
    padding: 0 24px;
  }

  .hero {
    height: 320px;
    padding: 24px;
  }

  .hero-title {
    white-space: normal;
    line-height: 1.0;
  }

  .intro {
    padding: 48px 0 56px;
  }

  .intro-main,
  .intro-aside,
  .work-header > .display-title,
  .work-eyebrow,
  .contact-header > .display-title,
  .contact-header > .btn-primary {
    grid-column: span 12;
  }

  .work-header { align-items: start; margin-bottom: 40px; }
  .contact-header { align-items: start; margin-bottom: 32px; }
  .contact-header > .btn-primary { justify-self: start; margin-top: 0; }
  .work-eyebrow { margin-top: 0; }

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

  .tools {
    padding: 32px 0;
  }

  .tool-logo   { height: 32px; }
  .tools-logos > :first-child { margin-left: -5px; }

  .projects {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-line {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .site-footer {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .nav {
    gap: 16px;
  }
}

/* ============================================
   PASSWORD GATE
   ============================================ */

.password-gate {
  position: fixed;
  inset: 0;
  background: #fafafa;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.password-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.password-logo {
  width: 56px;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}

.password-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.password-subtitle {
  font-size: 15px;
  color: #6b6b6b;
  margin: 0 0 32px;
  line-height: 1.5;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.password-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.password-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.password-btn {
  width: 100%;
  padding: 14px 18px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.password-btn:hover {
  opacity: 0.85;
}

.password-error {
  display: none;
  font-size: 13px;
  color: #d32f2f;
  margin: 0 0 16px;
}

.password-back {
  font-size: 13px;
  color: #6b6b6b;
  text-decoration: none;
}

.password-back:hover {
  color: #1a1a1a;
}

/* ============================================
   CASE STUDY LAYOUT
   ============================================ */

.case-study {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: none;
  margin: 24px 0 0;
  transition: color 0.2s ease;
}

.back-link:hover { color: #1a1a1a; }

.back-link--large {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
}

/* HERO */
.case-hero {
  padding: 48px 0 64px;
  text-align: center;
}

.case-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 24px;
}

.case-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 24px;
}

.case-subtitle {
  font-size: clamp(18px, 1.8vw, 22px);
  color: #6b6b6b;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 64px;
}

.case-hero-image {
  aspect-ratio: 16 / 7;
  border-radius: 24px;
  overflow: hidden;
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* META */
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  padding: 48px 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 64px;
}

.case-meta + .case-section {
  border-top: none;
}

.meta-item {
  flex: 1;
  padding: 0 32px;
  border-right: 1px solid #ebebeb;
}

.meta-item:first-child { padding-left: 0; }

.meta-item:last-child {
  border-right: none;
  padding-right: 0;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 12px;
}

.meta-value {
  font-size: 16px;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* SECTIONS */
.case-section {
  padding: 64px 0;
  border-top: 1px solid #ebebeb;
}

.case-section:first-of-type { border-top: none; }

.case-section--narrow {
  padding: 48px 0;
  border: none;
}

.case-section--cta {
  text-align: center;
  padding: 64px 0;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 32px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 0 48px;
}

.section-body { max-width: none; }

.lead-text {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0 0 24px;
}

.closing-text { margin-top: 32px; }

/* CHALLENGE CARDS */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.challenge-card {
  padding: 32px;
  background: #f5f5f3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-number {
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  letter-spacing: 0.05em;
}

.challenge-card p {
  font-size: 20px;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
}

/* RESPONSIBILITIES GRID */
.responsibilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 40px;
}

.responsibility-item {
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}

.responsibility-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.responsibility-description {
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}

/* BEFORE (2-col with side callout) */
.before-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.before-callout {
  background: #f5f5f3;
  border-radius: 12px;
  padding: 32px;
  margin: 0;
}

.before-callout-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 16px;
}

.before-callout-text {
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
}

/* INSIGHTS (dashboard layout — 2 asymmetric blocks + stacked images) */
.insights-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.insights-block--workshops { margin-top: 64px; }

.insights-block-text .lead-text { margin-bottom: 20px; }
.insights-block-text .lead-text:last-child { margin-bottom: 0; }

.insights-block-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.insights-block-card {
  background: #f5f5f3;
  border-radius: 12px;
  padding: 32px;
  margin: 0;
}

.insights-callout-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 20px;
}

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

.insights-callout-list li {
  font-size: 17px;
  line-height: 1.4;
  color: #1a1a1a;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0dd;
  font-weight: 500;
}

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

.insights-callout-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insights-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insights-chips .chip {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
}

.insights-images {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FINDINGS */
.findings-eyebrow { margin-top: 64px; }

.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.finding-card {
  padding: 32px;
  background: #f5f5f3;
  border-radius: 12px;
  border: none;
}

.finding-card .card-number { color: #6b6b6b; }

.finding-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 16px 0 12px;
  line-height: 1.3;
}

.finding-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}

/* CHIPS */
.workshop-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 48px 0 24px;
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.chip {
  padding: 10px 18px;
  background: #f5f5f3;
  border-radius: 999px;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.4;
}

/* LAYERS */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.layer-card {
  padding: 32px;
  background: #f5f5f3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer-card h3 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}

.layer-description {
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
}

.layer-detail { margin-top: 8px; }

.detail-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 6px;
}

.detail-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
}

/* HEALTH */
.health-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.health-content .lead-text { margin-bottom: 20px; }
.health-content .lead-text:last-child { margin-bottom: 0; }

.health-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.health-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #ebebeb;
}

.health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.health-card--healthy { background: #f0f8f1; }
.health-card--healthy .health-dot { background: #2e7d32; }

.health-card--warning { background: #fdf8eb; }
.health-card--warning .health-dot { background: #ed9a00; }

.health-card--risk { background: #fdf1f1; }
.health-card--risk .health-dot { background: #d32f2f; }

.health-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.health-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
}

/* IMAGES */
.image-grid {
  display: grid;
  gap: 16px;
}

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

.case-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f3;
}

.case-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-figure figcaption {
  font-size: 13px;
  color: #6b6b6b;
  padding: 12px 4px 0;
  background: transparent;
}

.case-figure--full { width: 100%; }

.case-figure--video { background: #000; }

.case-figure--video video {
  width: 100%;
  height: auto;
  display: block;
}

/* FINAL FLOW */
.final-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* IMPACT */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.impact-grid + .section-body {
  margin-top: 48px;
}

.impact-card {
  padding: 32px;
  background: #f5f5f3;
  border-radius: 12px;
  border: none;
}

.impact-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.impact-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}

/* REFLECTIONS */
.reflections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reflection-card {
  padding: 32px;
  background: #f5f5f3;
  border-radius: 12px;
}

.reflection-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.reflection-card p {
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
}

/* ============================================
   INFORMATION ARCHITECTURE DIAGRAM
   ============================================ */

.ia-section { padding-bottom: 80px; }

.ia-hint {
  font-size: 13px;
  color: #9a9a9a;
  margin: -32px 0 48px;
  font-style: italic;
}

.ia-diagram {
  background: #f9f9f7;
  border-radius: 24px;
  padding: 64px 32px;
  border: 1px solid #ebebeb;
}

.ia-root {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.ia-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  position: relative;
}

.ia-branches::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: #d0d0cd;
}

.ia-branches::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: #d0d0cd;
}

.ia-branch {
  position: relative;
  transition: opacity 0.3s ease;
  padding-top: 24px;
}

.ia-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 12px;
  background: #d0d0cd;
}

.ia-branches:hover .ia-branch { opacity: 0.4; }
.ia-branches .ia-branch:hover { opacity: 1; }

.ia-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ia-node {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: default;
}

.ia-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ia-node--primary {
  background: #2196f3;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  min-width: 140px;
}

.ia-node--chips {
  background: #bbdefb;
  color: #0d47a1;
  font-weight: 500;
  padding: 10px 24px;
}

.ia-node--branch {
  background: #2196f3;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
}

.ia-node--child {
  background: #bbdefb;
  color: #0d47a1;
  font-weight: 500;
}

.ia-node--leaf {
  background: #e1bee7;
  color: #4a148c;
  font-weight: 500;
  font-size: 12px;
  padding: 10px 14px;
}

.ia-group {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.ia-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ia-group-row--single { grid-template-columns: 1fr; }

.ia-subgroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  margin-bottom: 4px;
}

.ia-subgroup--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* MÓVIL */
@media (max-width: 768px) {
  .case-study { padding: 0 24px; }

  .case-hero { padding: 40px 0 56px; }

  .case-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .meta-item {
    padding: 0;
    border-right: none;
  }

  .case-section { padding: 48px 0; }

  .challenge-grid,
  .findings-grid,
  .layers-grid,
  .health-grid-v2,
  .impact-grid,
  .reflections-grid,
  .image-grid-2,
  .responsibilities-grid,
  .before-grid,
  .insights-block {
    grid-template-columns: 1fr;
  }

  .health-grid-v2 { gap: 32px; }

  .reflections-grid { gap: 16px; }
  .responsibilities-grid { row-gap: 24px; }
  .before-grid { gap: 24px; }
  .insights-block { gap: 24px; margin-top: 32px; }
  .insights-block--workshops { margin-top: 56px; }
  .insights-images { margin-top: 56px; }
  .final-grid { gap: 16px; }

  .ia-diagram { padding: 32px 16px; }
  .ia-branches { grid-template-columns: 1fr; gap: 48px; }
  .ia-branches::before,
  .ia-branch::before { display: none; }
  .ia-branches:hover .ia-branch { opacity: 1; }
  .ia-subgroup--grid { grid-template-columns: 1fr; }
}
