/* ==================== FORMACIÓN IA EMPRESAS ====================
   Sistema de diseño heredado de base.css / index.css: acento rosa
   (--pink-color) con degradado a azul y tipografía Inter.

   La página alterna "actos" claros y oscuros. Cada sección declara su
   tema y todos los componentes leen los mismos tokens, de modo que
   funcionan en ambos fondos sin duplicar reglas.               */

.fie-page {
  /* --- TEMA OSCURO (por defecto) --- */
  --fie-accent: var(--pink-color);            /* #da0076 */
  --fie-accent-text: #ff4da6;                 /* rosa legible sobre negro */
  --fie-accent-soft: rgba(218, 0, 118, 0.14);
  --fie-accent-border: rgba(218, 0, 118, 0.28);

  --fie-text: #ffffff;
  --fie-text-mid: rgba(255, 255, 255, 0.82);
  --fie-text-soft: rgba(255, 255, 255, 0.72);

  --fie-line: rgba(255, 255, 255, 0.1);
  --fie-line-strong: rgba(255, 255, 255, 0.22);
  --fie-surface: rgba(255, 255, 255, 0.032);
  --fie-surface-hover: rgba(255, 255, 255, 0.055);
  --fie-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --fie-focus: #ff3d9a;

  --fie-gradient: linear-gradient(-5deg, #da0076, #2196f3);

  /* Fondo de los actos claros */
  --fie-light-bg: #f1f1f3;

  /* Radio del "box" de Nuestras formaciones */
  --fie-box-radius: 44px;
}

/* --- TEMA CLARO --- */
.fie-section--light {
  --fie-accent-text: #b8005f;                 /* AA sobre fondo claro (5.8:1) */
  --fie-accent-soft: rgba(218, 0, 118, 0.09);
  --fie-accent-border: rgba(218, 0, 118, 0.22);

  --fie-text: #14141a;
  --fie-text-mid: #3d3d48;
  --fie-text-soft: #4a4a55;

  --fie-line: rgba(0, 0, 0, 0.1);
  --fie-line-strong: rgba(0, 0, 0, 0.2);
  --fie-surface: #ffffff;
  --fie-surface-hover: #ffffff;
  --fie-shadow: 0 18px 40px rgba(20, 20, 26, 0.09);
  --fie-focus: #b8005f;

  background-color: var(--fie-light-bg);
  color: var(--fie-text);
}

.fie-section--light > * {
  position: relative;
}

/* Ningún efecto decorativo debe generar scroll lateral.
   `clip` no crea contenedor de scroll, así que no rompe position: sticky. */
.fie-page main {
  overflow-x: clip;
}

.fie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.fie-section {
  position: relative;
  padding: 6.5rem 0;
}

.fie-section-header {
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.fie-section-title {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

/* base.css pinta de blanco todo h1-h6 dentro de .bg-black, y esa clase está
   en el <body>. Estas reglas recuperan el color del tema de cada acto. */
.fie-page .fie-section-title,
.fie-page .fie-section--light h1,
.fie-page .fie-section--light h2,
.fie-page .fie-section--light h3,
.fie-page .fie-section--light h4 {
  color: var(--fie-text);
}

.fie-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.fie-body-text {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--fie-text-mid);
}

.fie-gradient-text {
  background: var(--fie-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Etiqueta corta que abre cada sección */
.fie-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fie-accent-text);
  margin-bottom: 0.9rem;
}

/* ==================== FOCO DE TECLADO (accesibilidad) ==================== */
.fie-page a:focus-visible,
.fie-page button:focus-visible {
  outline: 2px solid var(--fie-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==================== TRANSICIONES ENTRE ACTOS ====================
   · Corte limpio (por defecto): el salto directo de oscuro a claro.
   · "Box": solo Nuestras formaciones. La sección clara flota como una
     caja con las esquinas redondeadas arriba y abajo.
   · "Bridge": la credencial de OpenAI cruza el borde inferior del box
     y cose los dos fondos. Se usa una sola vez.                   */

.fie-section--box {
  border-radius: var(--fie-box-radius);
  margin-top: calc(var(--fie-box-radius) * -1);
  margin-bottom: calc(var(--fie-box-radius) * -1);
  z-index: 1;
}

/* Relleno inferior reducido: suficiente para que el box respire, poco para
   que la credencial asome por debajo. */
.fie-page .fie-section--bridge-out {
  padding-bottom: 3rem;
}

/* La tarjeta sobresale hacia el acto oscuro que viene debajo.
   Doble clase: `.fie-credential` declara `margin` abreviado más abajo
   y si no ganaría por orden de origen, anulando este desplazamiento. */
.fie-credential.fie-credential--bridge {
  margin-bottom: -6.5rem;
  z-index: 2;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4);
}

/* La sección oscura que recibe la tarjeta necesita aire extra arriba:
   la parte del box que la solapa + lo que asoma la credencial. */
.fie-page .fie-section--bridged {
  padding-top: 10rem;
}

/* ==================== HERO ====================
   Texto a la izquierda sobre negro; foto a la derecha SIN velo, fundida con el
   fondo por la izquierda y por abajo (se une sin corte a la banda de logos). */
.fie-hero {
  position: relative;
  /* Ocupa el alto de la ventana: la cabecera es fija y se superpone arriba.
     `vh` de respaldo para navegadores sin `svh`. El tope solo evita un hero absurdo en pantallas
     verticales gigantes; no debe quedarse corto en ningún monitor de escritorio. */
  min-height: 100vh;
  min-height: clamp(580px, 100svh, 1800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4.5rem;
  background:
    radial-gradient(45% 60% at 6% 96%, rgba(218, 0, 118, 0.2), transparent 70%),
    #000;
}

.fie-hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Arranca a una distancia fija de la columna de texto (que va en un contenedor
     centrado de 1200px), así en pantallas anchas no se acerca de más a los textos */
  left: max(34%, calc((100% - 1200px) / 2 + 2rem + 420px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}

.fie-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 35%;
}

/* Solo un toque arriba (bajo la cabecera) y el fundido a negro de abajo */
.fie-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, #000 100%);
}

/* Ficha informativa sobre la foto: blanca, esquinas suaves, sin aspecto de botón */
.fie-hero-tag {
  position: absolute;
  right: 2rem;
  /* Con el hero a pantalla completa, esta altura la deja por encima de la burbuja del chatbot */
  bottom: 6.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  text-shadow: none;
}

.fie-hero-tag-logo {
  display: block;
  flex-shrink: 0;
  height: 52px;
  width: auto;
  /* Separador entre el logo y el texto */
  padding-right: 1rem;
  border-right: 1px solid rgba(20, 20, 26, 0.14);
  box-sizing: content-box;
}

.fie-hero-tag-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  line-height: 1.25;
}

.fie-hero-tag-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #14141a;
}

.fie-hero-tag-text span {
  font-size: 0.86rem;
  font-weight: 600;
  color: #4a4a55;
}

.fie-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.fie-hero-content {
  max-width: 660px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.fie-hero-title {
  font-size: clamp(2.2rem, 3.7vw, 3.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  text-wrap: balance;
}

.fie-hero-text {
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Chips de herramientas: logo + nombre como texto (SEO) y enlace a su pestaña */
.fie-hero-tools {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.6rem;
  padding: 0;
}

.fie-hero-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.fie-hero-tool img {
  display: block;
  width: 24px;
  height: 24px;
}

/* El símbolo de ChatGPT es negro: se invierte a blanco para leerse sobre el fondo oscuro */
.fie-hero-tool--invert img {
  filter: brightness(0) invert(1);
}

.fie-hero-tool:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
}

.fie-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.fie-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.fie-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fie-hero-meta i {
  color: #ff4da6;
  font-size: 0.85rem;
}

/* ==================== BOTONES ==================== */
.fie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.2s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.fie-btn i {
  font-size: 0.85em;
}

/* Blanco sobre el rosa de marca: 4.96:1, cumple AA */
.fie-btn-primary {
  background: var(--fie-accent);
  color: #ffffff;
  /* Borde transparente: mide lo mismo que el botón secundario, que sí lo lleva */
  border: 1px solid transparent;
  box-shadow: 0 4px 18px rgba(218, 0, 118, 0.38);
}

.fie-btn-primary:hover {
  background: #f10084;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(218, 0, 118, 0.5);
}

.fie-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(218, 0, 118, 0.45);
}

.fie-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.fie-btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.fie-btn-ghost:active {
  transform: translateY(0);
}

/* Variante del botón secundario para secciones claras */
.fie-section--light .fie-btn-ghost {
  background: #ffffff;
  color: #14141a;
  border-color: rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.fie-section--light .fie-btn-ghost:hover {
  border-color: #14141a;
  background: #ffffff;
  color: #14141a;
}

/* ==================== BLOQUES TEXTO + IMAGEN ==================== */
.fie-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.fie-split-reverse .fie-split-image {
  order: -1;
}

.fie-split-image {
  position: relative;
}

.fie-split-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: var(--fie-shadow);
}

/* Halo de acento detrás de la imagen (solo sobre fondo oscuro).
   Sin desbordamiento horizontal: evita el scroll lateral en móvil. */
.fie-split-image::before {
  content: "";
  position: absolute;
  inset: -10% 0 -8% 0;
  background: radial-gradient(circle at 30% 30%, rgba(218, 0, 118, 0.22), transparent 62%);
  filter: blur(46px);
  z-index: -1;
  pointer-events: none;
}

.fie-section--light .fie-split-image::before {
  display: none;
}

/* ==================== EL PROBLEMA REAL ====================
   Título alineado a la izquierda, la historia en tres pasos y después el
   diagnóstico con la foto. El último paso (el resultado) lleva el acento. */
.fie-problem-header {
  max-width: 820px;
  margin: 0 0 3rem;
}

.fie-problem-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 4.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.fie-problem-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.7rem 1.6rem 1.8rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
}

/* Flecha que une cada paso con el siguiente */
.fie-problem-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-top: 2px solid var(--fie-line-strong);
  border-right: 2px solid var(--fie-line-strong);
  transform: rotate(45deg);
}

