/* Toolkit page styles, shared by /toolkit/ and /es/herramientas/. */

.tk-section {
  padding: 2rem 0;
}

/* Brand identity swatches */
.tk-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.tk-swatch {
  border-radius: 0.5rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.85rem;
}

.tk-swatch-color {
  width: 100%;
  height: 80px;
  border-radius: 0.375rem;
  margin-bottom: 0.8rem;
  border: 1px solid #f0f0f0;
}

.tk-swatch-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.tk-swatch-hex {
  color: #52606b;
  font-family: monospace;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.tk-swatch-role {
  color: #52606b;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Typography specimens */
.tk-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.tk-type-block h3 {
  margin-bottom: 0.5rem;
  color: #52606b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tk-type-sample {
  border-top: 3px solid #c2622d;
  padding-top: 0.8rem;
  color: #1a1a1a;
  line-height: 1.5;
}

.tk-type-sample.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.tk-type-sample.mulish {
  font-family: "Mulish", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
}

/* Logo usage do/don't */
.tk-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.tk-do-dont-col h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tk-do-dont-col.do h3 {
  color: #0b6e99;
}

.tk-do-dont-col.dont h3 {
  color: #9c4e22;
}

.tk-do-dont-col ul {
  list-style: none;
  padding: 0;
}

.tk-do-dont-col li {
  font-size: 0.9rem;
  padding: 0.6rem 0;
  color: #52606b;
  padding-left: 1.5rem;
  position: relative;
}

.tk-do-dont-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* Template gallery */
.tk-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.tk-mock {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.tk-mock-inner {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.tk-mock.social .tk-mock-inner {
  background: linear-gradient(135deg, #0b6e99 0%, #21333f 100%);
  color: white;
  aspect-ratio: 1;
}

.tk-mock.flyer .tk-mock-inner {
  background: linear-gradient(180deg, #c2622d 0%, #f2b705 100%);
  color: #21333f;
  aspect-ratio: 9 / 16;
}

.tk-mock.poster .tk-mock-inner {
  background: linear-gradient(180deg, #21333f 0%, #0b6e99 100%);
  color: white;
  aspect-ratio: 9 / 16;
}

.tk-mock.postcard .tk-mock-inner {
  background: linear-gradient(90deg, #f2b705 0%, #c2622d 100%);
  color: #21333f;
  aspect-ratio: 16 / 9;
}

.tk-mock.presentation .tk-mock-inner {
  background: linear-gradient(135deg, #e6f2f7 0%, #fbfaf7 100%);
  color: #1a1a1a;
  aspect-ratio: 16 / 9;
  border: 2px solid #c2622d;
}

.tk-mock.newsletter .tk-mock-inner {
  background: white;
  color: #1a1a1a;
  border: 2px solid #0b6e99;
  aspect-ratio: auto;
}

.tk-mock.email .tk-mock-inner {
  background: #f9f9f9;
  color: #1a1a1a;
  aspect-ratio: auto;
}

.tk-mock.digital .tk-mock-inner {
  background: linear-gradient(45deg, #21333f 0%, #0b6e99 100%);
  color: white;
  aspect-ratio: 16 / 9;
}

.tk-mock-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.tk-mock-subtitle {
  font-family: "Mulish", sans-serif;
  font-size: 0.75rem;
  opacity: 0.85;
  margin: 0;
}

.tk-mock-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  background: #21333f;
  color: white;
  border-radius: 0.25rem;
}

.tk-mock.presentation .tk-mock-label {
  background: rgba(194, 98, 45, 0.1);
  color: #c2622d;
}

.tk-mock.newsletter .tk-mock-label,
.tk-mock.email .tk-mock-label {
  background: rgba(11, 110, 153, 0.1);
  color: #0b6e99;
}

.tk-mock-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.tk-mock-card {
  position: absolute;
  top: 0;
  right: 0;
}

.tk-mock-card-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #21333f;
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 0 0 0 0.25rem;
}

.tk-mock.presentation .tk-mock-card-label {
  background: #a8501c;
}

.tk-mock.newsletter .tk-mock-card-label,
.tk-mock.email .tk-mock-card-label {
  background: #0b6e99;
}

.tk-mock-footer {
  padding: 0.8rem 1.2rem;
  background: #fbfaf7;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #1a1a1a;
}

.tk-mock-footer h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tk-mock-footer p {
  margin: 0;
  color: #52606b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.tk-mock-footer .tk-dl {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.tk-mock-footer .tk-dl a {
  color: #9c4e22;
  font-weight: 700;
}

/* Downloads strip under the gallery */
.tk-files-strip {
  margin-top: 1.6rem;
  background: #fbfaf7;
  border: 1px solid #d6e2ea;
  border-left: 4px solid #0b6e99;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  align-items: baseline;
}

.tk-files-strip b {
  font-family: "Space Grotesk", sans-serif;
  color: #21333f;
}

.tk-files-strip a {
  color: #075877;
  font-weight: 700;
}

.tk-files-strip span {
  font-size: 0.85rem;
  color: #52606b;
}

/* Reference rules */
.tk-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.tk-rule {
  background: #fbfaf7;
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 3px solid #c2622d;
}

.tk-rule-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #21333f;
  margin-bottom: 0.5rem;
}

.tk-rule-text {
  font-size: 0.8rem;
  color: #52606b;
  line-height: 1.4;
  margin: 0;
}

/* Built to hand off section */
.tk-handoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.tk-handoff-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 1.2rem;
}

.tk-handoff-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.8rem;
}

.tk-form-mock {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.tk-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tk-form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #52606b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tk-form-input {
  border: 1px solid #d0d0d0;
  border-radius: 0.25rem;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fafafa;
}

.tk-tag-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.tk-tag {
  display: inline-block;
  background: #a8501c;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.tk-publish-btn {
  background: #0b6e99;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.4rem;
}

.tk-mock-button {
  display: inline-block;
  background: #a8501c;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.tk-stats-mock {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tk-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e0e0e0;
}

.tk-stat-label {
  color: #52606b;
  flex: 1;
}

.tk-stat-value {
  color: #1a1a1a;
  font-weight: 600;
  font-family: monospace;
}

.tk-stat-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.tk-stat-bar-fill {
  height: 100%;
  background: #c2622d;
  border-radius: 3px;
}

.tk-training-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.tk-training-list li {
  padding: 0.4rem 0;
  color: #52606b;
  padding-left: 1.2rem;
  position: relative;
}

.tk-training-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #0b6e99;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tk-do-dont {
    grid-template-columns: 1fr;
  }

  .tk-gallery {
    grid-template-columns: 1fr;
  }

  .tk-type-grid {
    grid-template-columns: 1fr;
  }

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