/* =====================================================
   PAGINA: HERRAMIENTAS
   ===================================================== */

.tools-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(253, 197, 0, 0.2), transparent 28%),
    linear-gradient(135deg, #102038 0%, #1a2f4b 54%, #24456a 100%);
  color: var(--white);
}

.tools-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0), var(--bg-light));
  pointer-events: none;
}

.tools-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.tools-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.tools-kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(253, 197, 0, 0.55);
}

.tools-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.05;
  color: var(--white);
}

.tools-hero-copy .lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.84);
}

.tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.tools-overview {
  display: grid;
  gap: 18px;
}

.tools-overview-card,
.overview-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.tools-overview-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
}

.overview-label {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tools-overview-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(3.2rem, 8vw, 4.8rem);
  line-height: 1;
  color: var(--accent);
}

.tools-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.tools-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.overview-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.overview-item strong {
  color: var(--white);
  font-size: 1.05rem;
}

.tools-catalog {
  padding: 30px 0 56px;
}

.tools-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(26, 47, 75, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.section-chip-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.tools-section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--primary);
}

.tools-section-head p {
  margin: 0;
  color: var(--text-light);
  font-size: 1.02rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(26, 47, 75, 0.08);
  box-shadow: var(--shadow-lg);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), rgba(253, 197, 0, 0));
}

.tool-card-primary {
  background:
    radial-gradient(circle at top right, rgba(253, 197, 0, 0.24), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.tool-card-dark {
  background:
    radial-gradient(circle at top right, rgba(253, 197, 0, 0.16), transparent 26%),
    linear-gradient(145deg, #13243f 0%, #1d3556 100%);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-status.live {
  background: rgba(15, 135, 105, 0.12);
  color: #0f8769;
}

.tool-status.planning {
  background: rgba(253, 197, 0, 0.14);
  color: var(--accent);
}

.tool-number {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(26, 47, 75, 0.38);
}

.tool-card-dark .tool-number {
  color: rgba(255, 255, 255, 0.38);
}

.tool-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 22px;
  background: rgba(26, 47, 75, 0.08);
  color: var(--primary);
  font-size: 1.65rem;
}

.tool-card-dark .tool-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.tool-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
}

.tool-card p {
  margin: 0;
  color: var(--text-light);
}

.tool-card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.tool-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.tool-list li {
  position: relative;
  padding-left: 22px;
  color: inherit;
}

.tool-list li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(253, 197, 0, 0.35);
}

.tool-card-footer {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 14px;
}

.tool-caption {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tool-card-dark .tool-caption {
  color: rgba(255, 255, 255, 0.6);
}

.tools-showcase {
  padding: 14px 0 72px;
}

.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.showcase-panel {
  padding: 34px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.showcase-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.showcase-panel p {
  margin: 0;
  line-height: 1.8;
}

.showcase-panel-dark {
  background: linear-gradient(145deg, #15253f 0%, #0f1c31 100%);
  color: var(--white);
}

.showcase-panel-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.showcase-panel-light {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  border: 1px solid rgba(26, 47, 75, 0.08);
}

.showcase-panel-light p {
  color: var(--text-light);
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.metric-item,
.timeline-item {
  border-radius: 22px;
}

.metric-item {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
}

.metric-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.timeline-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline-item {
  padding: 18px 20px;
  background: rgba(26, 47, 75, 0.04);
  border: 1px solid rgba(26, 47, 75, 0.08);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-item span {
  color: var(--text-light);
}

.tools-footer-cta {
  padding: 0 0 88px;
}

.tools-footer-card {
  padding: 24px 28px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(26, 47, 75, 0.06), rgba(253, 197, 0, 0.16));
  border: 1px solid rgba(26, 47, 75, 0.08);
}

.tools-footer-card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--primary);
  text-align: center;
}

@media (max-width: 1100px) {
  .tools-hero-layout,
  .tools-grid,
  .tools-showcase-grid {
    grid-template-columns: 1fr;
  }

  .tools-hero-layout {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .tools-hero {
    padding: 84px 0 58px;
  }

  .tools-overview-grid,
  .showcase-metrics {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .showcase-panel {
    padding: 26px;
  }

  .tools-footer-cta {
    padding-bottom: 68px;
  }
}

@media (max-width: 480px) {
  .tools-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .tools-hero-copy h1 {
    font-size: 2.35rem;
  }

  .tools-hero-actions,
  .tool-card-footer {
    display: flex;
    flex-direction: column;
  }

  .tools-hero-actions .btn,
  .tool-card-footer .btn {
    width: 100%;
  }

  .tool-card,
  .showcase-panel,
  .tools-overview-card,
  .overview-item {
    border-radius: 22px;
  }
}