.fie-problem-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fie-accent-text);
  background: var(--fie-accent-soft);
  border: 1px solid var(--fie-accent-border);
}

.fie-problem-step p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--fie-text-mid);
}

.fie-problem-step strong {
  font-weight: 700;
  color: var(--fie-text);
}

/* El tercer paso es el resultado que se quiere evitar */
.fie-problem-step--end {
  border-color: var(--fie-accent-border);
  background: linear-gradient(165deg, rgba(218, 0, 118, 0.16), rgba(255, 255, 255, 0.03) 60%);
}

.fie-problem-step--end .fie-problem-num {
  color: #ffffff;
  background: var(--fie-accent);
  border-color: transparent;
}

.fie-problem-lead {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--fie-text);
  margin: 0 0 1.5rem;
}

/* ==================== HERRAMIENTAS (menú de pestañas) ==================== */
.fie-tabs {
  max-width: 980px;
  margin: 0 auto;
}

.fie-tablist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fie-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.4rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--fie-line);
  background: var(--fie-surface);
  color: var(--fie-text-soft);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 20, 26, 0.06);
  transition: border-color 0.25s ease, background 0.25s ease,
    color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Marco fijo para el logo: así todas las pestañas alinean el nombre
   a la misma altura aunque un logo sea apaisado (Llama). */
