/* =========================================
   CARD VARIANT (sin padding)
========================================= */
h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.1;
}
.card-plain {
  padding: 0;
}

/* =========================================
   FRAMES GRID
   Mobile: 1 columna
   Desktop: 2 columnas
========================================= */
.frames-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .frames-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

/* =========================================
   FRAME ITEM
========================================= */
.frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.frame img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* =========================================
   PROJECT VIDEO (video local o YouTube iframe)
   Mobile: 4:3
   Desktop: 16:9
========================================= */
.project-video {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* Video local */
.project-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* YouTube / iframe */
.project-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (min-width: 900px) {
  .project-video {
    aspect-ratio: 16 / 9;
  }
}

/* =========================================
   DESCRIPTION
========================================= */
.project-both {
  border-radius: var(--radius-lg);
  background: var(--header-bg, rgba(11, 15, 20, 0.95));
  backdrop-filter: blur(10px);
}
.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;

  padding: var(--space-sm);
}

.project-back {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
