/* =====================================================================
   PÁGINAS DE FORMACIÓN POR HERRAMIENTA (ChatGPT, Copilot, Claude)
   Se cargan DESPUÉS de formacion-ia-empresas.css y reutilizan sus tokens
   (--fie-*), botones, planes, FAQ y CTA. Aquí solo va lo propio de estas
   páginas: hero con el logo, problemas, aprendizajes, programa, caso,
   formador y enlaces a las otras herramientas.
   ===================================================================== */

/* ==================== HERO CON EL LOGO DE LA HERRAMIENTA ==================== */
.fht-hero {
  position: relative;
  min-height: clamp(560px, 86svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4.5rem;
  background:
    radial-gradient(40% 55% at 78% 50%, rgba(218, 0, 118, 0.28), transparent 70%),
    radial-gradient(45% 60% at 6% 96%, rgba(218, 0, 118, 0.16), transparent 70%),
    #000;
}

.fht-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3.5rem;
}

.fht-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.fht-breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
}

.fht-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.fht-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fht-breadcrumb [aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

/* Tarjeta blanca con el logo: es la "foto" de la página */
.fht-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(218, 0, 118, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fht-hero-logo img {
  display: block;
  width: 52%;
  height: auto;
}

/* Insignia de partner (solo en ChatGPT) */
.fht-hero-badge {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: #ffffff;
}

.fht-hero-badge img {
  display: block;
  width: 230px;
  height: auto;
}

/* ==================== PROBLEMAS DE ADOPCIÓN (3 TARJETAS) ==================== */
.fht-pains {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.fht-pain {
  padding: 2rem 1.7rem;
  border-radius: 22px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

.fht-pain i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  font-size: 1.35rem;
  color: #ffffff;
  background: var(--fie-gradient);
  box-shadow: 0 10px 22px rgba(218, 0, 118, 0.22);
}

.fht-pain h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fie-text);
  margin-bottom: 0.6rem;
}

.fht-pain p {
  font-size: 0.97rem;
  line-height: 1.58;
  color: var(--fie-text-soft);
  margin: 0;
}

/* ==================== QUÉ APRENDE EL EQUIPO (6 TARJETAS) ==================== */
.fht-learn {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.2rem;
  padding: 0;
}

.fht-learn-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

.fht-learn-item i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--fie-accent-text);
  background: var(--fie-accent-soft);
  border: 1px solid var(--fie-accent-border);
}

.fht-learn-item h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--fie-text);
  margin-bottom: 0.35rem;
}

.fht-learn-item p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--fie-text-soft);
  margin: 0;
}

.fht-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1rem;
}

.fht-tags-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fie-text-soft);
}

/* ==================== PROGRAMA (reutiliza .fie-steps) ==================== */
.fht-step-hours {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fie-accent-text);
  background: var(--fie-accent-soft);
  border: 1px solid var(--fie-accent-border);
}

.fht-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fht-step-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--fie-text-soft);
}

.fht-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fie-accent);
}

.fht-program-note {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fie-text-soft);
}

/* Entregables */
.fht-deliverables {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.6rem 1.8rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

.fht-deliverables h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fie-text);
  margin-bottom: 1rem;
}

.fht-deliverables ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.8rem;
}

.fht-deliverables li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fie-text-mid);
}

.fht-deliverables li i {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--fie-accent-text);
}

/* ==================== PLANES COMPACTOS (sin fila de herramientas) ==================== */
@supports (grid-template-rows: subgrid) {
  .fht-plans .fie-plan {
    grid-row: span 6;
  }
}

/* ==================== CASO REAL + TESTIMONIO ==================== */
.fht-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.fht-case-logo {
  display: block;
  height: 46px;
  width: auto;
  margin-bottom: 1.4rem;
}

.fht-case h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fie-text);
  margin-bottom: 1rem;
}

.fht-case-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fie-text-mid);
  margin-bottom: 1.6rem;
}

.fht-case-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.fht-case-facts li {
  flex: 1 1 140px;
  max-width: 260px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

.fht-case-facts strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--fie-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fht-case-facts span {
  font-size: 0.86rem;
  color: var(--fie-text-soft);
}

.fht-case-more {
  margin: 1.4rem 0 0;
  font-size: 0.93rem;
  color: var(--fie-text-soft);
}

.fht-quote {
  margin: 0;
  padding: 2.2rem 2rem;
  border-radius: 22px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
  box-shadow: var(--fie-shadow);
}

.fht-quote-stars {
  color: #f5b301;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.fht-quote blockquote {
  margin: 0 0 1.4rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--fie-text-mid);
}

.fht-quote figcaption strong {
  display: block;
  font-size: 1rem;
  color: var(--fie-text);
}

.fht-quote figcaption span {
  font-size: 0.88rem;
  color: var(--fie-text-soft);
}

/* Formador (E-E-A-T): quién imparte la formación */
.fht-trainer {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

.fht-trainer-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #ffffff;
  background: var(--fie-gradient);
}

.fht-trainer p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--fie-text-mid);
}

.fht-trainer strong {
  color: var(--fie-text);
}

.fht-trainer a {
  color: var(--fie-accent-text);
  font-weight: 600;
}

/* ==================== OTRAS HERRAMIENTAS ==================== */
.fht-others {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.fht-other {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
  color: var(--fie-text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fht-other:hover {
  transform: translateY(-3px);
  border-color: var(--fie-accent-border);
  box-shadow: var(--fie-shadow);
  color: var(--fie-text);
}

.fht-other-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--fie-line);
}

.fht-other-logo img {
  width: 30px;
  height: 30px;
}

.fht-other-logo i {
  font-size: 1.3rem;
  color: var(--fie-accent-text);
}

.fht-other strong {
  display: block;
  font-size: 1.02rem;
}

.fht-other span {
  font-size: 0.86rem;
  color: var(--fie-text-soft);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .fht-learn {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .fht-hero {
    min-height: 0;
    padding: 7rem 0 3.5rem;
  }

  .fht-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* En móvil el logo va encima del título, más pequeño */
  .fht-hero-visual {
    order: -1;
  }

  .fht-hero-logo {
    width: 104px;
    border-radius: 24px;
  }

  .fht-pains,
  .fht-learn,
  .fht-case,
  .fht-others {
    grid-template-columns: 1fr;
  }

  .fht-deliverables ul {
    grid-template-columns: 1fr;
  }

  .fht-trainer {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fht-other {
    transition: none;
  }
}

/* Enlaces dentro de párrafos de cabecera de sección */
.fht-inline-link {
  color: var(--fie-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fht-quote-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fie-text);
  margin-bottom: 1rem;
}