.fie-tab-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.fie-tab-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

/* El logotipo de Llama es apaisado (∞ + LLaMA): más bajo para no desbordar */
.fie-tab-logo--wide img {
  height: 28px;
  max-width: 132px;
}

.fie-tab:hover {
  border-color: var(--fie-line-strong);
  background: var(--fie-surface-hover);
  color: var(--fie-text);
  transform: translateY(-2px);
}

.fie-tab[aria-selected="true"] {
  border-color: var(--fie-accent);
  background: var(--fie-surface-hover);
  color: var(--fie-text);
  /* Anillo de 1px (no cambia el tamaño de la tarjeta) + resplandor rosa */
  box-shadow: 0 0 0 1px var(--fie-accent), 0 10px 28px rgba(218, 0, 118, 0.2);
}

/* Filo de acento en la pestaña activa */
.fie-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 30% -1px 30%;
  height: 3px;
  border-radius: 3px;
  background: var(--fie-accent);
}

.fie-tabpanel {
  border: 1px solid var(--fie-line);
  border-radius: 18px;
  background: var(--fie-surface);
  box-shadow: var(--fie-shadow);
  padding: 2.4rem 2.2rem;
}

.fie-tabpanel[hidden] {
  display: none;
}

.fie-tabpanel h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fie-text);
  margin-bottom: 1rem;
}

