/* Estilo común para las páginas de herramientas */
.page-type-tool .ct-content,
.tool-page .ct-content {
  padding: 26px 0 38px;
}

.tool-v2 {
  min-width: 0;
}

.tool-v2-card {
  --tool-accent: #537b7b;
  --tool-accent-soft: #eef4f4;
  box-sizing: border-box;
  margin: 0;
  padding: 30px 34px 36px;
  background: #fff;
  border: 1px solid #e0e6eb;
  border-bottom-style: solid;
  border-bottom-width: 8px;
  box-shadow: 0 10px 26px rgba(17, 32, 43, .10);
}

.tool-v2-card.ct-red {
  --tool-accent: #d25565;
  --tool-accent-soft: #fff0f2;
  border-bottom-color: var(--tool-accent);
}
.tool-v2-card.ct-green {
  --tool-accent: #16b864;
  --tool-accent-soft: #effcf3;
  border-bottom-color: var(--tool-accent);
}
.tool-v2-card.ct-blue {
  --tool-accent: #1678f2;
  --tool-accent-soft: #eaf6ff;
  border-bottom-color: var(--tool-accent);
}
.tool-v2-card.ct-purple {
  --tool-accent: #7a45e8;
  --tool-accent-soft: #f6efff;
  border-bottom-color: var(--tool-accent);
}
.tool-v2-card.ct-orange {
  --tool-accent: #ee9e2d;
  --tool-accent-soft: #fff7e9;
  border-bottom-color: var(--tool-accent);
}

.tool-v2-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1rem;
  color: #71808a;
  font-size: .82rem;
  line-height: 1.5;
}

.tool-v2-breadcrumbs a {
  color: #456272;
  font-weight: 700;
  text-decoration: none;
}

.tool-v2-category {
  display: inline-block;
  margin: 0 0 .7rem;
  color: var(--tool-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.tool-v2-title {
  margin: 0 0 .8rem;
  padding: 0;
  color: #1f2b33;
  font-size: 2.45rem;
  line-height: 1.08;
  text-shadow: none;
}

.tool-v2-intro {
  margin: 0 0 1.35rem;
  padding: 0;
  color: #5a6974;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
}

.tool-v2-featured {
  overflow: hidden;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 1px solid #d8e0e7;
  background: #f7fafb;
  line-height: 0;
}

.tool-v2-featured img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.tool-v2-content {
  color: #2f3e47;
  font-size: 1.05rem;
  line-height: 1.68;
}

.tool-v2-content h2 {
  margin: 2rem 0 .65rem;
  padding: 0 0 .45rem;
  border-bottom: 4px solid var(--tool-accent-soft);
  color: #1f2b33;
  font-size: 1.65rem;
  line-height: 1.25;
}

.tool-v2-content h3 {
  margin: 1.35rem 0 .55rem;
  color: #263943;
  font-size: 1.18rem;
  line-height: 1.35;
}

.tool-v2-content p {
  margin: 0;
  padding: .55rem 0;
}

.tool-panel {
  margin: 1rem 0 1.4rem;
  padding: 18px;
  border: 1px solid var(--tool-accent-soft);
  background: #f8fafb;
  box-shadow: 0 3px 12px rgba(17,32,43,.06);
}

.tool-panel h3:first-child {
  margin-top: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-field {
  min-width: 0;
}

.tool-field label {
  display: block;
  margin-bottom: 6px;
  color: #334954;
  font-size: .9rem;
  font-weight: 700;
}

.tool-field input,
.tool-field textarea,
.tool-v2-content input[type="text"],
.tool-v2-content input[type="url"],
.tool-v2-content textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #bfcbd3;
  border-radius: 4px;
  background: #fff;
  color: #263943;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(17,32,43,.04);
}

.tool-field input:focus,
.tool-field textarea:focus,
.tool-v2-content input:focus,
.tool-v2-content textarea:focus {
  outline: 2px solid var(--tool-accent-soft);
  outline-offset: 1px;
  border-color: var(--tool-accent);
}

.tool-field input[readonly] {
  background: #eef3f5;
  font-weight: 700;
}

.tool-counter {
  margin-top: 8px;
  color: #60727d;
  font-size: .9rem;
  font-weight: 700;
}

.tool-counter.is-over {
  color: #a33b3b;
}

.tool-v2 .seo-tool {
  padding-bottom: 0;
}

.tool-v2 .seo-tool__form {
  margin: 0 0 1.4rem;
  border-radius: 0;
  background: #f8fafb;
  box-shadow: 0 3px 12px rgba(17,32,43,.06);
}

.tool-v2-card .seo-tool__row button {
  background: var(--tool-accent);
}

.tool-v2-card .seo-tool__row button.seo-tool__secondary {
  border: 1px solid var(--tool-accent);
  background: var(--tool-accent-soft);
  color: var(--tool-accent);
}

.tool-v2-card .seo-tool__row input:focus,
.tool-v2-card .seo-tool__form textarea:focus {
  outline: 2px solid var(--tool-accent-soft);
  outline-offset: 1px;
  border-color: var(--tool-accent);
}

@media (max-width: 960px) {
  .page-type-tool .ct-content,
  .tool-page .ct-content {
    padding: 16px 0 28px;
  }

  .tool-v2-card {
    padding: 24px 22px 28px;
  }

  .tool-v2-title {
    font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .tool-grid,
  .tool-grid--4 {
    grid-template-columns: 1fr;
  }

  .tool-v2-card {
    padding: 20px 16px 24px;
  }

  .tool-v2-title {
    font-size: 1.72rem;
  }
}
