@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap");

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

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface2: #f0ede7;
  --surface3: #e8e3db;

  --ink: #263c4b;
  --ink2: #5c5650;
  --ink3: #9b958d;

  --sage: #3d6b4f;
  --sage-light: #d4e8db;
  --sage-mid: #7aaa8a;
  --sage-dark: #2a4f39;

  --ochre: #c97d2e;
  --ochre-light: #faebd7;

  --border: rgba(90, 80, 65, 0.12);
  --border-md: rgba(90, 80, 65, 0.22);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --shadow-card:
    0 2px 8px rgba(30, 25, 20, 0.06), 0 0 0 1px rgba(30, 25, 20, 0.04);
  --shadow-hover:
    0 12px 40px rgba(30, 25, 20, 0.13), 0 0 0 1px rgba(30, 25, 20, 0.06);
  --shadow-modal: 0 32px 80px rgba(30, 25, 20, 0.22);

  --primary: #2a4f39;
  --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── BASE ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── HEADER ────────────────────────────────────────── */
.portfolio-header {
  background: var(--ink);
  color: #fff;
  padding: 16px 0 18px;
  position: relative;
  overflow: hidden;
}

.portfolio-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 90% -10%,
      rgba(61, 107, 79, 0.45) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 50% at -5% 110%,
      rgba(201, 125, 46, 0.2) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.portfolio-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent
  );
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.header-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.header-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--sage-mid);
}

.header-content h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s forwards;
}

.header-right {
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.header-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-filters select {
  padding: 10px 38px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  min-width: 168px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a09a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.header-filters select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.12);
}

.header-filters select option {
  background: #1a1714;
  color: #fff;
}

/* ─── PROJECTS SECTION ──────────────────────────────── */
.projects-section {
  padding: 48px 0 72px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-count {
  font-size: 0.82rem;
  color: var(--ink3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-count strong {
  color: var(--ink);
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 100px 20px;
  color: var(--ink3);
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-icon i {
  font-size: 2.2rem;
}
.empty-state h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--ink2);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 0.92rem;
}

/* ─── GRID ──────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ─── CARD ──────────────────────────────────────────── */
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  animation: cardReveal 0.5s forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.05s;
}
.project-card:nth-child(2) {
  animation-delay: 0.1s;
}
.project-card:nth-child(3) {
  animation-delay: 0.15s;
}
.project-card:nth-child(4) {
  animation-delay: 0.2s;
}
.project-card:nth-child(5) {
  animation-delay: 0.25s;
}
.project-card:nth-child(6) {
  animation-delay: 0.3s;
}
.project-card:nth-child(n + 7) {
  animation-delay: 0.35s;
}

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

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Card image */
.card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--surface2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-image img {
  transform: scale(1.07);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--surface2) 0%, var(--surface3) 100%);
  position: relative;
  overflow: hidden;
}

.card-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(90, 80, 65, 0.03) 20px,
    rgba(90, 80, 65, 0.03) 40px
  );
}

.card-image-placeholder i {
  font-size: 2.8rem;
  color: var(--ink3);
  position: relative;
  z-index: 1;
  opacity: 0.6;
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 23, 20, 0.5) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .card-image-overlay {
  opacity: 1;
}

.card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sage);
  color: #fff;
  padding: 4px 13px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Card body */
.card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--ink3);
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta i {
  font-size: 0.8rem;
}

.card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-top: 2px;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--ink2);
  line-height: 1.6;
  flex: 1;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 40px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background var(--transition),
    transform var(--transition);
}

.btn-detail:hover {
  background: var(--sage-dark);
  transform: translateX(2px);
}

.btn-detail i {
  font-size: 0.85rem;
  transition: transform var(--transition);
}
.btn-detail:hover i {
  transform: translateX(3px);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-md);
  color: var(--ink3);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.85rem;
}

.btn-demo:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-light);
  transform: rotate(-8deg);
}

/* ─── MODAL ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 880px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink2);
  transition: all var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: #fff;
  color: var(--ink);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
}

.modal-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink3);
}

.modal-loading p {
  margin-top: 14px;
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--surface3);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal project detail */
.project-detail-header {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--surface2);
}

.project-detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-header .header-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  color: var(--ink3);
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
}

.project-detail-header .header-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--surface));
}

.project-detail-info {
  padding: 0 40px 36px;
  margin-top: -48px;
  position: relative;
}

.project-detail-info h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.project-detail-meta span {
  font-size: 0.82rem;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.project-detail-desc {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 20px;
  border-left: 3px solid var(--sage-light);
  padding-left: 16px;
}

/* Section labels for public hierarchy */
.sub-section-label { margin: 8px 0 6px 0; }
.label-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 3px 12px; border-radius: 12px; }
.label-actividad { background: #eaf6ed; color: #1e7e34; }
.label-estrategia { background: #fef3e2; color: #b6570a; }

.project-detail-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  padding: 9px 20px;
  border-radius: 40px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.83rem;
  font-weight: 600;
}

.project-detail-url a {
  color: var(--sage-dark);
  text-decoration: none;
}

.project-detail-url a:hover {
  text-decoration: underline;
}

/* ─── STAGES ─────────────────────────────────────────── */
.stages-section {
  padding: 0 36px 36px;
}

.stages-section h3 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stages-section h3 i {
  color: var(--sage);
  font-size: 1.1rem;
}

.stage-timeline {
  position: relative;
  padding-left: 36px;
}

.stage-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sage-mid) 0px,
    var(--sage-mid) 7px,
    transparent 7px,
    transparent 10px
  );
}