.fie-tabpanel p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fie-text-soft);
  margin-bottom: 1.6rem;
  max-width: 68ch;
}

.fie-tools-note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--fie-text-soft);
}

/* Qué trabajamos en cada herramienta: bloques de contenido dentro del panel */
.fie-syllabus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.2rem;
  margin: 0 0 1.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--fie-line);
}

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

.fie-syllabus-block h4 {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fie-accent-text);
}

.fie-syllabus-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fie-syllabus-block li {
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 1.05rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fie-text-soft);
}

.fie-syllabus-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fie-accent);
}

/* Enlace a la página dedicada de cada herramienta */
.fie-tool-link {
  /* En línea (no flex): si el texto ocupa dos líneas, la flecha se queda pegada al final */
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fie-accent-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.fie-tool-link i {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.fie-tool-link:hover {
  text-decoration-color: currentColor;
}

.fie-tool-link:hover i {
  transform: translateX(4px);
}

.fie-tool-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fie-tool-tags li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fie-text-soft);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--fie-line);
  border-radius: 50px;
}

#herramientas {
  scroll-margin-top: 4.5rem;
}

/* ==================== PLANES FORMATIVOS ==================== */
/* La cabecera del sitio es fija: el ancla deja respirar el título.
   El id va en el contenedor (no en la sección) para no contar el relleno
   superior que reserva espacio al puente de la credencial. */
#planes {
  scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.fie-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.fie-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2rem 2rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.25s ease;
}

.fie-plan:hover {
  transform: translateY(-4px);
  border-color: var(--fie-line-strong);
  background: var(--fie-surface-hover);
}

/* Plan central: es el formato principal de la oferta */
.fie-plan--featured {
  border-color: var(--fie-accent-border);
  background: linear-gradient(170deg, rgba(218, 0, 118, 0.16), rgba(255, 255, 255, 0.04) 55%);
  box-shadow: 0 18px 44px rgba(218, 0, 118, 0.16);
}

.fie-plan--featured:hover {
  border-color: rgba(218, 0, 118, 0.55);
  box-shadow: 0 22px 50px rgba(218, 0, 118, 0.24);
}

.fie-plan-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fie-accent-text);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--fie-accent-border);
  border-radius: 50px;
  background: var(--fie-accent-soft);
}

/* Una o dos etiquetas por plan (A medida lleva Presencial y Personalizada) */
.fie-plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.fie-plan h3 {
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fie-text);
  margin-bottom: 0.7rem;
}

.fie-plan-desc {
  font-size: 0.84rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.56);
  margin: 0 0 1.6rem;
  /* Reserva dos líneas más para que los precios queden alineados entre tarjetas */
  min-height: 4.9em;
}

.fie-plan-price {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.6rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--fie-line);
  border-bottom: 1px solid var(--fie-line);
  min-height: 7.2rem;
  /* Alineado arriba: las cifras coinciden entre tarjetas aunque el texto de
     apoyo ocupe una o dos líneas */
  justify-content: flex-start;
}

.fie-plan-amount {
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fie-text);
}

/* "Plan personalizado": texto en lugar de cifra, más contenido */
.fie-plan-amount--text {
  font-size: 1.55rem;
  line-height: 1.2;
}

.fie-plan-unit {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--fie-text-soft);
}

.fie-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.fie-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--fie-text-mid);
}

.fie-plan-list li i {
  color: var(--fie-accent-text);
  font-size: 0.8rem;
  margin-top: 0.38rem;
  flex-shrink: 0;
}

