:root {
  --fuente-principal: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-institucional: #0078d7;
  --color-texto: #1a2a3a;
}

.custom-button {

  --button_radius: 0.75em;

  --button_color: #ffffff;

  --button_outline_color: #0b3d63;

  display: inline-block;

  text-decoration: none;

  border: none;

  cursor: pointer;

  border-radius: var(--button_radius);

  background: var(--button_outline_color);

  padding: 0;

  margin: 10px;

}



.custom-button-content {

  display: block;

  box-sizing: border-box;

  width: 100%;

  border: 1px solid var(--button_outline_color);

  border-left: 3px solid var(--button_outline_color);

  border-bottom: 2px solid var(--button_outline_color);

  border-radius: var(--button_radius);

  padding: 0.75em 1.5em;

  background: var(--button_color);

  color: #000000;

  font-size: 17px;

  font-weight: 450;

  font-family: var(--fuente-principal);

  text-align: left;

  position: relative;

  top: -0.22em;

  transition: top 0.1s ease, border-left-width 0.1s ease;

}



.custom-button:hover .custom-button-content {

  top: -0.33em;

  border-left-width: 6px;

}



.custom-button:active .custom-button-content {

  top: 0;

} 



.custom-heading-1 {
  font-size: 28px;
  font-weight: 500;
  font-family: var(--fuente-principal);
  color: var(--color-texto);
  padding-left: 100px;
  border-left: 6px solid var(--color-institucional);
  margin-top: 20px;
  margin-bottom: 15px;
}

.custom-heading-2 {
  font-size: 24px;
  font-weight: 450;
  font-family: var(--fuente-principal);
  color: var(--color-texto);
  padding-left: 25px;
  border-top: 2px solid var(--color-institucional);
  border-bottom: 2px solid var(--color-institucional);
  margin-top: 20px;
  margin-bottom: 15px;
  display: inline-block;
}

/* Contenedor principal */
.caib-cronograma {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #1f2937;
  background-color: #f8fafc;
  padding: 32px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Títulos */
.caib-title {
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 4px;
}

.caib-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Tarjetas */
.caib-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow-x: hidden;
}

.caib-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.caib-card-header h3 {
  font-size: 20px;
  color: #1e3a8a;
  margin: 0;
}

.caib-badge {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

/* Timeline Container */
.timeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 0;
  align-items: flex-start;
}

.timeline-line {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 25px;
  left: 0;
  height: 3px;
  background: var(--color-institucional);
  width: var(--progress-width, 0%);
  z-index: 2;
  transition: width 0.3s ease;
}

.timeline-segment {
  display: none;
}

.timeline-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  min-width: 0;
  padding-top: 0;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 4;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.timeline-step.completed .step-icon {
  border-color: var(--color-institucional);
  background: var(--color-institucional);
  color: #ffffff;
}

.timeline-step.active .step-icon {
  border-color: var(--color-institucional);
  background: #e0f2fe;
  box-shadow: 0 0 0 4px rgba(0, 120, 215, 0.2);
  transform: scale(1.15);
  animation: caib-pulse 2s infinite ease-in-out;
}

.timeline-step.pending .step-icon {
  border-color: #cbd5e1;
  background: #f9fafb;
}

.step-info {
  text-align: center;
  width: 100%;
  padding: 0 5px;
}

.step-info strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 4px;
  font-weight: 600;
}

.step-date {
  display: block;
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 500;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.step-info p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.timeline-step.pending .step-info p {
  color: #94a3b8;
}

/* Nota inferior */
.caib-footer-note {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}

/* Keyframes */
@keyframes caib-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 120, 215, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 120, 215, 0);
  }
}