.stage-item {
  position: relative;
  margin-bottom: 30px;
}

.stage-item:last-child {
  margin-bottom: 0;
}

.stage-dot {
  position: absolute;
  left: -30px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(61, 107, 79, 0.1),
    0 0 0 12px rgba(61, 107, 79, 0.04);
  transition: box-shadow 0.3s ease;
}

.stage-item:hover .stage-dot {
  box-shadow:
    0 0 0 6px rgba(61, 107, 79, 0.16),
    0 0 0 14px rgba(61, 107, 79, 0.06);
}

.stage-dot i {
  font-size: 0.6rem;
  color: var(--sage);
  filter: drop-shadow(0 0 4px rgba(61, 107, 79, 0.4));
}

.stage-content h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--ink);
}

.stage-date {
  font-size: 0.75rem;
  color: var(--ink2);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.stage-content p {
  font-size: 0.84rem;
  color: var(--ink2);
  line-height: 1.6;
}

.stage-files {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink2);
  font-weight: 500;
  transition: all var(--transition);
}

.stage-file:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: var(--sage-light);
  transform: translateY(-1px);
}

.stage-file i {
  font-size: 0.95rem;
}

/* ─── TOAST ──────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .header-content h1 {
    font-size: 2.1rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .portfolio-header {
    padding: 40px 0 36px;
  }
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }
  .header-content h1 {
    font-size: 1.85rem;
  }
  .header-filters {
    flex-direction: column;
  }
  .header-filters select {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-detail-header {
    height: 220px;
  }
  .project-detail-info,
  .stages-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-detail-info {
    margin-top: -32px;
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-container {
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0;
    max-width: 100%;
  }
}

/* ===== NEW HIERARCHY STYLES ===== */
.components-section { margin-top: 32px; margin-bottom: 28px; padding: 0 12px; }
.components-section h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.components-section h3 i { color: var(--primary); }
.components-list { display: flex; flex-direction: column; gap: 12px; }
.component-card { background: var(--surface); border: 1px solid var(--surface3); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.component-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.component-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; transition: background .15s; }
.component-header:hover { background: var(--surface2); }
.component-number { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.component-header h4 { flex: 1; font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0; }
.toggle-arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface3); color: var(--ink2); font-size: .8rem; transition: background .2s, transform .2s; flex-shrink: 0; }
.component-header:hover .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.fase-header:hover .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.actividad-header:hover .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.component-desc { padding: 0 18px 10px 58px; font-size: .85rem; color: var(--ink2); }
.fases-list { padding: 0 18px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.fase-item { border-left: 3px solid var(--primary); padding-left: 12px; }
.fase-header { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 6px 0; }
.fase-header:hover { background: var(--surface2); margin: 0 -12px; padding: 6px 12px; border-radius: 6px; }
.fase-badge { font-size: .65rem; text-transform: uppercase; letter-spacing: .03em; background: var(--surface3); color: var(--ink2); padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.fase-header strong { flex: 1; font-size: .9rem; color: var(--ink); }
.fase-desc { font-size: .82rem; color: var(--ink2); margin: 2px 0 6px 0; }
.actividades-list { margin: 6px 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.actividad-item { border-left: 2px solid var(--surface3); padding-left: 10px; }
.actividad-header { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; padding: 4px 0; }
.actividad-header:hover { background: var(--surface2); margin: 0 -10px; padding: 4px 10px; border-radius: 6px; }
.actividad-badge { font-size: .62rem; font-weight: 600; color: var(--ink3); min-width: 32px; }
.actividad-header strong { flex: 1; font-size: .85rem; color: var(--ink); font-weight: 500; }
.actividad-desc { font-size: .8rem; color: var(--ink2); margin: 2px 0 4px 0; padding-left: 40px; }
.estrategias-list { margin: 6px 0 4px 24px; display: flex; flex-direction: column; gap: 6px; }
.estrategia-item { background: var(--surface2); border-radius: 8px; padding: 10px 14px; }
.estrategia-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.estrategia-main strong { font-size: .85rem; color: var(--ink); }
.estrategia-mes { font-size: .78rem; color: var(--ink3); }
.estrategia-mes i { margin-right: 3px; }
.estrategia-desc { font-size: .8rem; color: var(--ink2); margin: 4px 0 6px 0; }
.estrategia-responsables { margin: 6px 0; }
.resp-badge { display: inline-flex; align-items: center; gap: 4px; background: #e8f4fd; color: #1a5a8c; font-size: .78rem; padding: 3px 10px; border-radius: 12px; margin: 2px 4px 2px 0; }
.resp-badge i { font-size: .7rem; }
.resp-badge em { font-style: normal; color: #5a7a9c; font-size: .75rem; }
.estrategia-archivos { margin-top: 6px; }
.estrategia-archivos .stage-file { font-size: .78rem; }
/* Collapse defaults */
.fases-list, .actividades-list, .estrategias-list { display: none; }
.component-card.open .fases-list { display: flex; }
.fase-item.open .actividades-list { display: flex; }
.actividad-item.open .estrategias-list { display: flex; }
/* Arrow rotation */
.component-card.open .component-header .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.fase-item.open .fase-header .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.actividad-item.open .actividad-header .toggle-arrow { background: var(--ochre-light); color: var(--ochre); }
.component-card.open .component-header .toggle-arrow i { transform: rotate(180deg); }
.fase-item.open .fase-header .toggle-arrow i { transform: rotate(180deg); }
.actividad-item.open .actividad-header .toggle-arrow i { transform: rotate(180deg); }
.toggle-arrow i { transition: transform .2s; display: inline-block; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