/* Herramientas en las que se forma, en logo, al pie de cada tarifa */
.fie-plan-tools {
  margin: 0 0 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--fie-line);
}

.fie-plan-tools-label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fie-text-soft);
}

.fie-plan-tools-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.fie-plan-tools-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
}

.fie-plan-tools-list .fie-plan-tool--wide {
  width: auto;
  padding: 0 0.85rem;
}

.fie-plan-tools-list .fie-plan-tool--wide img {
  width: auto;
  height: 20px;
}

.fie-plan-tools-more {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.56);
}

.fie-plan-tools-list img {
  display: block;
  width: 28px;
  height: 28px;
}

/* El botón se ancla al fondo: todas las tarjetas terminan a la misma altura */
.fie-plan .fie-btn {
  margin-top: auto;
  width: 100%;
}

/* Alineación real entre tarjetas: cada plan ocupa 6 filas de la cuadrícula
   compartida (etiqueta, título, descripción, precio, lista, herramientas, botón), así que el
   precio y el botón quedan a la misma altura aunque una descripción ocupe una
   línea más. Sin subgrid se mantiene el comportamiento flex de arriba. */
@supports (grid-template-rows: subgrid) {
  .fie-plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
  }

  .fie-plan-badges {
    justify-self: start;
  }

  .fie-plan-desc,
  .fie-plan-price {
    min-height: 0;
  }

  .fie-plan .fie-btn {
    align-self: end;
    margin-top: 0;
  }
}

/* "Desde" antes de la cifra del plan a medida */
.fie-plan-from {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fie-text-soft);
  margin-right: 0.15rem;
}

/* Bonificación FUNDAE, al pie de los precios */
/* Nota bajo las tarifas: certificado incluido en todos los planes */
.fie-plans-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem auto 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fie-text-soft);
  text-align: center;
}

.fie-plans-note i {
  color: var(--fie-accent-text);
  font-size: 1.15rem;
}

.fie-plans-note strong {
  color: var(--fie-text);
  font-weight: 600;
}

.fie-fundae {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 1.3rem 1.7rem;
  border: 1px solid var(--fie-line);
  border-radius: 18px;
  background: var(--fie-surface);
}

/* El logo lleva texto azul oscuro: necesita fondo claro sobre la sección negra */
.fie-fundae-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: #ffffff;
}

.fie-fundae-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.fie-fundae-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fie-text);
  margin: 0 0 0.4rem;
}

.fie-fundae-title span {
  color: var(--fie-accent-text);
}

/* Texto pequeño a propósito: es una ayuda, no un llamado principal */
.fie-fundae-help {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--fie-text-soft);
  margin: 0;
}

.fie-fundae-link {
  font-weight: 600;
  color: var(--fie-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.fie-fundae-link:hover {
  color: #ffffff;
}

.fie-plans-note {
  text-align: center;
  margin: 1.75rem auto 0;
  font-size: 0.98rem;
  color: var(--fie-text-soft);
}

/* ==================== TARJETAS DE VENTAJAS ==================== */
.fie-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.fie-card {
  position: relative;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
  border-radius: 22px;
  padding: 2rem 1.6rem 2.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.25s ease;
}

.fie-card:hover {
  transform: translateY(-4px);
  border-color: var(--fie-line-strong);
  background: var(--fie-surface-hover);
  box-shadow: var(--fie-shadow);
}

/* Icono grande: pictograma propio en blanco sobre el degradado de la marca */
.fie-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--fie-gradient);
  box-shadow: 0 14px 28px rgba(218, 0, 118, 0.26);
  margin-bottom: 1.8rem;
  transition: transform 0.3s ease;
}

.fie-card-icon svg {
  display: block;
  width: 52px;
  height: 52px;
}

.fie-card:hover .fie-card-icon {
  transform: rotate(-5deg) scale(1.06);
}

.fie-card h3 {
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--fie-text);
  margin-bottom: 0.9rem;
}

.fie-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fie-text-soft);
}

