/* ==========================================================================
   SEMIÓTICA | Learning Experience Design
   Estilos aislados de Muestras — Opción B: Dos Bandas Tipológicas (muestras.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cabecera horizontal compacta
   -------------------------------------------------------------------------- */
.muestras-hero {
  padding-block: 1.75rem 1.65rem;
}

.muestras-hero__header {
  width: 100%;
  max-width: none;
}

.muestras-hero__header .eyebrow {
  margin-bottom: 0.4rem;
}

.muestras-hero__header h1 {
  margin-bottom: 0.65rem;
  max-width: none;
}

.muestras-hero__header .lead {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
  hyphens: none;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Contenedor principal de las Dos Bandas Tipológicas
   -------------------------------------------------------------------------- */
.muestras-catalogo {
  padding-block: 2rem 3rem;
}

.typology-band {
  margin-bottom: 2.5rem;
}

.typology-band:last-child {
  margin-bottom: 0;
}

/* Encabezado estructural de cada banda */
.typology-band__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-primary);
}

.typology-band--interactive .typology-band__header {
  border-bottom-color: var(--accent-secondary);
}

.typology-band__header h2 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0;
}

.typology-band--interactive .typology-band__header h2 {
  color: var(--accent-secondary);
}

.typology-band__meta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

/* Lista de filas horizontales con borde editorial */
.typology-list {
  background-color: var(--bg-surface);
  border: 1px solid #E0E4E8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 22, 25, 0.03);
}

.sample-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #E0E4E8;
  transition: background-color 0.15s ease;
}

.sample-row:last-child {
  border-bottom: none;
}

.sample-row:hover {
  background-color: #FAFBFB;
}

/* Tablet: diagrama a la izquierda (64px) y contenido estructurado a la derecha */
@media (min-width: 720px) and (max-width: 1039px) {
  .sample-row {
    grid-template-columns: 64px 1fr;
    column-gap: 1.5rem;
    row-gap: 0.85rem;
    align-items: start;
  }

  .sample-row__diagram {
    grid-row: 1 / 4;
  }
}

/* Escritorio: 4 ejes verticales rígidos (Diagrama | Síntesis | Componentes | Acción) */
@media (min-width: 1040px) {
  .sample-row {
    grid-template-columns: 64px minmax(280px, 1.2fr) minmax(240px, 1fr) auto;
    gap: 1.85rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   3. Diagramas geométricos isomórficos en caja cuadrada rígida (64x64 px)
   -------------------------------------------------------------------------- */
.sample-row__diagram {
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px 64px;
}

/* 01: Diagnóstico y planes de trabajo (Verde Abeto #13423A) */
.sample-row__diagram--01 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect width='64' height='64' rx='6' fill='%2313423A'/%3E%3Crect x='17' y='15' width='30' height='34' rx='2' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cline x1='23' y1='24' x2='41' y2='24' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cline x1='23' y1='31' x2='35' y2='31' stroke='%23FFFFFF' stroke-width='2'/%3E%3Ccircle cx='39' cy='39' r='5' fill='%23E8F0EE' stroke='%2313423A' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* 02: Guiones didácticos y secuencias (Verde Abeto #13423A) */
.sample-row__diagram--02 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect width='64' height='64' rx='6' fill='%2313423A'/%3E%3Cline x1='32' y1='16' x2='32' y2='48' stroke='%23FFFFFF' stroke-width='2'/%3E%3Crect x='17' y='15' width='30' height='8' rx='1.5' fill='%2313423A' stroke='%23FFFFFF' stroke-width='2'/%3E%3Crect x='17' y='28' width='30' height='8' rx='1.5' fill='%23E8F0EE'/%3E%3Crect x='17' y='41' width='30' height='8' rx='1.5' fill='%2313423A' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}

/* 03: Actividades y objetos interactivos (Borgoña #6E2334) */
.sample-row__diagram--03 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect width='64' height='64' rx='6' fill='%236E2334'/%3E%3Crect x='14' y='17' width='36' height='30' rx='2.5' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cline x1='14' y1='24' x2='50' y2='24' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Ccircle cx='25' cy='35' r='4.5' fill='%23F6EBEE'/%3E%3Cline x1='30' y1='35' x2='40' y2='35' stroke='%23FFFFFF' stroke-width='2'/%3E%3Ccircle cx='41' cy='35' r='3' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* 04: Arquitectura de aulas virtuales y DUA (Borgoña #6E2334) */
.sample-row__diagram--04 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect width='64' height='64' rx='6' fill='%236E2334'/%3E%3Crect x='15' y='16' width='11' height='32' rx='1.5' fill='%23F6EBEE'/%3E%3Crect x='30' y='16' width='19' height='14' rx='1.5' stroke='%23FFFFFF' stroke-width='2'/%3E%3Crect x='30' y='34' width='19' height='14' rx='1.5' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. Columnas de información y botón uniforme
   -------------------------------------------------------------------------- */
.sample-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sample-row__header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.sample-row__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent-secondary);
}

.sample-row__main h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin: 0;
}

.sample-row__desc {
  font-size: var(--text-base);
  line-height: 1.58;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  max-width: none;
  margin: 0;
}

/* Columna de criterios y componentes */
.sample-row__specs {
  background-color: #F8F9FA;
  border: 1px solid #E8ECEF;
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.typology-band--interactive .sample-row__specs {
  border-left-color: var(--accent-secondary);
}

.sample-row__specs-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.typology-band--interactive .sample-row__specs-title {
  color: var(--accent-secondary);
}

.sample-row__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sample-row__list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--ink-primary);
  text-align: justify;
  hyphens: auto;
}

.sample-row__list li:last-child {
  margin-bottom: 0;
}

.sample-row__list li::before {
  content: "•";
  color: var(--accent-secondary);
  position: absolute;
  left: 0;
  top: -0.04rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Botón alineado a la derecha con ancho uniforme */
.sample-row__btn,
.sample-row__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 192px;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--accent-primary);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sample-row__btn:hover,
.sample-row__btn:focus-visible {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  text-decoration: none !important;
}

.sample-row__btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  transition: transform 0.15s ease;
}

.sample-row__btn:hover .sample-row__btn-icon,
.sample-row__btn:focus-visible .sample-row__btn-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  transform: translateX(3px);
}