/* ==================== CREDENCIAL OPENAI ==================== */
.fie-credential {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.2rem;
  max-width: 860px;
  margin: 3.5rem auto 0;
  padding: 1.6rem 2rem;
  border: 1px solid var(--fie-line);
  border-radius: 18px;
  background: var(--fie-surface);
}

.fie-credential img {
  display: block;
  width: 250px;
  height: auto;
  border-radius: 10px;
}

.fie-credential-text .fie-label {
  margin-bottom: 0.45rem;
}

.fie-credential-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fie-text-soft);
  margin: 0;
}

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

/* ==================== LISTAS DE ASPECTOS ==================== */
.fie-aspect-list {
  list-style: none;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
}

.fie-aspect-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--fie-line);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--fie-text-mid);
}

.fie-aspect-list li i {
  color: var(--fie-accent-text);
  font-size: 1rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

/* ==================== BANDA DE CONFIANZA ====================
   Portado de index.css para que la página no dependa de esa hoja.
   Va justo bajo el hero, que funde a negro: la unión es invisible. */
.trust-section {
  padding: 46px 0 44px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-label {
  text-align: center;
  color: #9497b8;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 26px;
}

.trust-band {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.trust-band::before,
.trust-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.trust-band::before {
  left: 0;
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0));
}

.trust-band::after {
  right: 0;
  background: linear-gradient(270deg, #000, rgba(0, 0, 0, 0));
}

.trust-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 55s linear infinite;
}

.trust-band:hover .trust-track {
  animation-play-state: paused;
}

.trust-set {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-set li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

/* Logos en blanco monocromo */
.trust-set img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.68;
  transition: opacity 0.3s ease;
}

.trust-set li:hover img {
  opacity: 1;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================== 3 PASOS ==================== */
.fie-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fie-step {
  position: relative;
  padding: 2.6rem 2rem;
  border-radius: 18px;
  background: var(--fie-surface);
  border: 1px solid var(--fie-line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fie-step:hover {
  transform: translateY(-4px);
  border-color: var(--fie-line-strong);
  box-shadow: var(--fie-shadow);
}

/* Conector entre pasos */
.fie-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--fie-line-strong), transparent);
}

.fie-step-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--fie-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.1rem;
}

.fie-step h3 {
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--fie-text);
  margin-bottom: 0.75rem;
}

.fie-step p {
  font-size: 0.99rem;
  line-height: 1.66;
  color: var(--fie-text-soft);
}

/* ==================== FAQ (acordeón) ==================== */
.fie-accordion {
  max-width: 900px;
  margin: 3.5rem auto 0;
  border-top: 1px solid var(--fie-line);
}

.fie-accordion-item {
  border-bottom: 1px solid var(--fie-line);
}

.fie-accordion-button {
  background: none;
  color: var(--fie-text);
  width: 100%;
  text-align: left;
  padding: 1.4rem 3rem 1.4rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.45;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.fie-accordion-button:hover {
  color: var(--fie-accent-text);
}

.fie-accordion-button::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--fie-accent-text);
  border-bottom: 2px solid var(--fie-accent-text);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.fie-accordion-button[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.fie-accordion-content {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease, visibility 0s linear 0.4s;
}

.fie-accordion-content.is-open {
  visibility: visible;
  transition: max-height 0.4s ease, visibility 0s linear 0s;
}

.fie-accordion-content p {
  padding: 0 3rem 1.5rem 0;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--fie-text-soft);
}

/* ==================== CTA FINAL ==================== */
.fie-cta-final {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fie-cta-final::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(218, 0, 118, 0.3), transparent 62%);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.fie-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.fie-cta-message {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.fie-cta-subtext {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--gray-color);
  margin-bottom: 2.5rem;
}

.fie-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== ANIMACIONES DE ENTRADA ====================
   El estado oculto solo se aplica si JS está activo (clase en <html>),
   para que la página siga siendo legible sin JavaScript. */
.js-anim .animatable {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-anim .animatable.title-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .animatable {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fie-btn,
  .fie-card,
  .fie-step,
  .fie-plan,
  .fie-tab {
    transition: none;
  }

  .fie-tool-link:hover i,
  .fie-hero-tool:hover,
  .fie-btn:hover,
  .fie-card:hover,
  .fie-step:hover,
  .fie-plan:hover,
  .fie-tab:hover {
    transform: none;
  }

  .trust-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .trust-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 8px;
  }

  .trust-set[aria-hidden="true"] {
    display: none;
  }

  .trust-band::before,
  .trust-band::after {
    display: none;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .fie-problem-steps {
    grid-template-columns: 1fr;
    gap: 1.9rem;
    margin-bottom: 3.5rem;
  }

  /* En vertical: número a la izquierda y texto a la derecha (mucho más compacto),
     y la flecha apunta hacia abajo */
  .fie-problem-step {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
  }

  .fie-problem-num {
    flex-shrink: 0;
  }

  .fie-problem-step:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 2.3rem;
    bottom: -1.3rem;
    margin-top: 0;
    transform: rotate(135deg);
  }

  .fie-split {
    gap: 3rem;
  }

  .fie-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fie-step:not(:last-child)::after {
    display: none;
  }

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

  /* Planes: una columna centrada, más legible que tres tarjetas estrechas */
  .fie-plans {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .fie-plan-desc,
  .fie-plan-price {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .fie-syllabus,
  .fie-syllabus--2 {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .fie-cards-grid {
    grid-template-columns: 1fr;
  }

  .fie-credential {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 860px) {
  /* Móvil/tablet: la foto abre la pantalla y el texto cae sobre negro */
  .fie-hero {
    min-height: unset;
    align-items: flex-end;
    padding: 14.5rem 0 3rem;
  }

  .fie-hero-photo {
    left: 0;
    bottom: auto;
    height: 62%;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  }

  .fie-hero-photo img {
    object-position: 62% 30%;
  }

  /* Franja más oscura donde cae el título, para asegurar su contraste sobre la foto */
  .fie-hero-photo::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.6) 72%);
  }

  .fie-hero-tag {
    top: 6.4rem;
    left: 1.4rem;
    right: auto;
    bottom: auto;
    padding: 0.6rem 1rem 0.6rem 0.7rem;
    gap: 0.8rem;
  }

  .fie-hero-tag-logo {
    height: 44px;
    padding-right: 0.8rem;
  }
}

@media (max-width: 768px) {
  /* El box y el puente, más contenidos en pantallas pequeñas */
  .fie-page {
    --fie-box-radius: 28px;
  }

  .fie-credential.fie-credential--bridge {
    margin-bottom: -3.5rem;
  }

  .fie-page .fie-section--bridged {
    padding-top: 7.5rem;
  }

  .fie-container {
    padding: 0 1.5rem;
  }

  .fie-section {
    padding: 4.25rem 0;
  }

  .fie-section-header {
    margin-bottom: 2.5rem;
  }

  .fie-hero-title {
    font-size: 2.05rem;
  }

  .fie-hero-text {
    font-size: 1.03rem;
  }

  .fie-hero-meta {
    gap: 0.5rem 1.25rem;
    font-size: 0.88rem;
  }

  .fie-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* En móvil la imagen siempre va después del texto */
  .fie-split-reverse .fie-split-image {
    order: 0;
  }

  .fie-split-image img {
    aspect-ratio: 16 / 10;
  }

  .fie-aspect-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fie-card {
    padding: 1.9rem 1.6rem;
  }

  .fie-plan {
    padding: 2rem 1.6rem 1.8rem;
  }

  .fie-fundae {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
    padding: 1.5rem 1.3rem;
  }

  .fie-plan-amount {
    font-size: 2.3rem;
  }

  #planes {
    scroll-margin-top: 5rem;
  }

  .fie-hero-actions,
  .fie-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .fie-btn {
    width: 100%;
    white-space: normal;
  }

  .fie-accordion-button {
    font-size: 1rem;
    padding-right: 2.25rem;
  }

  .fie-accordion-content p {
    padding-right: 1rem;
    font-size: 0.98rem;
  }

  .fie-cta-final {
    padding: 4.5rem 1.5rem;
  }

  .fie-credential img {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 560px) {
  /* En móvil, las pestañas pasan a fila con el logo al lado del nombre */
  .fie-tablist {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .fie-tab {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.9rem 1.1rem;
  }

  /* Marco de ancho fijo: los nombres quedan alineados en columna */
  .fie-tab-logo {
    width: 64px;
    height: 32px;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .fie-tab-logo img {
    height: 32px;
  }

  .fie-tab-logo--wide img {
    height: 22px;
    max-width: 64px;
  }

  .fie-tab[aria-selected="true"]::after {
    inset: auto auto 0.9rem -1px;
    width: 3px;
    height: calc(100% - 1.8rem);
  }

  .fie-tabpanel {
    padding: 1.75rem 1.4rem;
  }
}

/* ==================== CREDENCIAL OPENAI: BRILLO AL LLEGAR ====================
   Un único destello cruza la tarjeta la primera vez que se ve entera.
   El fondo es el lila de la insignia, así la imagen recortada queda fundida. */
.fie-credential.fie-credential--bridge {
  position: relative;
  overflow: hidden;
  max-width: 940px;
  gap: 2.4rem;
  background: #fff;
}

.fie-credential.fie-credential--bridge img {
  width: 440px;
  border-radius: 0;
}

.fie-credential.fie-credential--bridge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.js-anim .fie-credential.fie-credential--bridge.is-live::after {
  animation: fie-cred-shine 1.4s ease-in-out 0.3s 1 both;
}

@keyframes fie-cred-shine {
  0% { opacity: 1; left: -35%; }
  100% { opacity: 1; left: 120%; }
}

@media (max-width: 860px) {
  .fie-credential.fie-credential--bridge img {
    width: 100%;
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .fie-credential.fie-credential--bridge.is-live::after {
    animation: none;
  }
}

/* Tarjetas "Por qué GEM4": 4 en fila, 2×2 en tablet, 1 en móvil (≤860px ya lo define arriba) */
@media (min-width: 861px) and (max-width: 1100px) {
  .fie-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== CÓMO EMPEZAR: LOS PASOS APARECEN EN SECUENCIA ====================
   Al llegar a la sección salen el 01, el 02 y el 03 uno tras otro (ver JS).
   Sin JS, o con movimiento reducido, se ven los tres directamente. */
.js-anim .fie-steps .fie-step {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.js-anim .fie-steps .fie-step.is-in {
  opacity: 1;
  transform: translateY(0);
}

.js-anim .fie-steps .fie-step.is-in:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .fie-steps .fie-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================== TARIFAS: TARJETAS MÁS COMPACTAS (escritorio) ====================
   Objetivo: que nombre, precio y botón se vean a la vez sin tener que recorrer
   una tarjeta de casi 1000 px. En móvil (una columna) no cambia nada. */
@media (min-width: 861px) {
  .fie-plan {
    padding: 1.8rem 1.6rem 1.6rem;
  }

  .fie-plan-badges {
    margin-bottom: 1rem;
  }

  .fie-plan h3 {
    margin-bottom: 0.5rem;
  }

  .fie-plan-desc {
    margin-bottom: 1.1rem;
    min-height: 0;
  }

  .fie-plan-price {
    margin-bottom: 1.1rem;
    padding: 0.95rem 0;
    min-height: 0;
  }

  .fie-plan-amount {
    font-size: 2.4rem;
  }

  .fie-plan-list {
    gap: 0.5rem;
    margin-bottom: 1.1rem;
  }

  .fie-plan-list li {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .fie-plan-tools {
    margin-bottom: 1.2rem;
    padding-top: 0.9rem;
  }

  .fie-plan-tools-label {
    margin-bottom: 0.55rem;
  }

  .fie-plan-tools-list li {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .fie-plan-tools-list img {
    width: 24px;
    height: 24px;
  }

  .fie-plan-tools-list .fie-plan-tool--wide img {
    height: 17px;
  }
}

/* En pantallas anchas las tarjetas salen un poco del contenedor: menos saltos de línea */
@media (min-width: 1320px) {
  .fie-plans {
    margin-inline: -4rem;
  }
}
